Developer Documentation
RAVL, Recognition And Vision Library
USER HOME PAGE CLASS LIST CONTENTS
Ravl - Core - IO - Type Converter - DPConverterBaseBodyC
 

  PUBLIC
DPConverterBaseBodyC::DPConverterBaseBodyC(const type_info &,const type_info &,RealT)
DPConverterBaseBodyC::Args(void) const
DPConverterBaseBodyC::ArgType(IntT) const
DPConverterBaseBodyC::Output(void) const
DPConverterBaseBodyC::Apply(const RCAbstractC &)
DPConverterBaseBodyC::Cost(void) const
DPProcInfoBodyC::ProcType(void) const
DPProcInfoBodyC::Args(void) const
DPProcInfoBodyC::ArgType(IntT) const
DPProcInfoBodyC::Output(void) const
DPProcInfoBodyC::CreateProc(void) const
DPProcInfoBodyC::CreateIStream(const DPIPortBaseC &) const
DPProcInfoBodyC::CreateOStream(const DPOPortBaseC &) const
DPProcInfoBodyC::Apply(const DPProcessBaseC &,SArray1dC)
DPProcInfoBodyC::Apply1(const DPProcessBaseC &,const RCAbstractC &)
DPProcInfoBodyC::Apply2(const DPProcessBaseC &,const RCAbstractC &,const RCAbstractC &)
DPProcInfoBodyC::Procs(void)
DPEntityBodyC::Save(ostream &) const
DPEntityBodyC::Save(BinOStreamC &) const
DPEntityBodyC::Copy(void) const
RCBodyVC::Save(ostream &) const
RCBodyVC::Save(BinOStreamC &) const
RCBodyVC::Copy(void) const
RCBodyVC::DeepCopy(UIntT) const
RCBodyC::References(void) const
RCBodyC::Copy(void) const
RCBodyC::DeepCopy(UIntT) const
RCBodyC::IncRefCounter(void)
RCBodyC::DecRefCounter(void)

   DPConverterBaseBodyC   
 
Converted base body class
 
include "Ravl/DP/Converter.hh"
Created:17/08/1998 
Source file:Ravl/Core/IO/Converter.hh
User Level:Develop
Library:RavlIO
In Scope:RavlN

Comments:
This base body class provides an abstract interface to a particular type conversion.

Parent Classes: Derived Classes: Variables:
const type_info & input_type;

const type_info & output_type;

RealT cost;
Conversion cost.

DPProcessBaseC proc;
Instance of processes. Since all conversion processes should be stateless.

Methods:
DPConverterBaseBodyC(const type_info & ninput_type,const type_info & noutput_type,RealT ncost = 1)
Constructor.

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.

RCAbstractC Apply(const RCAbstractC & dat)
Apply conversion.

RealT Cost() const
Cost of conversion.

#include "Ravl/DP/ProcInfo.hh"
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 handle.
These should be RCWrap's of the actual data.

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 !

static DListC<DPProcInfoC> & Procs()
List of process types.

#include "Ravl/DP/Entity.hh"
bool Save(ostream & out) const
Save to ostream.

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

RCBodyVC & Copy() const
Creat a copy of this object.

#include "Ravl/RCHandleV.hh"
bool Save(ostream & out) const
Save to stream 'out'.

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

RCBodyVC & 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.

#include "Ravl/RefCounter.hh"
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.


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