Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

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 168 of file OSGDepthFirstStateAction.h.


Constructor & Destructor Documentation

osg::DepthFirstStateAction::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 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.

Dev: The ref count is initalized to 0.

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

StateStoreIt osg::DepthFirstStateAction::StateRefCount::_itState [private]
 

Definition at line 185 of file OSGDepthFirstStateAction.h.

Referenced by getState(), and setState().

Int32 osg::DepthFirstStateAction::StateRefCount::_refCount [private]
 

Definition at line 186 of file OSGDepthFirstStateAction.h.

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


The documentation for this class was generated from the following files:
Generated on Thu Aug 25 04:28:08 2005 for OpenSG by  doxygen 1.4.3