#include <productdata.hh>
Inheritance diagram for RVL::StdProductDataContainer:
Public Member Functions | |
StdProductDataContainer () | |
Default constructor yields size=0 object. | |
~StdProductDataContainer () | |
size_t | getSize () const |
DataContainer & | operator[] (size_t i) |
DataContainer const & | operator[] (size_t i) const |
void | push (DataContainerFactory const &f) |
Stores components by pointer in a std::vector. The default constructor creates a StdProductDataContainer which does not own any data, and pointers to DataContainers can be appended to it using the tt push() method.
Major change, WWS, 09.09: no longer a "stupid pointer" class, but an intrusive handle like other RVL containers. Instead of a pointer to DC, push method accepts a const DCF reference and uses the DCF's build method to add a pointer. Thus all data referenced by a StdPDC object is managed by it.
Definition at line 242 of file productdata.hh.
RVL::StdProductDataContainer::StdProductDataContainer | ( | ) |
RVL::StdProductDataContainer::~StdProductDataContainer | ( | ) |
size_t RVL::StdProductDataContainer::getSize | ( | ) | const [virtual] |
Implements RVL::Product< T >.
Definition at line 267 of file productdata.hh.
Referenced by ~StdProductDataContainer().
DataContainer& RVL::StdProductDataContainer::operator[] | ( | size_t | i | ) | [virtual] |
DataContainer const& RVL::StdProductDataContainer::operator[] | ( | size_t | i | ) | const [virtual] |
void RVL::StdProductDataContainer::push | ( | DataContainerFactory const & | f | ) |
Definition at line 291 of file productdata.hh.
References RVL::Factory< T >::build().
Referenced by RVL::CartesianPowerSpace< Scalar >::buildDataContainer(), and RVL::StdProductSpace< Scalar >::buildDataContainer().