OSG::BarrierCommonBase Class Reference

#include <OSGBarrier.h>

Inheritance diagram for OSG::BarrierCommonBase:

OSG::MPBase OSG::MemoryObject List of all members.

Class Specific



Char8 * _szName
static MPType _type

Public Member Functions

Get


virtual MPTypegetType (void)
virtual const MPTypegetType (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 MPTypegetStaticType (void)
static UInt32 getStaticTypeId (void)

Protected Types

typedef MPBase Inherited

Protected Member Functions

Constructors


 BarrierCommonBase (const Char8 *szName, UInt32 uiId)
Destructor


virtual ~BarrierCommonBase (void)
Set


void setNumWaitFor (UInt32 uiNumWaitFor)

Protected Attributes

UInt32 _uiBarrierId
volatile UInt32 _uiNumWaitFor

Private Member Functions

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

Detailed Description

Definition at line 74 of file OSGBarrier.h.


Member Typedef Documentation

Reimplemented from OSG::MPBase.

Definition at line 84 of file OSGBarrier.h.


Constructor & Destructor Documentation

BarrierCommonBase::BarrierCommonBase ( const Char8 *  szName,
UInt32  uiId 
) [protected]

Definition at line 61 of file OSGBarrier.cpp.

00062                                                            :
00063      Inherited   (szName),
00064     _uiBarrierId (uiId  ),
00065     _uiNumWaitFor(     1)
00066 {
00067 }

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

Definition at line 71 of file OSGBarrier.cpp.

00072 {
00073 }

OSG::BarrierCommonBase::BarrierCommonBase ( const BarrierCommonBase source  )  [private]


Member Function Documentation

void OSG::BarrierCommonBase::setNumWaitFor ( UInt32  uiNumWaitFor  )  [inline, protected]

Definition at line 42 of file OSGBarrier.inl.

References _uiNumWaitFor.

00043 {
00044     _uiNumWaitFor = uiNumWaitFor;
00045 }

void OSG::BarrierCommonBase::operator= ( const BarrierCommonBase source  )  [private]

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

Definition at line 360 of file OSGMPBase.cpp.

References OSG::MPBase::_type.

00361 {
00362     return _type;
00363 }

UInt32 MPBase::getStaticTypeId ( void   )  [static, inherited]

Definition at line 366 of file OSGMPBase.cpp.

00367 {
00368     return 0;
00369 }

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

Definition at line 372 of file OSGMPBase.cpp.

References OSG::MPBase::_type.

Referenced by OSG::MPBase::getTypeId().

00373 {
00374     return _type;
00375 }

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

Definition at line 378 of file OSGMPBase.cpp.

References OSG::MPBase::_type.

00379 {
00380     return _type;
00381 }

UInt32 MPBase::getTypeId ( void   )  [inherited]

Definition at line 384 of file OSGMPBase.cpp.

References OSG::TypeBase::getId(), and OSG::MPBase::getType().

00385 {
00386     return getType().getId();
00387 }

const Char8 * MPBase::getCName ( void   )  const [inherited]

Definition at line 390 of file OSGMPBase.cpp.

References OSG::MPBase::_szName.

00391 {
00392     return _szName;
00393 }

void OSG::MemoryObject::addRef ( void   )  [inline, inherited]

Definition at line 57 of file OSGMemoryObject.inl.

References OSG::MemoryObject::_refCount.

Referenced by OSG::setRefd().

00058 {
00059     _refCount++;
00060 }

void OSG::MemoryObject::subRef ( void   )  [inline, inherited]

Definition at line 63 of file OSGMemoryObject.inl.

References OSG::MemoryObject::_refCount.

Referenced by OSG::clearRef(), and OSG::setRefd().

00064 {
00065     _refCount--;
00066 
00067     if(_refCount <= 0)
00068         delete this;
00069 }

Int32 OSG::MemoryObject::getRefCount ( void   )  [inline, inherited]

Definition at line 72 of file OSGMemoryObject.inl.

References OSG::MemoryObject::_refCount.

00073 {
00074     return _refCount;
00075 }


Member Data Documentation

Definition at line 86 of file OSGBarrier.h.

volatile UInt32 OSG::BarrierCommonBase::_uiNumWaitFor [protected]

Definition at line 87 of file OSGBarrier.h.

Referenced by setNumWaitFor().

MPType MPBase::_type [static, protected, inherited]

Reimplemented in OSG::LockPool.

Definition at line 494 of file OSGMPBase.h.

Referenced by OSG::MPBase::getStaticType(), and OSG::MPBase::getType().

Char8* OSG::MPBase::_szName [protected, inherited]


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