Standard implementation of ProductDataContainer. More...
#include <productdata.hh>
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) |
Standard implementation of ProductDataContainer.
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 | ( | ) |
Default constructor yields size=0 object.
Definition at line 259 of file productdata.hh.
RVL::StdProductDataContainer::~StdProductDataContainer | ( | ) |
Definition at line 261 of file productdata.hh.
size_t RVL::StdProductDataContainer::getSize | ( | ) | const [virtual] |
Implements RVL::Product< DataContainer >.
Definition at line 267 of file productdata.hh.
DataContainer& RVL::StdProductDataContainer::operator[] | ( | size_t | i | ) | [virtual] |
Implements RVL::Product< DataContainer >.
Definition at line 269 of file productdata.hh.
DataContainer const& RVL::StdProductDataContainer::operator[] | ( | size_t | i | ) | const [virtual] |
Implements RVL::Product< DataContainer >.
Definition at line 280 of file productdata.hh.
void RVL::StdProductDataContainer::push | ( | DataContainerFactory const & | f | ) |
Definition at line 291 of file productdata.hh.