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