Panda3D
|
00001 // Filename: bioStreamPtr.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: BioStreamPtr::Constructor 00018 // Access: Public 00019 // Description: 00020 //////////////////////////////////////////////////////////////////// 00021 INLINE BioStreamPtr:: 00022 BioStreamPtr(BioStream *stream) : _stream(stream) { 00023 } 00024 00025 //////////////////////////////////////////////////////////////////// 00026 // Function: BioStreamPtr::operator * 00027 // Access: Public 00028 // Description: 00029 //////////////////////////////////////////////////////////////////// 00030 INLINE BioStream &BioStreamPtr:: 00031 operator *() const { 00032 return *_stream; 00033 } 00034 00035 //////////////////////////////////////////////////////////////////// 00036 // Function: BioStreamPtr::operator -> 00037 // Access: Public 00038 // Description: 00039 //////////////////////////////////////////////////////////////////// 00040 INLINE BioStream *BioStreamPtr:: 00041 operator ->() const { 00042 return _stream; 00043 } 00044 00045 //////////////////////////////////////////////////////////////////// 00046 // Function: BioStreamPtr::operator typecast 00047 // Access: Public 00048 // Description: 00049 //////////////////////////////////////////////////////////////////// 00050 INLINE BioStreamPtr:: 00051 operator BioStream * () const { 00052 return _stream; 00053 } 00054 00055 //////////////////////////////////////////////////////////////////// 00056 // Function: BioStreamPtr::get_stream 00057 // Access: Public 00058 // Description: 00059 //////////////////////////////////////////////////////////////////// 00060 INLINE void BioStreamPtr:: 00061 set_stream(BioStream *stream) { 00062 _stream = stream; 00063 } 00064 00065 //////////////////////////////////////////////////////////////////// 00066 // Function: BioStreamPtr::get_stream 00067 // Access: Public 00068 // Description: 00069 //////////////////////////////////////////////////////////////////// 00070 INLINE BioStream *BioStreamPtr:: 00071 get_stream() const { 00072 return _stream; 00073 }