osg::PriorityAction::StateRefCount Class Reference

List of all members.

Public Member Functions

 StateRefCount (const StateRefCount &source)
 StateRefCount (const StateStoreIt &itState)
 StateRefCount (const StateStoreIt &itState, Int32 refCount)
StateStoreIt getState (void) const
void setState (const StateStoreIt &itState)
Int32 getRefCount (void) const
void incRefCount (Int32 inc=1)
void decRefCount (Int32 dec=1)

Private Attributes

StateStoreIt _itState
Int32 _refCount


Detailed Description

Definition at line 168 of file OSGPriorityAction.h.


Constructor & Destructor Documentation

osg::PriorityAction::StateRefCount::StateRefCount ( const StateRefCount source  )  [inline]

Copy constructor.

Dev:

Warning:
You must not copy StateRefCount objects, the constructor is only here to put instances into an STL container.

Definition at line 149 of file OSGPriorityAction.inl.

00150     : _itState (source._itState ),
00151       _refCount(source._refCount)
00152 {
00153 }

osg::PriorityAction::StateRefCount::StateRefCount ( const StateStoreIt itState  )  [inline, explicit]

Constructor.

Dev: The ref count is initalized to 0.

Definition at line 163 of file OSGPriorityAction.inl.

00164     : _itState (itState),
00165       _refCount(0      )
00166 {
00167 }

osg::PriorityAction::StateRefCount::StateRefCount ( const StateStoreIt itState,
Int32  refCount 
) [inline, explicit]

Constructor.

Definition at line 173 of file OSGPriorityAction.inl.

00176     : _itState (itState ),
00177       _refCount(refCount)
00178 {
00179 }


Member Function Documentation

PriorityAction::StateStoreIt osg::PriorityAction::StateRefCount::getState ( void   )  const [inline]

Return the state store iterator.

Definition at line 185 of file OSGPriorityAction.inl.

References _itState.

00186 {
00187     return _itState;
00188 }

void osg::PriorityAction::StateRefCount::setState ( const StateStoreIt itState  )  [inline]

Set the state store iterator.

Definition at line 194 of file OSGPriorityAction.inl.

References _itState.

00195 {
00196     _itState = itState;
00197 }

Int32 osg::PriorityAction::StateRefCount::getRefCount ( void   )  const [inline]

Return the ref count.

Definition at line 203 of file OSGPriorityAction.inl.

References _refCount.

00204 {
00205     return _refCount;
00206 }

void osg::PriorityAction::StateRefCount::incRefCount ( Int32  inc = 1  )  [inline]

Increment the ref count.

Definition at line 212 of file OSGPriorityAction.inl.

References _refCount.

00213 {
00214     _refCount += inc;
00215 }

void osg::PriorityAction::StateRefCount::decRefCount ( Int32  dec = 1  )  [inline]

Decrement the ref count.

Definition at line 221 of file OSGPriorityAction.inl.

References _refCount.

00222 {
00223     _refCount -= dec;
00224 }


Member Data Documentation

Definition at line 185 of file OSGPriorityAction.h.

Referenced by getState(), and setState().

Definition at line 186 of file OSGPriorityAction.h.

Referenced by decRefCount(), getRefCount(), and incRefCount().


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

Generated on Mon Mar 17 12:21:45 2008 for OpenSG by  doxygen 1.5.5