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

Public Member Functions | |
| WossCreatorContainer ()=default | |
| ~WossCreatorContainer ()=default | |
| bool | isEmpty () const |
| int | size () const |
| bool | insert (const CustomTransducer &data, const std::shared_ptr< Location > &tx, const std::shared_ptr< Location > &rx) |
| bool | insert (const CustomTransducer &data, const CoordZ &tx, const CoordZ &rx) |
| CustomTransducer | get (const std::shared_ptr< Location > &tx, const std::shared_ptr< Location > &rx) const |
| CustomTransducer | get (const CoordZ &tx, const CoordZ &rx) const |
| CustomTransducer & | 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 CustomTransducer &data, const std::shared_ptr< Location > &tx, const std::shared_ptr< Location > &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 std::shared_ptr< Location > | ALL_LOCATIONS |
| static const CoordZ | ALL_COORDZ |
Protected Types | |
| using | InnerContainer = std::map< std::shared_ptr< Location >, CustomTransducer > |
| using | ICIter = InnerContainer::iterator |
| using | ICRIter = InnerContainer::reverse_iterator |
| using | ICCIter = InnerContainer::const_iterator |
| using | ICCRIter = InnerContainer::const_reverse_iterator |
| using | DataContainer = std::map< std::shared_ptr< Location >, InnerContainer > |
| using | DCIter = DataContainer::iterator |
| using | DCCIter = DataContainer::const_iterator |
| using | DCRIter = DataContainer::reverse_iterator |
| using | DCRCIter = 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 |
Full specialization for woss::CustomTransducer.
Full specialization for woss::CustomTransducer
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
default |
|
default |
|
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().
|
inline |
|
inlineprotected |
References woss::WossCreatorContainer< Data >::ALL_COORDZ, woss::WossCreatorContainer< Data >::createLocation(), and woss::Singleton< T >::instance().

|
inline |
Erases an CustomTransducer from the container. If the keys are already present, the previous object is deleted
| tx | const reference to a valid transmitter CoordZ |
| rx | const reference to a valid receiver CoordZ |
References woss::WossCreatorContainer< Data >::data_container.
|
inline |
Erases an CustomTransducer from the container. If the keys are already present, the previous object is deleted
| 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 >::data_container.
Referenced by woss::BellhopCreator::eraseCustomTransducer().
|
protected |
Referenced by woss::WossCreatorContainer< Data >::get().
|
protected |
| 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 nullptr pointer is returned
| tx | const reference to a valid transmitter CoordZ |
| rx | const reference to a valid receiver CoordZ |
| CustomTransducer woss::WossCreatorContainer< CustomTransducer >::get | ( | const std::shared_ptr< Location > & | tx, |
| const std::shared_ptr< Location > & | rx | ||
| ) | const |
Returns a CustomTransducer for given keys. If the keys are not found a nullptr pointer 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 |
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 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 >::data_container.
|
inline |
|
inline |
References woss::WossCreatorContainer< Data >::debug.
|
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 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 >::data_container.
Referenced by woss::BellhopCreator::setCustomTransducer(), and woss::BellhopCreator::setCustomTransducer().
|
inline |
References woss::WossCreatorContainer< Data >::debug.
Referenced by woss::BellhopCreator::updateDebugFlag().
|
inline |
|
static |
|
static |
|
protected |
|
protected |