World Ocean Simulation System (WOSS) library
|
Class that stores WossCreator parameters. More...
#include <woss-creator-container.h>
Public Member Functions | |
WossCreatorContainer () | |
~WossCreatorContainer () | |
bool | isEmpty () const |
int | size () const |
bool | insert (const Data &data, Location *const tx, Location *const rx) |
bool | insert (const Data &data, const CoordZ &tx, const CoordZ &rx) |
Data | get (Location *const tx, Location *const rx) const |
Data | get (const CoordZ &tx, const CoordZ &rx) const |
Data & | accessAllLocations () |
void | erase (Location *const tx, Location *const rx) |
void | erase (const CoordZ &tx, const CoordZ &rx) |
void | replace (const Data &data, Location *const tx, Location *const rx) |
void | replace (const Data &data, const CoordZ &tx, const CoordZ &rx) |
void | clear () |
void | setDebug (bool flag) |
bool | isUsingDebug () const |
Static Public Attributes | |
static Location *const | ALL_LOCATIONS = NULL |
static const CoordZ | ALL_COORDZ = CoordZ() |
Protected Types | |
typedef ::std::map< Location *, Data > | 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 |
Class that stores WossCreator parameters.
WossCreatorContainer provides interface for storing and retrieving custom WossCreator data, indexed by transmitter and receiver woss::Location*
|
protected |
The outer container. It associates a transmitter Location pointer to a InnerContainer object
|
protected |
The innermost container. It associates a receiver Location pointer to the Data object
woss::WossCreatorContainer< Data >::WossCreatorContainer | ( | ) |
Default constructor
woss::WossCreatorContainer< Data >::~WossCreatorContainer | ( | ) |
Destructor
References woss::WossCreatorContainer< Data >::clear().
|
inline |
Returns a reference to the Data object associated to transmitter and receiver Location equal to ALL_LOCATIONS. If no keys were present, the Data object is default constructed and a reference to it is returned
Referenced by woss::WossCreator::WossCreator().
|
inline |
Clears the container
Referenced by woss::WossCreatorContainer< Data >::~WossCreatorContainer().
|
inlineprotected |
Creates a Location for a given CoordZ
coordinates | a const reference to a valid receiver CoordZ |
Referenced by woss::WossCreatorContainer< CustomTransducer >::insert(), and woss::WossCreatorContainer< CustomTransducer >::replace().
|
inline |
|
inline |
Erases an object into the container
tx | const pointer to a valid transmitter Location |
rx | const pointer to a valid receiver Location |
Referenced by woss::BellhopCreator::eraseAltimetryType(), woss::BellhopCreator::eraseAltimetryType(), woss::BellhopCreator::eraseAngles(), woss::BellhopCreator::eraseAngles(), woss::BellhopCreator::eraseBathymetryMethod(), woss::BellhopCreator::eraseBathymetryMethod(), woss::BellhopCreator::eraseBathymetryType(), woss::BellhopCreator::eraseBathymetryType(), woss::BellhopCreator::eraseBeamOptions(), woss::BellhopCreator::eraseBeamOptions(), woss::BellhopCreator::eraseBhMode(), woss::BellhopCreator::eraseBhMode(), woss::BellhopCreator::eraseBoxDepth(), woss::BellhopCreator::eraseBoxDepth(), woss::BellhopCreator::eraseBoxRange(), woss::BellhopCreator::eraseBoxRange(), woss::BellhopCreator::eraseCustomTransducer(), woss::WossCreator::eraseEvolutionTimeQuantum(), woss::WossCreator::eraseEvolutionTimeQuantum(), woss::WossCreator::eraseFrequencyStep(), woss::WossCreator::eraseFrequencyStep(), woss::BellhopCreator::eraseRaysNumber(), woss::BellhopCreator::eraseRaysNumber(), woss::BellhopCreator::eraseRxMaxDepthOffset(), woss::BellhopCreator::eraseRxMaxDepthOffset(), woss::BellhopCreator::eraseRxMaxRangeOffset(), woss::BellhopCreator::eraseRxMaxRangeOffset(), woss::BellhopCreator::eraseRxMinDepthOffset(), woss::BellhopCreator::eraseRxMinDepthOffset(), woss::BellhopCreator::eraseRxMinRangeOffset(), woss::BellhopCreator::eraseRxMinRangeOffset(), woss::BellhopCreator::eraseRxTotalDepths(), woss::BellhopCreator::eraseRxTotalDepths(), woss::BellhopCreator::eraseRxTotalRanges(), woss::BellhopCreator::eraseRxTotalRanges(), woss::WossCreator::eraseSimTime(), woss::WossCreator::eraseSimTime(), woss::BellhopCreator::eraseSspDepthPrecision(), woss::BellhopCreator::eraseSspDepthPrecision(), woss::BellhopCreator::eraseSspDepthSteps(), woss::BellhopCreator::eraseSspDepthSteps(), woss::BellhopCreator::eraseTotalRangeSteps(), woss::BellhopCreator::eraseTotalRangeSteps(), woss::WossCreator::eraseTotalRuns(), woss::WossCreator::eraseTotalRuns(), woss::BellhopCreator::eraseTotalTransmitters(), woss::BellhopCreator::eraseTotalTransmitters(), woss::BellhopCreator::eraseTxMaxDepthOffset(), woss::BellhopCreator::eraseTxMaxDepthOffset(), woss::BellhopCreator::eraseTxMinDepthOffset(), and woss::BellhopCreator::eraseTxMinDepthOffset().
|
protected |
Returns an DataContainer iterators that points to the given transmitter coordinates. An iterator to the end of the DataContainer is returned if no coordinates are found
coordinates | a const reference to a valid transmitter CoordZ |
References woss::WossCreatorContainer< Data >::ALL_COORDZ, woss::WossCreatorContainer< Data >::ALL_LOCATIONS, woss::WossCreatorContainer< Data >::data_container, and woss::WossCreatorContainer< Data >::debug.
Referenced by woss::WossCreatorContainer< Data * >::get(), woss::WossCreatorContainer< Data >::get(), and woss::WossCreatorContainer< CustomTransducer >::insert().
|
protected |
Returns an InnerContainer iterators for the DataContainter iterator that points to the given receiver coordinates. An iterator to the relative end of the InnerContainer is returned if no coordinates are found
coordinates | a const reference to a valid receiver CoordZ |
References woss::WossCreatorContainer< Data >::ALL_COORDZ, woss::WossCreatorContainer< Data >::ALL_LOCATIONS, and woss::WossCreatorContainer< Data >::debug.
|
inline |
Returns an object into the container. If the keys are NOT found, a default constructed object is returned
tx | const reference to a valid transmitter CoordZ |
rx | const reference to a valid receiver CoordZ |
References woss::WossCreatorContainer< Data >::ALL_COORDZ, woss::WossCreatorContainer< Data >::data_container, and woss::WossCreatorContainer< Data >::debug.
|
inline |
Returns an object into the container. If the keys are NOT found, a default constructed object is returned
tx | const pointer to a valid transmitter Location |
rx | const pointer to a valid receiver Location |
References woss::WossCreatorContainer< Data >::ALL_LOCATIONS, woss::WossCreatorContainer< Data >::data_container, woss::WossCreatorContainer< Data >::debug, and woss::WossCreatorContainer< Data >::find().
Referenced by woss::BellhopCreator::getAltimetryType(), woss::BellhopCreator::getAltimetryType(), woss::BellhopCreator::getAngles(), woss::BellhopCreator::getAngles(), woss::BellhopCreator::getBathymetryMethod(), woss::BellhopCreator::getBathymetryMethod(), woss::BellhopCreator::getBathymetryType(), woss::BellhopCreator::getBathymetryType(), woss::BellhopCreator::getBeamOptions(), woss::BellhopCreator::getBeamOptions(), woss::BellhopCreator::getBhMode(), woss::BellhopCreator::getBhMode(), woss::BellhopCreator::getBoxDepth(), woss::BellhopCreator::getBoxDepth(), woss::BellhopCreator::getBoxRange(), woss::BellhopCreator::getBoxRange(), woss::WossCreator::getEvolutionTimeQuantum(), woss::WossCreator::getEvolutionTimeQuantum(), woss::WossCreator::getFrequencyStep(), woss::WossCreator::getFrequencyStep(), woss::BellhopCreator::getRaysNumber(), woss::BellhopCreator::getRaysNumber(), woss::BellhopCreator::getRxMaxDepthOffset(), woss::BellhopCreator::getRxMaxDepthOffset(), woss::BellhopCreator::getRxMaxRangeOffset(), woss::BellhopCreator::getRxMaxRangeOffset(), woss::BellhopCreator::getRxMinDepthOffset(), woss::BellhopCreator::getRxMinDepthOffset(), woss::BellhopCreator::getRxMinRangeOffset(), woss::BellhopCreator::getRxMinRangeOffset(), woss::BellhopCreator::getRxTotalDepths(), woss::BellhopCreator::getRxTotalDepths(), woss::BellhopCreator::getRxTotalRanges(), woss::BellhopCreator::getRxTotalRanges(), woss::WossCreator::getSimTime(), woss::WossCreator::getSimTime(), woss::BellhopCreator::getSspDepthPrecision(), woss::BellhopCreator::getSspDepthPrecision(), woss::BellhopCreator::getSspDepthSteps(), woss::BellhopCreator::getSspDepthSteps(), woss::BellhopCreator::getTotalRangeSteps(), woss::BellhopCreator::getTotalRangeSteps(), woss::WossCreator::getTotalRuns(), woss::WossCreator::getTotalRuns(), woss::BellhopCreator::getTotalTransmitters(), woss::BellhopCreator::getTotalTransmitters(), woss::BellhopCreator::getTxMaxDepthOffset(), woss::BellhopCreator::getTxMaxDepthOffset(), woss::BellhopCreator::getTxMinDepthOffset(), woss::BellhopCreator::getTxMinDepthOffset(), woss::BellhopCreator::initializeBhWoss(), and woss::WossCreator::initializeWoss().
|
inline |
|
inline |
|
inline |
Checks if the container is empty
Referenced by woss::BellhopCreator::initializeBhWoss().
|
inline |
Retuns the debug flag
References woss::WossCreatorContainer< Data >::debug.
|
inline |
|
inline |
Replaces an object into the container. If the key are not present, the object is still inserted
data | const reference to a Data object to be inserted |
tx | const pointer to a valid transmitter Location |
rx | const pointer to a valid receiver Location |
Referenced by woss::BellhopCreator::setAltimetryType(), woss::BellhopCreator::setAltimetryType(), woss::BellhopCreator::setAngles(), woss::BellhopCreator::setAngles(), woss::BellhopCreator::setBathymetryMethod(), woss::BellhopCreator::setBathymetryMethod(), woss::BellhopCreator::setBathymetryType(), woss::BellhopCreator::setBathymetryType(), woss::BellhopCreator::setBeamOptions(), woss::BellhopCreator::setBeamOptions(), woss::BellhopCreator::setBhMode(), woss::BellhopCreator::setBhMode(), woss::BellhopCreator::setBoxDepth(), woss::BellhopCreator::setBoxDepth(), woss::BellhopCreator::setBoxRange(), woss::BellhopCreator::setBoxRange(), woss::WossCreator::setEvolutionTimeQuantum(), woss::WossCreator::setEvolutionTimeQuantum(), woss::WossCreator::setFrequencyStep(), woss::WossCreator::setFrequencyStep(), woss::BellhopCreator::setRaysNumber(), woss::BellhopCreator::setRaysNumber(), woss::BellhopCreator::setRxMaxDepthOffset(), woss::BellhopCreator::setRxMaxDepthOffset(), woss::BellhopCreator::setRxMaxRangeOffset(), woss::BellhopCreator::setRxMaxRangeOffset(), woss::BellhopCreator::setRxMinDepthOffset(), woss::BellhopCreator::setRxMinDepthOffset(), woss::BellhopCreator::setRxMinRangeOffset(), woss::BellhopCreator::setRxMinRangeOffset(), woss::BellhopCreator::setRxTotalDepths(), woss::BellhopCreator::setRxTotalDepths(), woss::BellhopCreator::setRxTotalRanges(), woss::BellhopCreator::setRxTotalRanges(), woss::WossCreator::setSimTime(), woss::WossCreator::setSimTime(), woss::BellhopCreator::setSspDepthPrecision(), woss::BellhopCreator::setSspDepthPrecision(), woss::BellhopCreator::setSspDepthSteps(), woss::BellhopCreator::setSspDepthSteps(), woss::BellhopCreator::setTotalRangeSteps(), woss::BellhopCreator::setTotalRangeSteps(), woss::WossCreator::setTotalRuns(), woss::WossCreator::setTotalRuns(), woss::BellhopCreator::setTotalTransmitters(), woss::BellhopCreator::setTotalTransmitters(), woss::BellhopCreator::setTxMaxDepthOffset(), woss::BellhopCreator::setTxMaxDepthOffset(), woss::BellhopCreator::setTxMinDepthOffset(), and woss::BellhopCreator::setTxMinDepthOffset().
|
inline |
Sets or unsets the debug flag
flag | boolean flag |
References woss::WossCreatorContainer< Data >::debug.
Referenced by woss::BellhopCreator::updateDebugFlag(), and woss::WossCreator::updateDebugFlag().
|
inline |
Returns the size of the container
|
static |
Pointer that represents the index for all possible coordinates
Referenced by woss::WossCreatorContainer< Data >::find(), woss::WossCreatorContainer< Data >::find(), and woss::WossCreatorContainer< Data >::get().
|
static |
Pointer that represents the index for all possible Locations
Referenced by woss::WossCreatorContainer< CustomTransducer >::accessAllLocations(), woss::WossCreatorContainer< Data >::find(), woss::WossCreatorContainer< Data >::find(), and woss::WossCreatorContainer< Data >::get().
|
protected |
The Data container
Referenced by woss::WossCreatorContainer< CustomTransducer >::accessAllLocations(), woss::WossCreatorContainer< Data >::find(), woss::WossCreatorContainer< Data >::get(), woss::WossCreatorContainer< Data >::get(), woss::WossCreatorContainer< CustomTransducer >::insert(), woss::WossCreatorContainer< CustomTransducer >::insert(), woss::WossCreatorContainer< CustomTransducer >::replace(), and woss::WossCreatorContainer< CustomTransducer >::replace().
|
protected |
Debug flag
Referenced by woss::WossCreatorContainer< Data >::find(), woss::WossCreatorContainer< Data >::find(), woss::WossCreatorContainer< Data >::get(), woss::WossCreatorContainer< Data >::get(), woss::WossCreatorContainer< Data >::isUsingDebug(), and woss::WossCreatorContainer< Data >::setDebug().