|
World Ocean Simulation System (WOSS) library
|
Full specialization for woss::CustomTransducer. More...
#include <woss-creator-container.h>

Public Member Functions | |
| bool | isEmpty () const |
| int | size () const |
| bool | insert (const CustomTransducer &data, Location *const tx, Location *const rx) |
| bool | insert (const CustomTransducer &data, const CoordZ &tx, const CoordZ &rx) |
| CustomTransducer | get (Location *const tx, Location *const rx) const |
| CustomTransducer | get (const CoordZ &tx, const CoordZ &rx) const |
| CustomTransducer & | accessAllLocations () |
| void | erase (Location *const tx, Location *const rx) |
| void | erase (const CoordZ &tx, const CoordZ &rx) |
| void | replace (const CustomTransducer &data, Location *const tx, Location *const rx) |
| void | replace (const CustomTransducer &data, const CoordZ &tx, const CoordZ &rx) |
| void | clear () |
| void | setDebug (bool flag) |
| bool | isUsingDebug () const |
Static Public Attributes | |
| static Location *const | ALL_LOCATIONS |
| static const CoordZ | ALL_COORDZ |
Protected Types | |
| typedef ::std::map< Location *, CustomTransducer > | InnerContainer |
| typedef InnerContainer::iterator | ICIter |
| typedef InnerContainer::reverse_iterator | ICRIter |
| typedef InnerContainer::const_iterator | ICCIter |
| typedef InnerContainer::const_reverse_iterator | ICCRIter |
| typedef ::std::map< Location *, InnerContainer > | DataContainer |
| typedef DataContainer::iterator | DCIter |
| typedef DataContainer::const_iterator | DCCIter |
| typedef DataContainer::reverse_iterator | DCRIter |
| typedef DataContainer::const_reverse_iterator | DCRCIter |
Protected Member Functions | |
| DCIter | find (const CoordZ &coordinates) |
| ICIter | find (const CoordZ &coordinates, const DCIter &iter) |
| Location * | createLocation (const CoordZ &coordinates) |
Protected Attributes | |
| DataContainer | data_container |
| bool | debug |
Full specialization for woss::CustomTransducer.
Full specialization for woss::CustomTransducer
|
inline |
Returns a reference to the CustomTransducer associated to transmitter and receiver Location equal to ALL_LOCATIONS. If no keys were present, the CustomTransducer is defaulted constructed and a reference to it is returned. The user has to properly delete the pointer prior changing it
References woss::WossCreatorContainer< Data >::ALL_LOCATIONS, and woss::WossCreatorContainer< Data >::data_container.
Referenced by woss::BellhopCreator::BellhopCreator().
| CustomTransducer woss::WossCreatorContainer< CustomTransducer >::get | ( | const CoordZ & | tx, |
| const CoordZ & | rx | ||
| ) | const |
Returns a CustomTransducer pointer for given keys. If the keys are not found a NULL pointer is returned
| tx | const reference to a valid transmitter CoordZ |
| rx | const reference to a valid receiver CoordZ |
| CustomTransducer woss::WossCreatorContainer< CustomTransducer >::get | ( | Location *const | tx, |
| Location *const | rx | ||
| ) | const |
Returns a CustomTransducer for given keys. If the keys are not found a NULL pointer is returned
| tx | const pointer to a valid transmitter Location |
| rx | const pointer to a valid receiver Location |
Referenced by woss::BellhopCreator::getCustomTransducer(), woss::BellhopCreator::getCustomTransducer(), and woss::BellhopCreator::initializeBhWoss().
|
inline |
Inserts an object into the container. If the keys are already present, the object is NOT inserted and it is deleted
| data | const pointer to a CustomTransducer object to be inserted |
| tx | const reference to a valid transmitter CoordZ |
| rx | const reference to a valid receiver CoordZ |
References woss::WossCreatorContainer< Data >::createLocation(), woss::WossCreatorContainer< Data >::data_container, and woss::WossCreatorContainer< Data >::find().

|
inline |
Inserts an object into the container. If the keys are already present, the object is NOT inserted and it is deleted
| data | const reference to a CustomTransducer object to be inserted |
| tx | const pointer to a valid transmitter Location |
| rx | const pointer to a valid receiver Location |
References woss::WossCreatorContainer< Data >::data_container.
|
inline |
Replaces a pointer into the container. If the keys are already present, the previous object is deleted
| data | const pointer to a CustomTransducer object to be inserted |
| tx | const reference to a valid transmitter CoordZ |
| rx | const reference to a valid receiver CoordZ |
References woss::WossCreatorContainer< Data >::createLocation(), and woss::WossCreatorContainer< Data >::data_container.

|
inline |
Replaces a pointer into the container. If the keys are already present, the previous object is deleted
| data | const reference to a CustomTransducer object to be inserted |
| tx | const pointer to a valid transmitter Location |
| rx | const pointer to a valid receiver Location |
References woss::WossCreatorContainer< Data >::data_container.
Referenced by woss::BellhopCreator::setCustomTransducer(), and woss::BellhopCreator::setCustomTransducer().