Utility class for StdAir-based objects. More...
#include <stdair/bom/BomManager.hpp>
Public Member Functions | |
template<typename OBJECT2 , typename OBJECT1 > | |
const BomHolder< OBJECT2 >::BomList_T & | getList (const OBJECT1 &iObject1) |
template<typename OBJECT2 , typename OBJECT1 > | |
const BomHolder< OBJECT2 >::BomMap_T & | getMap (const OBJECT1 &iObject1) |
template<> | |
bool | hasList (const SegmentDate &ioSegmentDate) |
template<> | |
const BomHolder< SegmentDate >::BomList_T & | getList (const SegmentDate &ioSegmentDate) |
template<> | |
bool | hasMap (const SegmentDate &ioSegmentDate) |
template<> | |
bool | hasList (const Inventory &ioInventory) |
template<> | |
bool | hasMap (const Inventory &ioInventory) |
template<> | |
AirlineFeature * | getObjectPtr (const Inventory &iInventory, const MapKey_T &iKey) |
template<> | |
AirlineFeature & | getObject (const Inventory &iInventory, const MapKey_T &iKey) |
Static Public Member Functions | |
template<typename OBJECT2 , typename OBJECT1 > | |
static const BomHolder< OBJECT2 >::BomList_T & | getList (const OBJECT1 &) |
template<typename OBJECT2 , typename OBJECT1 > | |
static const BomHolder< OBJECT2 >::BomMap_T & | getMap (const OBJECT1 &) |
template<typename OBJECT2 , typename OBJECT1 > | |
static bool | hasList (const OBJECT1 &) |
template<typename OBJECT2 , typename OBJECT1 > | |
static bool | hasMap (const OBJECT1 &) |
template<typename PARENT , typename CHILD > | |
static PARENT * | getParentPtr (const CHILD &) |
template<typename PARENT , typename CHILD > | |
static PARENT & | getParent (const CHILD &) |
template<typename OBJECT2 , typename OBJECT1 > | |
static OBJECT2 * | getObjectPtr (const OBJECT1 &, const MapKey_T &) |
template<typename OBJECT2 , typename OBJECT1 > | |
static OBJECT2 & | getObject (const OBJECT1 &, const MapKey_T &) |
Friends | |
class | FacBomManager |
Utility class for StdAir-based objects.
Most of those methods work for objects specified and instantianted outside StdAir, as long as those objects inherit from StdAir objects.
Definition at line 34 of file BomManager.hpp.
|
static |
Get the container (STL list) of OBJECT2 objects within the OBJECT1 object.
|
static |
Get the container (STL map) of OBJECT2 objects within the OBJECT1 object.
|
static |
Check if the list of object2 has been initialised.
Definition at line 181 of file BomManager.hpp.
References stdair::BomHolder< BOM >::_bomList.
|
static |
Check if the map of object2 has been initialised.
Definition at line 201 of file BomManager.hpp.
References stdair::BomHolder< BOM >::_bomMap.
|
static |
Get the PARENT of the given CHILD.
If the types do not match, NULL is returned.
Definition at line 220 of file BomManager.hpp.
|
static |
Get the PARENT of the given CHILD.
Definition at line 230 of file BomManager.hpp.
|
static |
Get the OBJECT2 pointer corresponding to the given string key.
If such a OBJECT2 does not exist, return NULL.
Definition at line 241 of file BomManager.hpp.
References stdair::BomHolder< BOM >::_bomMap.
|
static |
Get the OBJECT2 corresponding to the given string key.
Definition at line 283 of file BomManager.hpp.
References STDAIR_LOG_ERROR.
const BomHolder<OBJECT2>::BomList_T& stdair::BomManager::getList | ( | const OBJECT1 & | iObject1 | ) |
Definition at line 140 of file BomManager.hpp.
References stdair::BomHolder< BOM >::_bomList.
const BomHolder<OBJECT2>::BomMap_T& stdair::BomManager::getMap | ( | const OBJECT1 & | iObject1 | ) |
Definition at line 159 of file BomManager.hpp.
References stdair::BomHolder< BOM >::_bomMap.
|
inline |
Definition at line 329 of file BomManager.hpp.
|
inline |
Definition at line 345 of file BomManager.hpp.
|
inline |
Definition at line 358 of file BomManager.hpp.
|
inline |
Definition at line 375 of file BomManager.hpp.
|
inline |
Definition at line 385 of file BomManager.hpp.
|
inline |
Definition at line 395 of file BomManager.hpp.
References stdair::Inventory::getAirlineFeature().
|
inline |
Definition at line 406 of file BomManager.hpp.
|
friend |
Definition at line 35 of file BomManager.hpp.