Developer Documentation
RAVL, Recognition And Vision Library
USER HOME PAGE CLASS LIST CONTENTS
Ravl - Core - Reference Counting - RCHandleC<class BodyT>
 

  PUBLIC
RCHandleC::RCHandleC(void)
RCHandleC::RCHandleC(const RCHandleC &)
RCHandleC::RCHandleC(CreateBodyFlagT)
RCHandleC::~RCHandleC(void)
RCHandleC::operator =(const RCHandleC &)
RCHandleC::DeepCopy(UIntT) const
RCHandleC::operator ==(const RCHandleC &) const
RCHandleC::operator !=(const RCHandleC &) const
RCHandleC::Hash(void) const
RCHandleC::IsValid(void) const
RCHandleC::Invalidate(void)
RCHandleC::IsHandleType(const DT &) const
RCHandleC::CheckHandleType(const DT &) const
RCHandleC::RCHandleC(BodyT &)
RCHandleC::RCHandleC(BodyT *)
RCHandleC::RCHandleC(RCBodyC &)
RCHandleC::Body(void)
RCHandleC::Body(void) const
RCHandleC::References(void) const
RCHandleC::operator <<(ostream &,const RCHandleC &)
RCHandleC::operator >>(istream &,RCHandleC &)

   RCHandleC<class BodyT>   
 
Base class for handles to reference counter objects
 
include "Ravl/RefCounter.hh"
Source file:Ravl/Core/Base/RefCounter.hh
User Level:Normal
Library:RavlCore
Example:exRefCounter.cc
In Scope:RavlN

Derived Classes: Variables:
BodyT * body;

Methods:
RCHandleC()
Default constructor.
creates an invalid handle.

RCHandleC(const RCHandleC<BodyT> & oth)
Copy Constructor.
Creates a new reference to 'oth'

RCHandleC(CreateBodyFlagT)
Constructor.
creates a body class with its default constructor.

~RCHandleC()
Destructor.
Decrement reference count, and delete object if it reaches zero.

const RCHandleC<BodyT> & operator =(const RCHandleC<BodyT> & oth)
Assign handle.

RCHandleC<BodyT> DeepCopy(UIntT levels = ((UIntT))) const
Do a deep copy of the object.

bool operator ==(const RCHandleC<BodyT> & oth) const
Are handles to the same object ?

bool operator !=(const RCHandleC<BodyT> & oth) const
Are handles to different objects ?

UIntT Hash() const
Default hash function.
This hashes on the address of the body.

bool IsValid() const
Test if this is a valid handle.

void Invalidate()
Invalidate this handle.
Unattaches the body from the handle.

bool IsHandleType(const DT &) const
Is handle of given type ?

void CheckHandleType(const DT & dummy) const
Check handle type. Throw an expception if not.

RCHandleC(BodyT & bod)
Body constructor.

RCHandleC(BodyT * bod)
Body base constructor.
This is used where the body may be a null ptr, such as in the virtual constructor after a failed load.

RCHandleC(RCBodyC & bod)
Body base constructor.

BodyT & Body()
Access body of object.

const BodyT & Body() const
Constant access to body of object.

UIntT References() const
Find the number of references to the body of this object.

ostream & operator <<(ostream & strm,const RCHandleC<BodyT> & obj)

istream & operator >>(istream & strm,RCHandleC<BodyT> & obj)


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