osg::DepthFirstStateAction::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 173 of file OSGDepthFirstStateAction.h.


Constructor & Destructor Documentation

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

Copy constructor.

Definition at line 223 of file OSGDepthFirstStateAction.inl.

00224     : _itState (source._itState ),
00225       _refCount(source._refCount)
00226 {
00227 }

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

Constructor.

Definition at line 237 of file OSGDepthFirstStateAction.inl.

00238     : _itState (itState),
00239       _refCount(0      )
00240 {
00241 }

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

Constructor.

Definition at line 247 of file OSGDepthFirstStateAction.inl.

00250     : _itState (itState ),
00251       _refCount(refCount)
00252 {
00253 }


Member Function Documentation

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

Return the state store iterator.

Definition at line 259 of file OSGDepthFirstStateAction.inl.

References _itState.

00260 {
00261     return _itState;
00262 }

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

Set the state store iterator.

Definition at line 268 of file OSGDepthFirstStateAction.inl.

References _itState.

00269 {
00270     _itState = itState;
00271 }

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

Return the ref count.

Definition at line 277 of file OSGDepthFirstStateAction.inl.

References _refCount.

00278 {
00279     return _refCount;
00280 }

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

Increment the ref count.

Definition at line 286 of file OSGDepthFirstStateAction.inl.

References _refCount.

00287 {
00288     _refCount += inc;
00289 }

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

Decrement the ref count.

Definition at line 295 of file OSGDepthFirstStateAction.inl.

References _refCount.

00296 {
00297     _refCount -= dec;
00298 }


Member Data Documentation

Definition at line 190 of file OSGDepthFirstStateAction.h.

Referenced by getState(), and setState().

Definition at line 191 of file OSGDepthFirstStateAction.h.

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


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

Generated on Mon Mar 17 11:25:30 2008 for OpenSG by  doxygen 1.5.5