Panda3D
|
00001 // Filename: bioPtr.I 00002 // Created by: drose (15Oct02) 00003 // 00004 //////////////////////////////////////////////////////////////////// 00005 // 00006 // PANDA 3D SOFTWARE 00007 // Copyright (c) Carnegie Mellon University. All rights reserved. 00008 // 00009 // All use of this software is subject to the terms of the revised BSD 00010 // license. You should have received a copy of this license along 00011 // with this source code in a file named "LICENSE." 00012 // 00013 //////////////////////////////////////////////////////////////////// 00014 00015 00016 //////////////////////////////////////////////////////////////////// 00017 // Function: BioPtr::Constructor 00018 // Access: Public 00019 // Description: 00020 //////////////////////////////////////////////////////////////////// 00021 INLINE BioPtr:: 00022 BioPtr(BIO *bio) : _bio(bio) { 00023 } 00024 00025 //////////////////////////////////////////////////////////////////// 00026 // Function: BioPtr::operator * 00027 // Access: Public 00028 // Description: 00029 //////////////////////////////////////////////////////////////////// 00030 INLINE BIO &BioPtr:: 00031 operator *() const { 00032 return *_bio; 00033 } 00034 00035 //////////////////////////////////////////////////////////////////// 00036 // Function: BioPtr::operator -> 00037 // Access: Public 00038 // Description: 00039 //////////////////////////////////////////////////////////////////// 00040 INLINE BIO *BioPtr:: 00041 operator ->() const { 00042 return _bio; 00043 } 00044 00045 //////////////////////////////////////////////////////////////////// 00046 // Function: BioPtr::operator typecast 00047 // Access: Public 00048 // Description: 00049 //////////////////////////////////////////////////////////////////// 00050 INLINE BioPtr:: 00051 operator BIO * () const { 00052 return _bio; 00053 } 00054 00055 //////////////////////////////////////////////////////////////////// 00056 // Function: BioPtr::get_bio 00057 // Access: Public 00058 // Description: 00059 //////////////////////////////////////////////////////////////////// 00060 INLINE void BioPtr:: 00061 set_bio(BIO *bio) { 00062 _bio = bio; 00063 } 00064 00065 //////////////////////////////////////////////////////////////////// 00066 // Function: BioPtr::get_bio 00067 // Access: Public 00068 // Description: 00069 //////////////////////////////////////////////////////////////////// 00070 INLINE BIO *BioPtr:: 00071 get_bio() const { 00072 return _bio; 00073 } 00074 00075 //////////////////////////////////////////////////////////////////// 00076 // Function: BioPtr::get_server_name 00077 // Access: Public 00078 // Description: Returns the name of the server we are (or should be) 00079 // connected to. 00080 //////////////////////////////////////////////////////////////////// 00081 INLINE const string &BioPtr:: 00082 get_server_name() const { 00083 return _server_name; 00084 } 00085 00086 //////////////////////////////////////////////////////////////////// 00087 // Function: BioPtr::get_port 00088 // Access: Public 00089 // Description: Returns the port on which we are (or should be) 00090 // connected. 00091 //////////////////////////////////////////////////////////////////// 00092 INLINE int BioPtr:: 00093 get_port() const { 00094 return _port; 00095 }