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

  PUBLIC
RCWrapC::RCWrapC(void)
RCWrapC::RCWrapC(bool,bool)
RCWrapC::RCWrapC(const DataT &)
RCWrapC::RCWrapC(const RCWrapAbstractC &,bool)
RCWrapC::RCWrapC(const RCAbstractC &)
RCWrapC::RCWrapC(istream &)
RCWrapC::RCWrapC(RCWrapBodyC &)
RCWrapC::Body(void)
RCWrapC::Body(void) const
RCWrapC::Copy(void) const
RCWrapC::Data(void)
RCWrapC::Data(void) const
RCWrapC::operator DataT &(void)
RCWrapC::operator const DataT &(void) const
RCWrapAbstractC::Body(void)
RCWrapAbstractC::Body(void) const
RCWrapAbstractC::DataType(void) const
RCHandleVC::Body(void) const
RCHandleVC::Body(void)
RCHandleVC::Save(ostream &) const
RCHandleVC::Save(BinOStreamC &) const
RCHandleVC::Abstract(void)
RCHandleVC::operator >>(istream &,RCHandleVC &)
RCHandleVC::operator >>(BinIStreamC &,RCHandleVC &)
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::Body(void)
RCHandleC::Body(void) const
RCHandleC::References(void) const
RCHandleC::operator <<(ostream &,const RCHandleC &)
RCHandleC::operator >>(istream &,RCHandleC &)

   RCWrapC<class DataT>   
 
RCWrapper handle.
 
include "Ravl/RCWrap.hh"
Created:06/05/1998 
Source file:Ravl/Core/Base/RCWrap.hh
User Level:Advanced
Library:RavlCore
In Scope:RavlN

Parent Classes: Derived Classes: Methods:
RCWrapC()
Default constructor.
Creates an invalid handle.

RCWrapC(bool makebod,bool)
Default constructor.
Creates an invalid handle.

RCWrapC(const DataT & dat)
Construct from an instance.
Uses the copy constructor to creat a reference counted copy of 'dat.

RCWrapC(const RCWrapAbstractC & val,bool v)
Construct from an abstract handle.
if the object types do not match, an invalid handle is created.

RCWrapC(const RCAbstractC & val)
Construct from an abstract handle.

RCWrapC(istream & in)
Construct from a stream.

RCWrapC(RCWrapBodyC<DataT> & bod)
Body constructor.

RCWrapBodyC<DataT> & Body()
Body access.

const RCWrapBodyC<DataT> & Body() const
Constant body access.

RCWrapC<DataT> Copy() const
Make a copy of this handle.
NB. This assumes the wrapped object is SMALL, and so just using the copy constructor is sufficent.

DataT & Data()
Access data.

const DataT & Data() const
Access data.

operator DataT &()
Default conversion to data type.

operator const DataT &() const
Default conversion to data type.

RCWrapBaseBodyC & Body()
Access body of object.

const RCWrapBaseBodyC & Body() const
Access body of object.

const type_info & DataType() const
Get type of wrapped object.

#include "Ravl/RCHandleV.hh"
const RCWrapBaseBodyC & Body() const
Constant access to body of object.

RCWrapBaseBodyC & Body()
Constant access to body of object.

bool Save(ostream & out) const
Save to stream 'out'.

bool Save(BinOStreamC & out) const
Save to binary stream 'out'.

RCAbstractC Abstract()
Create an abstract handle.

istream & operator >>(istream & strm,RCHandleVC<RCWrapBaseBodyC> & obj)

BinIStreamC & operator >>(BinIStreamC & strm,RCHandleVC<RCWrapBaseBodyC> & obj)

#include "Ravl/RefCounter.hh"
const RCHandleC<RCWrapBaseBodyC> & operator =(const RCHandleC<RCWrapBaseBodyC> & oth)
Assign handle.

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

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

bool operator !=(const RCHandleC<RCWrapBaseBodyC> & 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.

RCWrapBaseBodyC & Body()
Access body of object.

const RCWrapBaseBodyC & 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<RCWrapBaseBodyC> & obj)

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


Maintainer:Charles Galambos, Created: 06/05/1998, Documentation by CxxDoc: Tue Aug 13 09:59:30 2002