Developer Documentation
RAVL, Recognition And Vision Library
USER HOME PAGE CLASS LIST CONTENTS
Ravl - Core - Reference Counting - RCBodyC
 

  PUBLIC
RCBodyC::~RCBodyC(void)
RCBodyC::References(void) const
RCBodyC::Copy(void) const
RCBodyC::DeepCopy(UIntT) const
RCBodyC::IncRefCounter(void)
RCBodyC::DecRefCounter(void)
RCBodyC::RCBodyC(void)

   RCBodyC   
 
Base class for all reference counted objects
 
include "Ravl/RefCounter.hh"
Source file:Ravl/Core/Base/RefCounter.hh
User Level:Normal
Library:RavlCore
Example:exRefCounter.cc
In Scope:RavlN

Comments:
This holds a count of the number of handles that are available for this object.

Derived Classes: Variables:
ravl_atomic_t counter;

Methods:
~RCBodyC()
Destructor.

UIntT References() const
Access count of handles open to this object.

RCBodyC & Copy() const
Make copy of body.
This should be provided in derived classes. this funtion will issue an assertion failure if called.

RCBodyC & DeepCopy(UIntT levels = ((UIntT))) const
Make a deep copy of body.
This should be provided in derived classes. this funtion will issue an assertion failure if called.

void IncRefCounter()
Increment reference counter.

bool DecRefCounter()
Decrement reference counter.

RCBodyC()
Default constructor.
Creates a handle with 0 reference counts.


Maintainer:Charles Galambos, Documentation by CxxDoc: Tue Aug 13 09:59:30 2002