RVL::DataContainerFactory Class Reference

Factory class for DataContainers. More...

#include <data.hh>

Inheritance diagram for RVL::DataContainerFactory:

RVL::Factory< T > RVL::Writeable RVL::SpaceDCF< Scalar > List of all members.

Public Member Functions

 DataContainerFactory ()
 DataContainerFactory (const DataContainerFactory &)
virtual ~DataContainerFactory ()
virtual bool compare (DataContainerFactory const &dcf) const =0
 determines whether another DataContainerFactory builds the same kind of DataContainer.
virtual bool isCompatible (DataContainer const &dc) const =0
 determines whether a DataContainer is of the type built by this factory.

Detailed Description

Factory class for DataContainers.

Utmost simplicity. Typical use: implement Space::buildDataContainer in Space subclass.

Definition at line 193 of file data.hh.


Constructor & Destructor Documentation

RVL::DataContainerFactory::DataContainerFactory (  ) 

Definition at line 198 of file data.hh.

RVL::DataContainerFactory::DataContainerFactory ( const DataContainerFactory  ) 

Definition at line 199 of file data.hh.

virtual RVL::DataContainerFactory::~DataContainerFactory (  )  [virtual]

Definition at line 200 of file data.hh.


Member Function Documentation

virtual bool RVL::DataContainerFactory::compare ( DataContainerFactory const &  dcf  )  const [pure virtual]

determines whether another DataContainerFactory builds the same kind of DataContainer.

Usually this means effectively that the two are of the same type, determined by runtime type checking. Returns zero if different types, otherwise nonzero.

Implemented in RVL::SpaceDCF< Scalar >.

virtual bool RVL::DataContainerFactory::isCompatible ( DataContainer const &  dc  )  const [pure virtual]

determines whether a DataContainer is of the type built by this factory.

Usually implemented through runtime type checking. Returns zero if not, else nonzero.

Implemented in RVL::SpaceDCF< Scalar >.

Referenced by RVL::StdSpace< Scalar, DataType >::isCompatible().


The documentation for this class was generated from the following file:
Generated on 5 Jan 2017 for RVL by  doxygen 1.4.7