User Documentation
RAVL, Recognition And Vision Library
Ravl - Core - IO - Type Converter - DPConverterFuncC<class InT,class OutT>

DPConverterFuncC::DPConverterFuncC(OutT (*func)(const InT & in) ,RealT,const char *)
DPConverterBaseC::IsA(const DPEntityC &)
DPConverterBaseC::Cost(void) const
DPConverterBaseC::Apply(const RCAbstractC &)
DPProcInfoC::IsA(const DPEntityC &)
DPProcInfoC::ProcType(void) const
DPProcInfoC::Args(void) const
DPProcInfoC::ArgType(IntT) const
DPProcInfoC::Output(void) const
DPProcInfoC::CreateProc(void) const
DPProcInfoC::CreateIStream(const DPIPortBaseC &) const
DPProcInfoC::CreateOStream(const DPOPortBaseC &) const
DPProcInfoC::Apply(const DPProcessBaseC &,SArray1dC)
DPProcInfoC::Apply1(const DPProcessBaseC &,const RCAbstractC &)
DPProcInfoC::Apply2(const DPProcessBaseC &,const RCAbstractC &,const RCAbstractC &)
DPEntityC::operator =(const DPEntityC &)
DPEntityC::Body(void) const
RCHandleVC::Save(ostream &) const
RCHandleVC::Save(BinOStreamC &) const
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::IsHandleType(const DT &) const
RCHandleC::CheckHandleType(const DT &) const
RCHandleC::References(void) const
RCHandleC::operator <<(ostream &,const RCHandleC &)
RCHandleC::operator >>(istream &,RCHandleC &)

   DPConverterFuncC<class InT,class OutT>   
Setup data conversion function.
include "Ravl/DP/Converter.hh"
User Level:Normal
In Scope:RavlN

This uses a pointer to a function to implement a type converter.

Parent Classes: Methods:
DPConverterFuncC(OutT (*func)(const InT & in) ,RealT ncost = 1,const char * funcName = 0)
Default constructor.

static bool IsA(const DPEntityC & obj)
Is widget a menu ?

RealT Cost() const
Get cost of conversion.

RCAbstractC Apply(const RCAbstractC & dat)
Apply conversion.

#include "Ravl/DP/ProcInfo.hh"
static bool IsA(const DPEntityC & ent)
Is entity a proc info ?

const type_info & ProcType() const
Get type of process

IntT Args() const
Number of args for process.

const type_info & ArgType(IntT i) const
Type of args.

const type_info & Output() const
Output type.

DPProcessBaseC CreateProc() const
Create instance of process.

DPIPortBaseC CreateIStream(const DPIPortBaseC & inp) const
Create instance of process.

DPOPortBaseC CreateOStream(const DPOPortBaseC & outp) const
Create instance of process.

RCAbstractC Apply(const DPProcessBaseC & proc,SArray1dC<RCAbstractC> dat)
Apply process using abstract data handles.

RCAbstractC Apply1(const DPProcessBaseC & proc,const RCAbstractC & arg)
Apply process using abstract data handle.
Use only is you know the process uses 1 arg !

RCAbstractC Apply2(const DPProcessBaseC & proc,const RCAbstractC & arg1,const RCAbstractC & arg2)
Apply process using abstract data handle.
Use only is you know the process uses 2 args !

#include "Ravl/DP/Entity.hh"
const DPEntityC & operator =(const DPEntityC & dat)

DPEntityBodyC & Body()
Access body.

const DPEntityBodyC & Body() const
Access body.

#include "Ravl/RCHandleV.hh"
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<DPEntityBodyC> & obj)

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

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

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

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

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

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

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

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

Maintainer:Charles Galambos, Created: 17/08/1998, Documentation by CxxDoc: Tue Aug 13 09:59:02 2002