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