osg::MPBase Class Reference
[Multithreading]

#include <OSGMPBase.h>

Inheritance diagram for osg::MPBase:

osg::MemoryObject osg::BarrierCommonBase osg::BaseThreadCommonBase osg::LockCommonBase osg::PThreadBarrierBase osg::BasePThreadBase osg::LockPool osg::PThreadLockBase osg::Barrier osg::BaseThread osg::Lock osg::ThreadCommonBase osg::PThreadBase osg::ExternalThread osg::Thread

List of all members.

Class Specific



static MPType _type
Char8 * _szName

Public Member Functions

Get


virtual MPType & getType (void)
virtual const MPType & getType (void) const
UInt32 getTypeId (void)
const Char8 * getCName (void) const
Reference Counting


void addRef (void)
void subRef (void)
Int32 getRefCount (void)

Static Public Member Functions

Class Get


static const MPType & getStaticType (void)
static UInt32 getStaticTypeId (void)

Protected Types

typedef MemoryObject Inherited

Protected Member Functions

Constructor


 MPBase (const Char8 *szName)
Destructor


virtual ~MPBase (void)

Private Member Functions

 MPBase (const MPBase &source)
 prohibit default function (move to 'public' if needed)
void operator= (const MPBase &source)
 prohibit default function (move to 'public' if needed)


Detailed Description

Definition at line 372 of file OSGMPBase.h.


Member Typedef Documentation

typedef MemoryObject osg::MPBase::Inherited [protected]


Constructor & Destructor Documentation

MPBase::MPBase ( const Char8 *  szName  )  [protected]

Definition at line 289 of file OSGMPBase.cpp.

References _szName, and osg::stringDup().

00289                                   :
00290      Inherited(    ),
00291     
00292     _szName   (NULL)
00293 {
00294     stringDup(szName, _szName);
00295 }

MPBase::~MPBase ( void   )  [protected, virtual]

Definition at line 298 of file OSGMPBase.cpp.

References _szName.

00299 {
00300     delete [] _szName;
00301 }

osg::MPBase::MPBase ( const MPBase &  source  )  [private]


Member Function Documentation

const MPType & MPBase::getStaticType ( void   )  [static]

Definition at line 253 of file OSGMPBase.cpp.

References _type.

00254 {
00255     return _type;
00256 }

UInt32 MPBase::getStaticTypeId ( void   )  [static]

Definition at line 259 of file OSGMPBase.cpp.

00260 {
00261     return 0;
00262 }

MPType & MPBase::getType ( void   )  [virtual]

Definition at line 265 of file OSGMPBase.cpp.

References _type.

Referenced by getTypeId().

00266 {
00267     return _type;
00268 }

const MPType & MPBase::getType ( void   )  const [virtual]

Definition at line 271 of file OSGMPBase.cpp.

References _type.

00272 {
00273     return _type;
00274 }

UInt32 MPBase::getTypeId ( void   ) 

Definition at line 277 of file OSGMPBase.cpp.

References osg::TypeBase::getId(), and getType().

00278 {
00279     return getType().getId();
00280 }

const Char8 * MPBase::getCName ( void   )  const

Definition at line 283 of file OSGMPBase.cpp.

References _szName.

00284 {
00285     return _szName;
00286 }

void osg::MPBase::operator= ( const MPBase &  source  )  [private]

void MemoryObject::addRef ( void   )  [inherited]

void MemoryObject::subRef ( void   )  [inherited]

Definition at line 69 of file OSGMemoryObject.cpp.

References osg::MemoryObject::_refCount.

00070 {
00071     _refCount--;
00072 
00073     if(_refCount <= 0)
00074         delete this;
00075 }

Int32 MemoryObject::getRefCount ( void   )  [inherited]

Definition at line 77 of file OSGMemoryObject.cpp.

References osg::MemoryObject::_refCount.

00078 {
00079     return _refCount;
00080 }


Member Data Documentation

MPType MPBase::_type [static, protected]

Reimplemented in osg::Barrier, osg::BaseThread, osg::Lock, osg::LockPool, osg::Thread, and osg::ExternalThread.

Definition at line 405 of file OSGMPBase.h.

Referenced by getStaticType(), and getType().


The documentation for this class was generated from the following files:

Generated on Mon Mar 17 12:03:16 2008 for OpenSG by  doxygen 1.5.5