RVL::StdProductDataContainer Class Reference

Standard implementation of ProductDataContainer. More...

#include <productdata.hh>

Inheritance diagram for RVL::StdProductDataContainer:
RVL::ProductDataContainer RVL::DataContainer RVL::Product< DataContainer > RVL::Writeable

List of all members.

Public Member Functions

 StdProductDataContainer ()
 Default constructor yields size=0 object.
 ~StdProductDataContainer ()
size_t getSize () const
DataContaineroperator[] (size_t i)
DataContainer const & operator[] (size_t i) const
void push (DataContainerFactory const &f)

Detailed Description

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.


Constructor & Destructor Documentation

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.


Member Function Documentation

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.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Friends Defines

Generated on 3 Jan 2017 for RVL by  doxygen 1.6.1