#include <data.hh>
Inheritance diagram for RVL::DataContainerFactory:
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. |
Utmost simplicity. Typical use: implement Space::buildDataContainer in Space subclass.
Definition at line 193 of file data.hh.
RVL::DataContainerFactory::DataContainerFactory | ( | const DataContainerFactory & | ) |
virtual RVL::DataContainerFactory::~DataContainerFactory | ( | ) | [virtual] |
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().