Panda3D
 All Classes Functions Variables Enumerations
bioStreamPtr.I
1 // Filename: bioStreamPtr.I
2 // Created by: drose (15Oct02)
3 //
4 ////////////////////////////////////////////////////////////////////
5 //
6 // PANDA 3D SOFTWARE
7 // Copyright (c) Carnegie Mellon University. All rights reserved.
8 //
9 // All use of this software is subject to the terms of the revised BSD
10 // license. You should have received a copy of this license along
11 // with this source code in a file named "LICENSE."
12 //
13 ////////////////////////////////////////////////////////////////////
14 
15 
16 ////////////////////////////////////////////////////////////////////
17 // Function: BioStreamPtr::Constructor
18 // Access: Public
19 // Description:
20 ////////////////////////////////////////////////////////////////////
21 INLINE BioStreamPtr::
22 BioStreamPtr(BioStream *stream) : _stream(stream) {
23 }
24 
25 ////////////////////////////////////////////////////////////////////
26 // Function: BioStreamPtr::operator *
27 // Access: Public
28 // Description:
29 ////////////////////////////////////////////////////////////////////
30 INLINE BioStream &BioStreamPtr::
31 operator *() const {
32  return *_stream;
33 }
34 
35 ////////////////////////////////////////////////////////////////////
36 // Function: BioStreamPtr::operator ->
37 // Access: Public
38 // Description:
39 ////////////////////////////////////////////////////////////////////
40 INLINE BioStream *BioStreamPtr::
41 operator ->() const {
42  return _stream;
43 }
44 
45 ////////////////////////////////////////////////////////////////////
46 // Function: BioStreamPtr::operator typecast
47 // Access: Public
48 // Description:
49 ////////////////////////////////////////////////////////////////////
50 INLINE BioStreamPtr::
51 operator BioStream * () const {
52  return _stream;
53 }
54 
55 ////////////////////////////////////////////////////////////////////
56 // Function: BioStreamPtr::get_stream
57 // Access: Public
58 // Description:
59 ////////////////////////////////////////////////////////////////////
60 INLINE void BioStreamPtr::
61 set_stream(BioStream *stream) {
62  _stream = stream;
63 }
64 
65 ////////////////////////////////////////////////////////////////////
66 // Function: BioStreamPtr::get_stream
67 // Access: Public
68 // Description:
69 ////////////////////////////////////////////////////////////////////
70 INLINE BioStream *BioStreamPtr::
71 get_stream() const {
72  return _stream;
73 }