Panda3D
panda
src
downloader
bioPtr.I
Go to the documentation of this file.
1
/**
2
* PANDA 3D SOFTWARE
3
* Copyright (c) Carnegie Mellon University. All rights reserved.
4
*
5
* All use of this software is subject to the terms of the revised BSD
6
* license. You should have received a copy of this license along
7
* with this source code in a file named "LICENSE."
8
*
9
* @file bioPtr.I
10
* @author drose
11
* @date 2002-10-15
12
*/
13
14
/**
15
*
16
*/
17
INLINE BioPtr::
18
BioPtr(BIO *bio) : _bio(bio) {
19
}
20
21
/**
22
*
23
*/
24
INLINE BIO &BioPtr::
25
operator *()
const
{
26
return
*_bio;
27
}
28
29
/**
30
*
31
*/
32
INLINE BIO *BioPtr::
33
operator ->()
const
{
34
return
_bio;
35
}
36
37
/**
38
*
39
*/
40
INLINE BioPtr::
41
operator BIO * ()
const
{
42
return
_bio;
43
}
44
45
/**
46
*
47
*/
48
INLINE
void
BioPtr::
49
set_bio(BIO *bio) {
50
_bio = bio;
51
}
52
53
/**
54
*
55
*/
56
INLINE BIO *BioPtr::
57
get_bio()
const
{
58
return
_bio;
59
}
60
61
/**
62
* Returns the name of the server we are (or should be) connected to.
63
*/
64
INLINE
const
std::string &BioPtr::
65
get_server_name()
const
{
66
return
_server_name;
67
}
68
69
/**
70
* Returns the port on which we are (or should be) connected.
71
*/
72
INLINE
int
BioPtr::
73
get_port()
const
{
74
return
_port;
75
}
Generated on Wed Jan 23 2019 21:39:55 for Panda3D by
1.8.15