osg::LockCommonBase Class Reference
[Multithreading]

#include <OSGLock.h>

Inheritance diagram for osg::LockCommonBase:
osg::MPBase osg::MemoryObject osg::LockPool osg::PThreadLockBase osg::Lock

List of all members.

Public Member Functions

Get



virtual MPTypegetType (void)
virtual const MPTypegetType (void) const
UInt32 getTypeId (void)
const Char8getCName (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



 LockCommonBase (void)
 LockCommonBase (const Char8 *szName, UInt32 uiId)
Destructor



virtual ~LockCommonBase (void)

Protected Attributes

UInt32 _uiLockId

Private Member Functions

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

Class Specific



Char8_szName
static MPType _type

Detailed Description

Definition at line 80 of file OSGLock.h.


Member Typedef Documentation

Reimplemented from osg::MPBase.

Reimplemented in osg::PThreadLockBase, osg::Lock, and osg::LockPool.

Definition at line 90 of file OSGLock.h.


Constructor & Destructor Documentation

LockCommonBase::LockCommonBase ( void   )  [protected]

Definition at line 65 of file OSGLock.cpp.

00065                                    :
00066      Inherited(NULL),
00067     _uiLockId (0   )
00068 {
00069 }

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

Definition at line 71 of file OSGLock.cpp.

00072                                                     :
00073      Inherited(szName),
00074     _uiLockId (uiId  )
00075 {
00076 }

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

Definition at line 80 of file OSGLock.cpp.

00081 {
00082 }

osg::LockCommonBase::LockCommonBase ( const LockCommonBase source  )  [private]

Member Function Documentation

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

Reimplemented from osg::MPBase.

Reimplemented in osg::PThreadLockBase, osg::Lock, and osg::LockPool.

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

Definition at line 260 of file OSGMPBase.cpp.

References osg::MPBase::_type.

00261 {
00262     return _type;
00263 }

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

Definition at line 266 of file OSGMPBase.cpp.

00267 {
00268     return 0;
00269 }

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

Definition at line 272 of file OSGMPBase.cpp.

References osg::MPBase::_type.

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

00273 {
00274     return _type;
00275 }

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

Definition at line 278 of file OSGMPBase.cpp.

References osg::MPBase::_type.

00279 {
00280     return _type;
00281 }

UInt32 MPBase::getTypeId ( void   )  [inherited]

Definition at line 284 of file OSGMPBase.cpp.

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

00285 {
00286     return getType().getId();
00287 }

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

Definition at line 290 of file OSGMPBase.cpp.

References osg::MPBase::_szName.

00291 {
00292     return _szName;
00293 }

void MemoryObject::addRef ( void   )  [inherited]
void MemoryObject::subRef ( void   )  [inherited]

Definition at line 69 of file OSGMemoryObject.cpp.

References osg::MemoryObject::_refCount.

Referenced by osg::GroupMCastConnection::~GroupMCastConnection().

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

Definition at line 92 of file OSGLock.h.

MPType MPBase::_type [static, protected, inherited]
Char8* osg::MPBase::_szName [protected, inherited]

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

Generated on 8 Feb 2010 for OpenSG by  doxygen 1.6.1