|
World Ocean Simulation System (WOSS) library
|
Class that stores WossCreator parameters. More...
#include <woss-creator-container.h>


Public Member Functions | |
| WossCreatorContainer ()=default | |
| ~WossCreatorContainer ()=default | |
| bool | isEmpty () const |
| int | size () const |
| bool | insert (const Data &data, const std::shared_ptr< Location > &tx, const std::shared_ptr< Location > &rx) |
| bool | insert (const Data &data, const CoordZ &tx, const CoordZ &rx) |
| Data | get (const std::shared_ptr< Location > &tx, const std::shared_ptr< Location > &rx) const |
| Data | get (const CoordZ &tx, const CoordZ &rx) const |
| Data & | accessAllLocations () |
| void | erase (const std::shared_ptr< Location > &tx, const std::shared_ptr< Location > &rx) |
| void | erase (const CoordZ &tx, const CoordZ &rx) |
| void | replace (const Data &data, const std::shared_ptr< Location > &tx, const std::shared_ptr< Location > &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 std::shared_ptr< Location > | ALL_LOCATIONS = nullptr |
| static const CoordZ | ALL_COORDZ = CoordZ() |
Protected Types | |
| using | InnerContainer = std::map< std::shared_ptr< Location >, Data > |
| using | ICIter = typename InnerContainer::iterator |
| using | ICRIter = typename InnerContainer::reverse_iterator |
| using | ICCIter = typename InnerContainer::const_iterator |
| using | ICCRIter = typename InnerContainer::const_reverse_iterator |
| using | DataContainer = std::map< std::shared_ptr< Location >, InnerContainer > |
| using | DCIter = typename DataContainer::iterator |
| using | DCCIter = typename DataContainer::const_iterator |
| using | DCRIter = typename DataContainer::reverse_iterator |
| using | DCRCIter = typename DataContainer::const_reverse_iterator |
Protected Member Functions | |
| DCIter | find (const CoordZ &coordinates) |
| ICIter | find (const CoordZ &coordinates, const DCIter &iter) |
| std::shared_ptr< Location > | createLocation (const CoordZ &coordinates) |
Protected Attributes | |
| DataContainer | data_container |
| bool | debug = false |
Class that stores WossCreator parameters.
WossCreatorContainer provides interface for storing and retrieving custom WossCreator data, indexed by transmitter and receiver std::shared_ptr<woss::Location>
|
protected |
The outer container. It associates a transmitter Location pointer to a InnerContainer object
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
The innermost container. It associates a receiver Location pointer to the Data object
|
default |
|
default |
|
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
|
inlineprotected |
Creates a Location for a given CoordZ
| coordinates | a const reference to a valid receiver CoordZ |
References woss::Singleton< T >::instance().
Referenced by woss::WossCreatorContainer< CustomTransducer >::createLocation(), woss::WossCreatorContainer< CustomTransducer >::insert(), and woss::WossCreatorContainer< CustomTransducer >::replace().

|
inline |
|
inline |
Erases an object into the container
| tx | const reference to a std::shared_ptr to a valid transmitter Location |
| rx | const reference to a std::shared_ptr 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(), 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, woss::WossCreatorContainer< Data >::debug, and woss::WossCreatorContainer< CustomTransducer >::find().

|
inline |
Returns an object into the container. If the keys are NOT found, a default constructed object is returned
| tx | const reference to a std::shared_ptr to a valid transmitter Location |
| rx | const reference to a std::shared_ptr 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 |
Inserts an object into the container. If the keys are already present, the object is NOT inserted
| data | const reference to a Data object to be inserted |
| tx | const reference to a std::shared_ptr to a valid transmitter Location |
| rx | const reference to a std::shared_ptr to a valid receiver Location |
|
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 reference to a std::shared_ptr to a valid transmitter Location |
| rx | const reference to a std::shared_ptr 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::WossCreator::updateDebugFlag(), and woss::BellhopCreator::updateDebugFlag().
|
inline |
Returns the size of the container
|
static |
Pointer that represents the index for all possible coordinates
Referenced by woss::WossCreatorContainer< CustomTransducer >::createLocation(), 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(), woss::WossCreatorContainer< std::string >::get(), and woss::WossCreatorContainer< Data >::get().
|
protected |
The Data container
Referenced by woss::WossCreatorContainer< CustomTransducer >::accessAllLocations(), woss::WossCreatorContainer< CustomTransducer >::clear(), woss::WossCreatorContainer< CustomTransducer >::erase(), woss::WossCreatorContainer< CustomTransducer >::erase(), woss::WossCreatorContainer< Data >::find(), woss::WossCreatorContainer< Data >::get(), woss::WossCreatorContainer< Data >::get(), woss::WossCreatorContainer< CustomTransducer >::insert(), woss::WossCreatorContainer< CustomTransducer >::insert(), woss::WossCreatorContainer< CustomTransducer >::isEmpty(), woss::WossCreatorContainer< CustomTransducer >::replace(), woss::WossCreatorContainer< CustomTransducer >::replace(), and woss::WossCreatorContainer< CustomTransducer >::size().
|
protected |
Debug flag
Referenced by woss::WossCreatorContainer< Data >::find(), woss::WossCreatorContainer< Data >::find(), woss::WossCreatorContainer< Data >::get(), woss::WossCreatorContainer< std::string >::get(), woss::WossCreatorContainer< Data >::get(), woss::WossCreatorContainer< Data >::isUsingDebug(), woss::WossCreatorContainer< CustomTransducer >::isUsingDebug(), woss::WossCreatorContainer< Data >::setDebug(), and woss::WossCreatorContainer< CustomTransducer >::setDebug().