User Manual, Developers Guide and API Documentation

wns::Broker< ELEMENT > Class Template Reference

Able to create ELEMENTs from respective pyconfig::View. More...

#include <Broker.hpp>

Collaboration diagram for wns::Broker< ELEMENT >:

Collaboration graph
[legend]

List of all members.

Public Member Functions

ELEMENT * procure (const pyconfig::View &pyco)
 Returns an object configured with pyco.
 ~Broker ()
 Will delete all elements.

Private Types

typedef container::Registry
< pyconfig::View, ELEMENT
*, container::registry::DeleteOnErase
Registry
 Store the objects created from pyconfig::View.

Private Attributes

Registry r
 ELEMENTs are stored here.


Detailed Description

template<typename ELEMENT>
class wns::Broker< ELEMENT >

If an object for a specific View has already been created this object is returned (instead of creating a new one).

Definition at line 43 of file Broker.hpp.


Member Typedef Documentation

template<typename ELEMENT>
typedef container::Registry<pyconfig::View, ELEMENT*, container::registry::DeleteOnErase> wns::Broker< ELEMENT >::Registry [private]

Definition at line 48 of file Broker.hpp.


Constructor & Destructor Documentation

template<typename ELEMENT>
wns::Broker< ELEMENT >::~Broker (  )  [inline]

Definition at line 55 of file Broker.hpp.


Member Function Documentation

template<typename ELEMENT>
ELEMENT* wns::Broker< ELEMENT >::procure ( const pyconfig::View pyco  )  [inline]

Definition at line 64 of file Broker.hpp.


Member Data Documentation

template<typename ELEMENT>
Registry wns::Broker< ELEMENT >::r [private]

Definition at line 82 of file Broker.hpp.


The documentation for this class was generated from the following file:

Generated on Sat May 26 03:32:50 2012 for openWNS by  doxygen 1.5.5