mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-04 02:42:49 -04:00
78 lines
2.4 KiB
Plaintext
78 lines
2.4 KiB
Plaintext
// Filename: bioStreamPtr.I
|
|
// Created by: drose (15Oct02)
|
|
//
|
|
////////////////////////////////////////////////////////////////////
|
|
//
|
|
// PANDA 3D SOFTWARE
|
|
// Copyright (c) 2001, Disney Enterprises, Inc. All rights reserved
|
|
//
|
|
// All use of this software is subject to the terms of the Panda 3d
|
|
// Software license. You should have received a copy of this license
|
|
// along with this source code; you will also find a current copy of
|
|
// the license at http://www.panda3d.org/license.txt .
|
|
//
|
|
// To contact the maintainers of this program write to
|
|
// panda3d@yahoogroups.com .
|
|
//
|
|
////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
////////////////////////////////////////////////////////////////////
|
|
// Function: BioStreamPtr::Constructor
|
|
// Access: Public
|
|
// Description:
|
|
////////////////////////////////////////////////////////////////////
|
|
INLINE BioStreamPtr::
|
|
BioStreamPtr(IBioStream *stream) : _stream(stream) {
|
|
}
|
|
|
|
////////////////////////////////////////////////////////////////////
|
|
// Function: BioStreamPtr::operator *
|
|
// Access: Public
|
|
// Description:
|
|
////////////////////////////////////////////////////////////////////
|
|
INLINE IBioStream &BioStreamPtr::
|
|
operator *() const {
|
|
return *_stream;
|
|
}
|
|
|
|
////////////////////////////////////////////////////////////////////
|
|
// Function: BioStreamPtr::operator ->
|
|
// Access: Public
|
|
// Description:
|
|
////////////////////////////////////////////////////////////////////
|
|
INLINE IBioStream *BioStreamPtr::
|
|
operator ->() const {
|
|
return _stream;
|
|
}
|
|
|
|
////////////////////////////////////////////////////////////////////
|
|
// Function: BioStreamPtr::operator typecast
|
|
// Access: Public
|
|
// Description:
|
|
////////////////////////////////////////////////////////////////////
|
|
INLINE BioStreamPtr::
|
|
operator IBioStream * () const {
|
|
return _stream;
|
|
}
|
|
|
|
////////////////////////////////////////////////////////////////////
|
|
// Function: BioStreamPtr::get_stream
|
|
// Access: Public
|
|
// Description:
|
|
////////////////////////////////////////////////////////////////////
|
|
INLINE void BioStreamPtr::
|
|
set_stream(IBioStream *stream) {
|
|
_stream = stream;
|
|
}
|
|
|
|
////////////////////////////////////////////////////////////////////
|
|
// Function: BioStreamPtr::get_stream
|
|
// Access: Public
|
|
// Description:
|
|
////////////////////////////////////////////////////////////////////
|
|
INLINE IBioStream *BioStreamPtr::
|
|
get_stream() const {
|
|
return _stream;
|
|
}
|