Panda3D
Loading...
Searching...
No Matches
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 */
17INLINE BioStreamPtr::
18BioStreamPtr(BioStream *stream) : _stream(stream) {
19}
20
21/**
22 *
23 */
24INLINE BioStream &BioStreamPtr::
25operator *() const {
26 return *_stream;
27}
28
29/**
30 *
31 */
32INLINE BioStream *BioStreamPtr::
33operator ->() const {
34 return _stream;
35}
36
37/**
38 *
39 */
40INLINE BioStreamPtr::
41operator BioStream * () const {
42 return _stream;
43}
44
45/**
46 *
47 */
48INLINE void BioStreamPtr::
49set_stream(BioStream *stream) {
50 _stream = stream;
51}
52
53/**
54 *
55 */
56INLINE BioStream *BioStreamPtr::
57get_stream() const {
58 return _stream;
59}