74 lines
2.2 KiB
Plaintext
74 lines
2.2 KiB
Plaintext
// Filename: bioStreamPtr.I
|
|
// Created by: drose (15Oct02)
|
|
//
|
|
////////////////////////////////////////////////////////////////////
|
|
//
|
|
// PANDA 3D SOFTWARE
|
|
// Copyright (c) Carnegie Mellon University. All rights reserved.
|
|
//
|
|
// All use of this software is subject to the terms of the revised BSD
|
|
// license. You should have received a copy of this license along
|
|
// with this source code in a file named "LICENSE."
|
|
//
|
|
////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
////////////////////////////////////////////////////////////////////
|
|
// Function: BioStreamPtr::Constructor
|
|
// Access: Public
|
|
// Description:
|
|
////////////////////////////////////////////////////////////////////
|
|
INLINE BioStreamPtr::
|
|
BioStreamPtr(BioStream *stream) : _stream(stream) {
|
|
}
|
|
|
|
////////////////////////////////////////////////////////////////////
|
|
// Function: BioStreamPtr::operator *
|
|
// Access: Public
|
|
// Description:
|
|
////////////////////////////////////////////////////////////////////
|
|
INLINE BioStream &BioStreamPtr::
|
|
operator *() const {
|
|
return *_stream;
|
|
}
|
|
|
|
////////////////////////////////////////////////////////////////////
|
|
// Function: BioStreamPtr::operator ->
|
|
// Access: Public
|
|
// Description:
|
|
////////////////////////////////////////////////////////////////////
|
|
INLINE BioStream *BioStreamPtr::
|
|
operator ->() const {
|
|
return _stream;
|
|
}
|
|
|
|
////////////////////////////////////////////////////////////////////
|
|
// Function: BioStreamPtr::operator typecast
|
|
// Access: Public
|
|
// Description:
|
|
////////////////////////////////////////////////////////////////////
|
|
INLINE BioStreamPtr::
|
|
operator BioStream * () const {
|
|
return _stream;
|
|
}
|
|
|
|
////////////////////////////////////////////////////////////////////
|
|
// Function: BioStreamPtr::get_stream
|
|
// Access: Public
|
|
// Description:
|
|
////////////////////////////////////////////////////////////////////
|
|
INLINE void BioStreamPtr::
|
|
set_stream(BioStream *stream) {
|
|
_stream = stream;
|
|
}
|
|
|
|
////////////////////////////////////////////////////////////////////
|
|
// Function: BioStreamPtr::get_stream
|
|
// Access: Public
|
|
// Description:
|
|
////////////////////////////////////////////////////////////////////
|
|
INLINE BioStream *BioStreamPtr::
|
|
get_stream() const {
|
|
return _stream;
|
|
}
|