Utility class for linking StdAir-based objects. More...
#include <stdair/factory/FacBomManager.hpp>
Public Member Functions | |
~FacBomManager () |
Static Public Member Functions | |
template<typename OBJECT2, typename OBJECT1> | |
static BomHolder< OBJECT2 > * | getBomHolderPtr (OBJECT1 &) |
template<typename OBJECT2, typename OBJECT1> | |
static BomHolder< OBJECT2 > & | addBomHolder (OBJECT1 &) |
template<typename OBJECT1, typename OBJECT2> | |
static void | addToList (OBJECT1 &, OBJECT2 &) |
template<typename OBJECT1, typename OBJECT2> | |
static void | addToMap (OBJECT1 &, OBJECT2 &, const MapKey_T &) |
template<typename OBJECT1, typename OBJECT2> | |
static void | addToMap (OBJECT1 &, OBJECT2 &) |
template<typename OBJECT1, typename OBJECT2> | |
static void | addToListAndMap (OBJECT1 &, OBJECT2 &) |
template<typename OBJECT1, typename OBJECT2> | |
static void | addToListAndMap (OBJECT1 &, OBJECT2 &, const MapKey_T &) |
template<typename PARENT, typename CHILD> | |
static void | linkWithParent (PARENT &, CHILD &) |
template<typename OBJECT2, typename OBJECT1> | |
static void | cloneHolder (OBJECT1 &, const OBJECT1 &) |
static void | resetYieldBasedNestingStructure (const SegmentCabin &) |
static void | setAirlineFeature (Inventory &iInventory, AirlineFeature &iAirlineFeature) |
static void | linkWithOperating (SegmentDate &iSegmentDate, SegmentDate &iOperatingSegmentDate) |
template<> | |
void | addToList (SegmentDate &ioSegmentDate, SegmentDate &ioMarketingSegmentDate) |
Protected Member Functions | |
FacBomManager () |
Utility class for linking StdAir-based objects.
Definition at line 30 of file FacBomManager.hpp.
|
inlineprotected |
Default Constructor.
This constructor is protected to comply with the singleton pattern.
Definition at line 225 of file FacBomManager.hpp.
|
inline |
Destructor.
Definition at line 231 of file FacBomManager.hpp.
|
static |
Retrieve a pointer on the holder of children (OBJECT2 type) for the parent (OBJECT1 type). If the holder does not exist, return NULL.
typename | OBJECT1& Parent object. |
Definition at line 268 of file FacBomManager.hpp.
Referenced by stdair::serialiseHelper().
|
static |
Instantiate a BomHolder<OBJECT2> object, add it to the OBJECT1-typed object, given as parameter, and return a reference on that newly created BomHolder.
typename | OBJECT1& Parent object. |
Definition at line 238 of file FacBomManager.hpp.
References stdair::FacBom< BOM >::create().
Referenced by stdair::serialiseHelper().
|
static |
Add an OBJECT2-typed object (typically, a child) to the dedicated list held by the OBJECT1-typed object (typically, a parent).
typename | OBJECT1& Parent object. |
typename | OBJECT2& Child object. |
Definition at line 354 of file FacBomManager.hpp.
References addToList().
Referenced by addToList(), and addToListAndMap().
|
static |
Add an OBJECT2-typed object (typically, a child) to the dedicated map held by the OBJECT1-typed object (typically, a parent).
typename | OBJECT1& Parent object. |
typename | OBJECT2& Child object. |
const | MapKey_T& |
Definition at line 423 of file FacBomManager.hpp.
References addToMap().
Referenced by addToListAndMap(), addToMap(), and addToMap().
|
static |
Add an OBJECT2-typed object (typically, a child) to the dedicated map held by the OBJECT1-typed object (typically, a parent).
typename | OBJECT1& Parent object. |
typename | OBJECT2& Child object. |
Definition at line 446 of file FacBomManager.hpp.
References addToMap().
|
static |
Add an OBJECT2-typed object (typically, a child) to the dedicated containers (list and map) held by the OBJECT1-typed object (typically, a parent).
typename | OBJECT1& Parent object. |
typename | OBJECT2& Child object. |
Definition at line 489 of file FacBomManager.hpp.
References addToListAndMap().
Referenced by addToListAndMap().
|
static |
Add an OBJECT2-typed object (typically, a child) to the dedicated containers (list and map) held by the OBJECT1-typed object (typically, a parent).
typename | OBJECT1& Parent object. |
typename | OBJECT2& Child object. |
const | MapKey_T& |
Definition at line 467 of file FacBomManager.hpp.
References addToList(), and addToMap().
|
static |
Allow the CHILD object to store a pointer on its PARENT object.
typename | PARENT& Parent object. |
typename | CHILD& Child object. |
Definition at line 510 of file FacBomManager.hpp.
Referenced by stdair::serialiseHelper().
|
static |
Clone the underlying containers (held by the BomHolder<OBJECT2>-typed holder) of the OBJECT1-typed object.
typename | OBJECT1& Parent object. |
typename | OBJECT2& Child object. |
Definition at line 518 of file FacBomManager.hpp.
References stdair::BomHolder< BOM >::_bomList, and stdair::BomHolder< BOM >::_bomMap.
|
static |
Reset the yield-based nesting structure of a segment-cabin. This method is used with FA or MRT.
Definition at line 19 of file FacBomManager.cpp.
References stdair::BomHolder< BOM >::_bomList, stdair::NestingNode::describeKey(), stdair::NestingNode::getHolderMap(), stdair::BomManager::getList(), stdair::BomManager::getObject(), stdair::NestingNode::setYield(), and stdair::YIELD_BASED_NESTING_STRUCTURE_CODE.
|
inlinestatic |
Set the airline feature object of an inventory.
Definition at line 205 of file FacBomManager.hpp.
|
inlinestatic |
Link the segment date with its operating segment date.
Definition at line 213 of file FacBomManager.hpp.
|
inlinestatic |
Definition at line 540 of file FacBomManager.hpp.
References stdair::SegmentDate::_marketingSegmentDateList.