Panda3D
bioStreamPtr.I
Go to the documentation of this file.
1 /**
2  * PANDA 3D SOFTWARE
3  * Copyright (c) Carnegie Mellon University. All rights reserved.
4  *
5  * All use of this software is subject to the terms of the revised BSD
6  * license. You should have received a copy of this license along
7  * with this source code in a file named "LICENSE."
8  *
9  * @file bioStreamPtr.I
10  * @author drose
11  * @date 2002-10-15
12  */
13 
14 /**
15  *
16  */
17 INLINE BioStreamPtr::
18 BioStreamPtr(BioStream *stream) : _stream(stream) {
19 }
20 
21 /**
22  *
23  */
24 INLINE BioStream &BioStreamPtr::
25 operator *() const {
26  return *_stream;
27 }
28 
29 /**
30  *
31  */
32 INLINE BioStream *BioStreamPtr::
33 operator ->() const {
34  return _stream;
35 }
36 
37 /**
38  *
39  */
40 INLINE BioStreamPtr::
41 operator BioStream * () const {
42  return _stream;
43 }
44 
45 /**
46  *
47  */
48 INLINE void BioStreamPtr::
49 set_stream(BioStream *stream) {
50  _stream = stream;
51 }
52 
53 /**
54  *
55  */
56 INLINE BioStream *BioStreamPtr::
57 get_stream() const {
58  return _stream;
59 }