StdAir Logo  1.00.5
C++ Standard Airline IT Object Library
stdair::SegmentSnapshotTable Class Reference

Class representing the actual attributes for an airline segment data tables. More...

#include <stdair/bom/SegmentSnapshotTable.hpp>

+ Inheritance diagram for stdair::SegmentSnapshotTable:

Public Types

typedef SegmentSnapshotTableKey Key_T
 

Public Member Functions

const Key_TgetKey () const
 
BomAbstract *const getParent () const
 
const TableID_TgetTableID () const
 
const HolderMap_TgetHolderMap () const
 
const SegmentCabinIndexMap_TgetSegmentCabinIndexMap () const
 
const ClassIndexMap_TgetClassIndexMap () const
 
const ClassIndex_TgetClassIndex (const MapKey_T &) const
 
const SegmentDataID_TgetSegmentDataID (const SegmentCabin &) const
 
ConstSegmentCabinDTDSnapshotView_T getConstSegmentCabinDTDBookingSnapshotView (const SegmentDataID_T, const SegmentDataID_T, const DTD_T) const
 
ConstSegmentCabinDTDRangeSnapshotView_T getConstSegmentCabinDTDRangeBookingSnapshotView (const SegmentDataID_T, const SegmentDataID_T, const DTD_T, const DTD_T) const
 
SegmentCabinDTDSnapshotView_T getSegmentCabinDTDBookingSnapshotView (const SegmentDataID_T, const SegmentDataID_T, const DTD_T)
 
SegmentCabinDTDRangeSnapshotView_T getSegmentCabinDTDRangeBookingSnapshotView (const SegmentDataID_T, const SegmentDataID_T, const DTD_T, const DTD_T)
 
ConstSegmentCabinDTDSnapshotView_T getConstSegmentCabinDTDCancellationSnapshotView (const SegmentDataID_T, const SegmentDataID_T, const DTD_T) const
 
ConstSegmentCabinDTDRangeSnapshotView_T getConstSegmentCabinDTDRangeCancellationSnapshotView (const SegmentDataID_T, const SegmentDataID_T, const DTD_T, const DTD_T) const
 
SegmentCabinDTDSnapshotView_T getSegmentCabinDTDCancellationSnapshotView (const SegmentDataID_T, const SegmentDataID_T, const DTD_T)
 
SegmentCabinDTDRangeSnapshotView_T getSegmentCabinDTDRangeCancellationSnapshotView (const SegmentDataID_T, const SegmentDataID_T, const DTD_T, const DTD_T)
 
ConstSegmentCabinDTDSnapshotView_T getConstSegmentCabinDTDProductOrientedNetBookingSnapshotView (const SegmentDataID_T, const SegmentDataID_T, const DTD_T) const
 
ConstSegmentCabinDTDRangeSnapshotView_T getConstSegmentCabinDTDRangeProductOrientedNetBookingSnapshotView (const SegmentDataID_T, const SegmentDataID_T, const DTD_T, const DTD_T) const
 
SegmentCabinDTDSnapshotView_T getSegmentCabinDTDProductOrientedNetBookingSnapshotView (const SegmentDataID_T, const SegmentDataID_T, const DTD_T)
 
SegmentCabinDTDRangeSnapshotView_T getSegmentCabinDTDRangeProductOrientedNetBookingSnapshotView (const SegmentDataID_T, const SegmentDataID_T, const DTD_T, const DTD_T)
 
ConstSegmentCabinDTDSnapshotView_T getConstSegmentCabinDTDPriceOrientedNetBookingSnapshotView (const SegmentDataID_T, const SegmentDataID_T, const DTD_T) const
 
ConstSegmentCabinDTDRangeSnapshotView_T getConstSegmentCabinDTDRangePriceOrientedNetBookingSnapshotView (const SegmentDataID_T, const SegmentDataID_T, const DTD_T, const DTD_T) const
 
SegmentCabinDTDSnapshotView_T getSegmentCabinDTDPriceOrientedNetBookingSnapshotView (const SegmentDataID_T, const SegmentDataID_T, const DTD_T)
 
SegmentCabinDTDRangeSnapshotView_T getSegmentCabinDTDRangePriceOrientedNetBookingSnapshotView (const SegmentDataID_T, const SegmentDataID_T, const DTD_T, const DTD_T)
 
ConstSegmentCabinDTDSnapshotView_T getConstSegmentCabinDTDProductOrientedGrossBookingSnapshotView (const SegmentDataID_T, const SegmentDataID_T, const DTD_T) const
 
ConstSegmentCabinDTDRangeSnapshotView_T getConstSegmentCabinDTDRangeProductOrientedGrossBookingSnapshotView (const SegmentDataID_T, const SegmentDataID_T, const DTD_T, const DTD_T) const
 
SegmentCabinDTDSnapshotView_T getSegmentCabinDTDProductOrientedGrossBookingSnapshotView (const SegmentDataID_T, const SegmentDataID_T, const DTD_T)
 
SegmentCabinDTDRangeSnapshotView_T getSegmentCabinDTDRangeProductOrientedGrossBookingSnapshotView (const SegmentDataID_T, const SegmentDataID_T, const DTD_T, const DTD_T)
 
ConstSegmentCabinDTDSnapshotView_T getConstSegmentCabinDTDPriceOrientedGrossBookingSnapshotView (const SegmentDataID_T, const SegmentDataID_T, const DTD_T) const
 
ConstSegmentCabinDTDRangeSnapshotView_T getConstSegmentCabinDTDRangePriceOrientedGrossBookingSnapshotView (const SegmentDataID_T, const SegmentDataID_T, const DTD_T, const DTD_T) const
 
SegmentCabinDTDSnapshotView_T getSegmentCabinDTDPriceOrientedGrossBookingSnapshotView (const SegmentDataID_T, const SegmentDataID_T, const DTD_T)
 
SegmentCabinDTDRangeSnapshotView_T getSegmentCabinDTDRangePriceOrientedGrossBookingSnapshotView (const SegmentDataID_T, const SegmentDataID_T, const DTD_T, const DTD_T)
 
ConstSegmentCabinDTDSnapshotView_T getConstSegmentCabinDTDAvailabilitySnapshotView (const SegmentDataID_T, const SegmentDataID_T, const DTD_T) const
 
ConstSegmentCabinDTDRangeSnapshotView_T getConstSegmentCabinDTDRangeAvailabilitySnapshotView (const SegmentDataID_T, const SegmentDataID_T, const DTD_T, const DTD_T) const
 
SegmentCabinDTDSnapshotView_T getSegmentCabinDTDAvailabilitySnapshotView (const SegmentDataID_T, const SegmentDataID_T, const DTD_T)
 
SegmentCabinDTDRangeSnapshotView_T getSegmentCabinDTDRangeAvailabilitySnapshotView (const SegmentDataID_T, const SegmentDataID_T, const DTD_T, const DTD_T)
 
void initSnapshotBlocks (const SegmentCabinIndexMap_T &, const ClassIndexMap_T &)
 
void toStream (std::ostream &ioOut) const
 
void fromStream (std::istream &ioIn)
 
std::string toString () const
 
const std::string describeKey () const
 
template<class Archive >
void serialize (Archive &ar, const unsigned int iFileVersion)
 

Protected Member Functions

 SegmentSnapshotTable (const Key_T &)
 
virtual ~SegmentSnapshotTable ()
 

Protected Attributes

Key_T _key
 
BomAbstract_parent
 
HolderMap_T _holderMap
 
SegmentCabinIndexMap_T _segmentCabinIndexMap
 
ClassIndexMap_T _classIndexMap
 
SnapshotBlock_T _bookingSnapshotBlock
 
SnapshotBlock_T _cancellationSnapshotBlock
 
SnapshotBlock_T _productOrientedNetBookingSnapshotBlock
 
SnapshotBlock_T _priceOrientedNetBookingSnapshotBlock
 
SnapshotBlock_T _productOrientedGrossBookingSnapshotBlock
 
SnapshotBlock_T _priceOrientedGrossBookingSnapshotBlock
 
SnapshotBlock_T _availabilitySnapshotBlock
 

Friends

template<typename BOM >
class FacBom
 
class FacBomManager
 
class boost::serialization::access
 

Detailed Description

Class representing the actual attributes for an airline segment data tables.

Definition at line 31 of file SegmentSnapshotTable.hpp.

Member Typedef Documentation

◆ Key_T

Definition allowing to retrieve the associated BOM key type.

Definition at line 41 of file SegmentSnapshotTable.hpp.

Constructor & Destructor Documentation

◆ SegmentSnapshotTable()

stdair::SegmentSnapshotTable::SegmentSnapshotTable ( const Key_T iKey)
protected

Main constructor.

Definition at line 34 of file SegmentSnapshotTable.cpp.

◆ ~SegmentSnapshotTable()

stdair::SegmentSnapshotTable::~SegmentSnapshotTable ( )
protectedvirtual

Destructor.

Definition at line 38 of file SegmentSnapshotTable.cpp.

Member Function Documentation

◆ getKey()

const Key_T& stdair::SegmentSnapshotTable::getKey ( ) const
inline

Get the segment data table key.

Definition at line 47 of file SegmentSnapshotTable.hpp.

◆ getParent()

BomAbstract* const stdair::SegmentSnapshotTable::getParent ( ) const
inline

Get the parent object.

Definition at line 52 of file SegmentSnapshotTable.hpp.

◆ getTableID()

const TableID_T& stdair::SegmentSnapshotTable::getTableID ( ) const
inline

Get the table ID (part of the primary key).

Definition at line 57 of file SegmentSnapshotTable.hpp.

◆ getHolderMap()

const HolderMap_T& stdair::SegmentSnapshotTable::getHolderMap ( ) const
inline

Get the map of children holders.

Definition at line 64 of file SegmentSnapshotTable.hpp.

◆ getSegmentCabinIndexMap()

const SegmentCabinIndexMap_T& stdair::SegmentSnapshotTable::getSegmentCabinIndexMap ( ) const
inline

Get the segment-cabin index map.

Definition at line 69 of file SegmentSnapshotTable.hpp.

◆ getClassIndexMap()

const ClassIndexMap_T& stdair::SegmentSnapshotTable::getClassIndexMap ( ) const
inline

Get the class index map.

Definition at line 74 of file SegmentSnapshotTable.hpp.

◆ getClassIndex()

const ClassIndex_T & stdair::SegmentSnapshotTable::getClassIndex ( const MapKey_T iKey) const

Get the index corresponding to the given class.

Definition at line 88 of file SegmentSnapshotTable.cpp.

References _classIndexMap, and getSegmentDataID().

Referenced by initSnapshotBlocks().

◆ getSegmentDataID()

const SegmentDataID_T & stdair::SegmentSnapshotTable::getSegmentDataID ( const SegmentCabin iSegmentCabin) const

Get the segment data ID corresponding to the givent segment-cabin.

Definition at line 97 of file SegmentSnapshotTable.cpp.

References _segmentCabinIndexMap, and getConstSegmentCabinDTDBookingSnapshotView().

Referenced by getClassIndex().

◆ getConstSegmentCabinDTDBookingSnapshotView()

ConstSegmentCabinDTDSnapshotView_T stdair::SegmentSnapshotTable::getConstSegmentCabinDTDBookingSnapshotView ( const SegmentDataID_T  iSCIdxBegin,
const SegmentDataID_T  iSCIdxEnd,
const DTD_T  iDTD 
) const

Get the const view of snapshots for a given DTD and a range of segment-cabins.

Definition at line 106 of file SegmentSnapshotTable.cpp.

References _bookingSnapshotBlock, _classIndexMap, and getConstSegmentCabinDTDRangeBookingSnapshotView().

Referenced by getSegmentDataID().

◆ getConstSegmentCabinDTDRangeBookingSnapshotView()

ConstSegmentCabinDTDRangeSnapshotView_T stdair::SegmentSnapshotTable::getConstSegmentCabinDTDRangeBookingSnapshotView ( const SegmentDataID_T  iSCIdxBegin,
const SegmentDataID_T  iSCIdxEnd,
const DTD_T  iDTDBegin,
const DTD_T  iDTDEnd 
) const

Get the const view of snapshots for a given range of DTD and a range of segment-cabins.

Definition at line 119 of file SegmentSnapshotTable.cpp.

References _bookingSnapshotBlock, _classIndexMap, and getSegmentCabinDTDBookingSnapshotView().

Referenced by getConstSegmentCabinDTDBookingSnapshotView().

◆ getSegmentCabinDTDBookingSnapshotView()

SegmentCabinDTDSnapshotView_T stdair::SegmentSnapshotTable::getSegmentCabinDTDBookingSnapshotView ( const SegmentDataID_T  iSCIdxBegin,
const SegmentDataID_T  iSCIdxEnd,
const DTD_T  iDTD 
)

Get the view of snapshots for a given DTD and a range of segment-cabins.

Definition at line 130 of file SegmentSnapshotTable.cpp.

References _bookingSnapshotBlock, _classIndexMap, and getSegmentCabinDTDRangeBookingSnapshotView().

Referenced by getConstSegmentCabinDTDRangeBookingSnapshotView().

◆ getSegmentCabinDTDRangeBookingSnapshotView()

SegmentCabinDTDRangeSnapshotView_T stdair::SegmentSnapshotTable::getSegmentCabinDTDRangeBookingSnapshotView ( const SegmentDataID_T  iSCIdxBegin,
const SegmentDataID_T  iSCIdxEnd,
const DTD_T  iDTDBegin,
const DTD_T  iDTDEnd 
)

Get the view of snapshots for a given range of DTD and a range of segment-cabins.

Definition at line 142 of file SegmentSnapshotTable.cpp.

References _bookingSnapshotBlock, _classIndexMap, and getConstSegmentCabinDTDCancellationSnapshotView().

Referenced by getSegmentCabinDTDBookingSnapshotView().

◆ getConstSegmentCabinDTDCancellationSnapshotView()

ConstSegmentCabinDTDSnapshotView_T stdair::SegmentSnapshotTable::getConstSegmentCabinDTDCancellationSnapshotView ( const SegmentDataID_T  iSCIdxBegin,
const SegmentDataID_T  iSCIdxEnd,
const DTD_T  iDTD 
) const

Get the const view of snapshots for a given DTD and a range of segment-cabins.

Definition at line 155 of file SegmentSnapshotTable.cpp.

References _cancellationSnapshotBlock, _classIndexMap, and getConstSegmentCabinDTDRangeCancellationSnapshotView().

Referenced by getSegmentCabinDTDRangeBookingSnapshotView().

◆ getConstSegmentCabinDTDRangeCancellationSnapshotView()

ConstSegmentCabinDTDRangeSnapshotView_T stdair::SegmentSnapshotTable::getConstSegmentCabinDTDRangeCancellationSnapshotView ( const SegmentDataID_T  iSCIdxBegin,
const SegmentDataID_T  iSCIdxEnd,
const DTD_T  iDTDBegin,
const DTD_T  iDTDEnd 
) const

Get the const view of snapshots for a given range of DTD and a range of segment-cabins.

Definition at line 168 of file SegmentSnapshotTable.cpp.

References _cancellationSnapshotBlock, _classIndexMap, and getSegmentCabinDTDCancellationSnapshotView().

Referenced by getConstSegmentCabinDTDCancellationSnapshotView().

◆ getSegmentCabinDTDCancellationSnapshotView()

SegmentCabinDTDSnapshotView_T stdair::SegmentSnapshotTable::getSegmentCabinDTDCancellationSnapshotView ( const SegmentDataID_T  iSCIdxBegin,
const SegmentDataID_T  iSCIdxEnd,
const DTD_T  iDTD 
)

Get the view of snapshots for a given DTD and a range of segment-cabins.

Definition at line 179 of file SegmentSnapshotTable.cpp.

References _cancellationSnapshotBlock, _classIndexMap, and getSegmentCabinDTDRangeCancellationSnapshotView().

Referenced by getConstSegmentCabinDTDRangeCancellationSnapshotView().

◆ getSegmentCabinDTDRangeCancellationSnapshotView()

SegmentCabinDTDRangeSnapshotView_T stdair::SegmentSnapshotTable::getSegmentCabinDTDRangeCancellationSnapshotView ( const SegmentDataID_T  iSCIdxBegin,
const SegmentDataID_T  iSCIdxEnd,
const DTD_T  iDTDBegin,
const DTD_T  iDTDEnd 
)

Get the view of snapshots for a given range of DTD and a range of segment-cabins.

Definition at line 191 of file SegmentSnapshotTable.cpp.

References _cancellationSnapshotBlock, _classIndexMap, and getConstSegmentCabinDTDProductOrientedNetBookingSnapshotView().

Referenced by getSegmentCabinDTDCancellationSnapshotView().

◆ getConstSegmentCabinDTDProductOrientedNetBookingSnapshotView()

ConstSegmentCabinDTDSnapshotView_T stdair::SegmentSnapshotTable::getConstSegmentCabinDTDProductOrientedNetBookingSnapshotView ( const SegmentDataID_T  iSCIdxBegin,
const SegmentDataID_T  iSCIdxEnd,
const DTD_T  iDTD 
) const

Get the const view of snapshots for a given DTD and a range of segment-cabins.

Definition at line 204 of file SegmentSnapshotTable.cpp.

References _classIndexMap, _productOrientedNetBookingSnapshotBlock, and getConstSegmentCabinDTDRangeProductOrientedNetBookingSnapshotView().

Referenced by getSegmentCabinDTDRangeCancellationSnapshotView().

◆ getConstSegmentCabinDTDRangeProductOrientedNetBookingSnapshotView()

ConstSegmentCabinDTDRangeSnapshotView_T stdair::SegmentSnapshotTable::getConstSegmentCabinDTDRangeProductOrientedNetBookingSnapshotView ( const SegmentDataID_T  iSCIdxBegin,
const SegmentDataID_T  iSCIdxEnd,
const DTD_T  iDTDBegin,
const DTD_T  iDTDEnd 
) const

Get the const view of snapshots for a given range of DTD and a range of segment-cabins.

Definition at line 217 of file SegmentSnapshotTable.cpp.

References _classIndexMap, _productOrientedNetBookingSnapshotBlock, and getSegmentCabinDTDProductOrientedNetBookingSnapshotView().

Referenced by getConstSegmentCabinDTDProductOrientedNetBookingSnapshotView().

◆ getSegmentCabinDTDProductOrientedNetBookingSnapshotView()

SegmentCabinDTDSnapshotView_T stdair::SegmentSnapshotTable::getSegmentCabinDTDProductOrientedNetBookingSnapshotView ( const SegmentDataID_T  iSCIdxBegin,
const SegmentDataID_T  iSCIdxEnd,
const DTD_T  iDTD 
)

Get the view of snapshots for a given DTD and a range of segment-cabins.

Definition at line 228 of file SegmentSnapshotTable.cpp.

References _classIndexMap, _productOrientedNetBookingSnapshotBlock, and getSegmentCabinDTDRangeProductOrientedNetBookingSnapshotView().

Referenced by getConstSegmentCabinDTDRangeProductOrientedNetBookingSnapshotView().

◆ getSegmentCabinDTDRangeProductOrientedNetBookingSnapshotView()

SegmentCabinDTDRangeSnapshotView_T stdair::SegmentSnapshotTable::getSegmentCabinDTDRangeProductOrientedNetBookingSnapshotView ( const SegmentDataID_T  iSCIdxBegin,
const SegmentDataID_T  iSCIdxEnd,
const DTD_T  iDTDBegin,
const DTD_T  iDTDEnd 
)

Get the view of snapshots for a given range of DTD and a range of segment-cabins.

Definition at line 240 of file SegmentSnapshotTable.cpp.

References _classIndexMap, _productOrientedNetBookingSnapshotBlock, and getConstSegmentCabinDTDPriceOrientedNetBookingSnapshotView().

Referenced by getSegmentCabinDTDProductOrientedNetBookingSnapshotView().

◆ getConstSegmentCabinDTDPriceOrientedNetBookingSnapshotView()

ConstSegmentCabinDTDSnapshotView_T stdair::SegmentSnapshotTable::getConstSegmentCabinDTDPriceOrientedNetBookingSnapshotView ( const SegmentDataID_T  iSCIdxBegin,
const SegmentDataID_T  iSCIdxEnd,
const DTD_T  iDTD 
) const

Get the const view of snapshots for a given DTD and a range of segment-cabins.

Definition at line 254 of file SegmentSnapshotTable.cpp.

References _classIndexMap, _priceOrientedNetBookingSnapshotBlock, and getConstSegmentCabinDTDRangePriceOrientedNetBookingSnapshotView().

Referenced by getSegmentCabinDTDRangeProductOrientedNetBookingSnapshotView().

◆ getConstSegmentCabinDTDRangePriceOrientedNetBookingSnapshotView()

ConstSegmentCabinDTDRangeSnapshotView_T stdair::SegmentSnapshotTable::getConstSegmentCabinDTDRangePriceOrientedNetBookingSnapshotView ( const SegmentDataID_T  iSCIdxBegin,
const SegmentDataID_T  iSCIdxEnd,
const DTD_T  iDTDBegin,
const DTD_T  iDTDEnd 
) const

Get the const view of snapshots for a given range of DTD and a range of segment-cabins.

Definition at line 267 of file SegmentSnapshotTable.cpp.

References _classIndexMap, _priceOrientedNetBookingSnapshotBlock, and getSegmentCabinDTDPriceOrientedNetBookingSnapshotView().

Referenced by getConstSegmentCabinDTDPriceOrientedNetBookingSnapshotView().

◆ getSegmentCabinDTDPriceOrientedNetBookingSnapshotView()

SegmentCabinDTDSnapshotView_T stdair::SegmentSnapshotTable::getSegmentCabinDTDPriceOrientedNetBookingSnapshotView ( const SegmentDataID_T  iSCIdxBegin,
const SegmentDataID_T  iSCIdxEnd,
const DTD_T  iDTD 
)

Get the view of snapshots for a given DTD and a range of segment-cabins.

Definition at line 278 of file SegmentSnapshotTable.cpp.

References _classIndexMap, _priceOrientedNetBookingSnapshotBlock, and getSegmentCabinDTDRangePriceOrientedNetBookingSnapshotView().

Referenced by getConstSegmentCabinDTDRangePriceOrientedNetBookingSnapshotView().

◆ getSegmentCabinDTDRangePriceOrientedNetBookingSnapshotView()

SegmentCabinDTDRangeSnapshotView_T stdair::SegmentSnapshotTable::getSegmentCabinDTDRangePriceOrientedNetBookingSnapshotView ( const SegmentDataID_T  iSCIdxBegin,
const SegmentDataID_T  iSCIdxEnd,
const DTD_T  iDTDBegin,
const DTD_T  iDTDEnd 
)

Get the view of snapshots for a given range of DTD and a range of segment-cabins.

Definition at line 290 of file SegmentSnapshotTable.cpp.

References _classIndexMap, _priceOrientedNetBookingSnapshotBlock, and getConstSegmentCabinDTDProductOrientedGrossBookingSnapshotView().

Referenced by getSegmentCabinDTDPriceOrientedNetBookingSnapshotView().

◆ getConstSegmentCabinDTDProductOrientedGrossBookingSnapshotView()

ConstSegmentCabinDTDSnapshotView_T stdair::SegmentSnapshotTable::getConstSegmentCabinDTDProductOrientedGrossBookingSnapshotView ( const SegmentDataID_T  iSCIdxBegin,
const SegmentDataID_T  iSCIdxEnd,
const DTD_T  iDTD 
) const

Get the const view of snapshots for a given DTD and a range of segment-cabins.

Definition at line 303 of file SegmentSnapshotTable.cpp.

References _classIndexMap, _productOrientedGrossBookingSnapshotBlock, and getConstSegmentCabinDTDRangeProductOrientedGrossBookingSnapshotView().

Referenced by getSegmentCabinDTDRangePriceOrientedNetBookingSnapshotView().

◆ getConstSegmentCabinDTDRangeProductOrientedGrossBookingSnapshotView()

ConstSegmentCabinDTDRangeSnapshotView_T stdair::SegmentSnapshotTable::getConstSegmentCabinDTDRangeProductOrientedGrossBookingSnapshotView ( const SegmentDataID_T  iSCIdxBegin,
const SegmentDataID_T  iSCIdxEnd,
const DTD_T  iDTDBegin,
const DTD_T  iDTDEnd 
) const

Get the const view of snapshots for a given range of DTD and a range of segment-cabins.

Definition at line 316 of file SegmentSnapshotTable.cpp.

References _classIndexMap, _productOrientedGrossBookingSnapshotBlock, and getSegmentCabinDTDProductOrientedGrossBookingSnapshotView().

Referenced by getConstSegmentCabinDTDProductOrientedGrossBookingSnapshotView().

◆ getSegmentCabinDTDProductOrientedGrossBookingSnapshotView()

SegmentCabinDTDSnapshotView_T stdair::SegmentSnapshotTable::getSegmentCabinDTDProductOrientedGrossBookingSnapshotView ( const SegmentDataID_T  iSCIdxBegin,
const SegmentDataID_T  iSCIdxEnd,
const DTD_T  iDTD 
)

◆ getSegmentCabinDTDRangeProductOrientedGrossBookingSnapshotView()

SegmentCabinDTDRangeSnapshotView_T stdair::SegmentSnapshotTable::getSegmentCabinDTDRangeProductOrientedGrossBookingSnapshotView ( const SegmentDataID_T  iSCIdxBegin,
const SegmentDataID_T  iSCIdxEnd,
const DTD_T  iDTDBegin,
const DTD_T  iDTDEnd 
)

Get the view of snapshots for a given range of DTD and a range of segment-cabins.

Definition at line 339 of file SegmentSnapshotTable.cpp.

References _classIndexMap, _productOrientedGrossBookingSnapshotBlock, and getConstSegmentCabinDTDPriceOrientedGrossBookingSnapshotView().

Referenced by getSegmentCabinDTDProductOrientedGrossBookingSnapshotView().

◆ getConstSegmentCabinDTDPriceOrientedGrossBookingSnapshotView()

ConstSegmentCabinDTDSnapshotView_T stdair::SegmentSnapshotTable::getConstSegmentCabinDTDPriceOrientedGrossBookingSnapshotView ( const SegmentDataID_T  iSCIdxBegin,
const SegmentDataID_T  iSCIdxEnd,
const DTD_T  iDTD 
) const

Get the const view of snapshots for a given DTD and a range of segment-cabins.

Definition at line 353 of file SegmentSnapshotTable.cpp.

References _classIndexMap, _priceOrientedGrossBookingSnapshotBlock, and getConstSegmentCabinDTDRangePriceOrientedGrossBookingSnapshotView().

Referenced by getSegmentCabinDTDRangeProductOrientedGrossBookingSnapshotView().

◆ getConstSegmentCabinDTDRangePriceOrientedGrossBookingSnapshotView()

ConstSegmentCabinDTDRangeSnapshotView_T stdair::SegmentSnapshotTable::getConstSegmentCabinDTDRangePriceOrientedGrossBookingSnapshotView ( const SegmentDataID_T  iSCIdxBegin,
const SegmentDataID_T  iSCIdxEnd,
const DTD_T  iDTDBegin,
const DTD_T  iDTDEnd 
) const

Get the const view of snapshots for a given range of DTD and a range of segment-cabins.

Definition at line 366 of file SegmentSnapshotTable.cpp.

References _classIndexMap, _priceOrientedGrossBookingSnapshotBlock, and getSegmentCabinDTDPriceOrientedGrossBookingSnapshotView().

Referenced by getConstSegmentCabinDTDPriceOrientedGrossBookingSnapshotView().

◆ getSegmentCabinDTDPriceOrientedGrossBookingSnapshotView()

SegmentCabinDTDSnapshotView_T stdair::SegmentSnapshotTable::getSegmentCabinDTDPriceOrientedGrossBookingSnapshotView ( const SegmentDataID_T  iSCIdxBegin,
const SegmentDataID_T  iSCIdxEnd,
const DTD_T  iDTD 
)

Get the view of snapshots for a given DTD and a range of segment-cabins.

Definition at line 378 of file SegmentSnapshotTable.cpp.

References _classIndexMap, _priceOrientedGrossBookingSnapshotBlock, and getSegmentCabinDTDRangePriceOrientedGrossBookingSnapshotView().

Referenced by getConstSegmentCabinDTDRangePriceOrientedGrossBookingSnapshotView().

◆ getSegmentCabinDTDRangePriceOrientedGrossBookingSnapshotView()

SegmentCabinDTDRangeSnapshotView_T stdair::SegmentSnapshotTable::getSegmentCabinDTDRangePriceOrientedGrossBookingSnapshotView ( const SegmentDataID_T  iSCIdxBegin,
const SegmentDataID_T  iSCIdxEnd,
const DTD_T  iDTDBegin,
const DTD_T  iDTDEnd 
)

Get the view of snapshots for a given range of DTD and a range of segment-cabins.

Definition at line 390 of file SegmentSnapshotTable.cpp.

References _classIndexMap, _priceOrientedGrossBookingSnapshotBlock, and getConstSegmentCabinDTDAvailabilitySnapshotView().

Referenced by getSegmentCabinDTDPriceOrientedGrossBookingSnapshotView().

◆ getConstSegmentCabinDTDAvailabilitySnapshotView()

ConstSegmentCabinDTDSnapshotView_T stdair::SegmentSnapshotTable::getConstSegmentCabinDTDAvailabilitySnapshotView ( const SegmentDataID_T  iSCIdxBegin,
const SegmentDataID_T  iSCIdxEnd,
const DTD_T  iDTD 
) const

Get the const view of snapshots for a given DTD and a range of segment-cabins.

Definition at line 402 of file SegmentSnapshotTable.cpp.

References _availabilitySnapshotBlock, _classIndexMap, and getConstSegmentCabinDTDRangeAvailabilitySnapshotView().

Referenced by getSegmentCabinDTDRangePriceOrientedGrossBookingSnapshotView().

◆ getConstSegmentCabinDTDRangeAvailabilitySnapshotView()

ConstSegmentCabinDTDRangeSnapshotView_T stdair::SegmentSnapshotTable::getConstSegmentCabinDTDRangeAvailabilitySnapshotView ( const SegmentDataID_T  iSCIdxBegin,
const SegmentDataID_T  iSCIdxEnd,
const DTD_T  iDTDBegin,
const DTD_T  iDTDEnd 
) const

Get the const view of snapshots for a given range of DTD and a range of segment-cabins.

Definition at line 414 of file SegmentSnapshotTable.cpp.

References _availabilitySnapshotBlock, _classIndexMap, and getSegmentCabinDTDAvailabilitySnapshotView().

Referenced by getConstSegmentCabinDTDAvailabilitySnapshotView().

◆ getSegmentCabinDTDAvailabilitySnapshotView()

SegmentCabinDTDSnapshotView_T stdair::SegmentSnapshotTable::getSegmentCabinDTDAvailabilitySnapshotView ( const SegmentDataID_T  iSCIdxBegin,
const SegmentDataID_T  iSCIdxEnd,
const DTD_T  iDTD 
)

Get the view of snapshots for a given DTD and a range of segment-cabins.

Definition at line 425 of file SegmentSnapshotTable.cpp.

References _availabilitySnapshotBlock, _classIndexMap, and getSegmentCabinDTDRangeAvailabilitySnapshotView().

Referenced by getConstSegmentCabinDTDRangeAvailabilitySnapshotView().

◆ getSegmentCabinDTDRangeAvailabilitySnapshotView()

SegmentCabinDTDRangeSnapshotView_T stdair::SegmentSnapshotTable::getSegmentCabinDTDRangeAvailabilitySnapshotView ( const SegmentDataID_T  iSCIdxBegin,
const SegmentDataID_T  iSCIdxEnd,
const DTD_T  iDTDBegin,
const DTD_T  iDTDEnd 
)

Get the view of snapshots for a given range of DTD and a range of segment-cabins.

Definition at line 437 of file SegmentSnapshotTable.cpp.

References _availabilitySnapshotBlock, and _classIndexMap.

Referenced by getSegmentCabinDTDAvailabilitySnapshotView().

◆ initSnapshotBlocks()

void stdair::SegmentSnapshotTable::initSnapshotBlocks ( const SegmentCabinIndexMap_T iSegmentCabinIndexMap,
const ClassIndexMap_T iClassIndexMap 
)

◆ toStream()

void stdair::SegmentSnapshotTable::toStream ( std::ostream &  ioOut) const
inlinevirtual

Dump a Business Object into an output stream.

Parameters
ostream&the output stream.

Implements stdair::BomAbstract.

Definition at line 283 of file SegmentSnapshotTable.hpp.

◆ fromStream()

void stdair::SegmentSnapshotTable::fromStream ( std::istream &  ioIn)
inlinevirtual

Read a Business Object from an input stream.

Parameters
istream&the input stream.

Implements stdair::BomAbstract.

Definition at line 292 of file SegmentSnapshotTable.hpp.

◆ toString()

std::string stdair::SegmentSnapshotTable::toString ( ) const
virtual

Get the serialised version of the Business Object.

Implements stdair::BomAbstract.

Definition at line 42 of file SegmentSnapshotTable.cpp.

References describeKey(), and initSnapshotBlocks().

◆ describeKey()

const std::string stdair::SegmentSnapshotTable::describeKey ( ) const
inline

Get a string describing the key.

Definition at line 303 of file SegmentSnapshotTable.hpp.

Referenced by toString().

◆ serialize()

template<class Archive >
void stdair::SegmentSnapshotTable::serialize ( Archive &  ar,
const unsigned int  iFileVersion 
)

Serialisation.

Definition at line 464 of file SegmentSnapshotTable.cpp.

References _key.

Friends And Related Function Documentation

◆ FacBom

template<typename BOM >
friend class FacBom
friend

Definition at line 32 of file SegmentSnapshotTable.hpp.

◆ FacBomManager

friend class FacBomManager
friend

Definition at line 33 of file SegmentSnapshotTable.hpp.

◆ boost::serialization::access

friend class boost::serialization::access
friend

Definition at line 34 of file SegmentSnapshotTable.hpp.

Member Data Documentation

◆ _key

Key_T stdair::SegmentSnapshotTable::_key
protected

Primary key (table ID and departure block).

Definition at line 352 of file SegmentSnapshotTable.hpp.

Referenced by serialize().

◆ _parent

BomAbstract* stdair::SegmentSnapshotTable::_parent
protected

Pointer on the parent class (Inventory).

Definition at line 355 of file SegmentSnapshotTable.hpp.

◆ _holderMap

HolderMap_T stdair::SegmentSnapshotTable::_holderMap
protected

Map holding the children.

Definition at line 358 of file SegmentSnapshotTable.hpp.

◆ _segmentCabinIndexMap

SegmentCabinIndexMap_T stdair::SegmentSnapshotTable::_segmentCabinIndexMap
protected

Map holding the segment-cabin position within the snapshot blocks.

Definition at line 361 of file SegmentSnapshotTable.hpp.

Referenced by getSegmentDataID(), and initSnapshotBlocks().

◆ _classIndexMap

ClassIndexMap_T stdair::SegmentSnapshotTable::_classIndexMap
protected

Map holding the value type (class, etc) within a a segment-cabin inside the snapshot blocks.

Definition at line 365 of file SegmentSnapshotTable.hpp.

Referenced by getClassIndex(), getConstSegmentCabinDTDAvailabilitySnapshotView(), getConstSegmentCabinDTDBookingSnapshotView(), getConstSegmentCabinDTDCancellationSnapshotView(), getConstSegmentCabinDTDPriceOrientedGrossBookingSnapshotView(), getConstSegmentCabinDTDPriceOrientedNetBookingSnapshotView(), getConstSegmentCabinDTDProductOrientedGrossBookingSnapshotView(), getConstSegmentCabinDTDProductOrientedNetBookingSnapshotView(), getConstSegmentCabinDTDRangeAvailabilitySnapshotView(), getConstSegmentCabinDTDRangeBookingSnapshotView(), getConstSegmentCabinDTDRangeCancellationSnapshotView(), getConstSegmentCabinDTDRangePriceOrientedGrossBookingSnapshotView(), getConstSegmentCabinDTDRangePriceOrientedNetBookingSnapshotView(), getConstSegmentCabinDTDRangeProductOrientedGrossBookingSnapshotView(), getConstSegmentCabinDTDRangeProductOrientedNetBookingSnapshotView(), getSegmentCabinDTDAvailabilitySnapshotView(), getSegmentCabinDTDBookingSnapshotView(), getSegmentCabinDTDCancellationSnapshotView(), getSegmentCabinDTDPriceOrientedGrossBookingSnapshotView(), getSegmentCabinDTDPriceOrientedNetBookingSnapshotView(), getSegmentCabinDTDProductOrientedGrossBookingSnapshotView(), getSegmentCabinDTDProductOrientedNetBookingSnapshotView(), getSegmentCabinDTDRangeAvailabilitySnapshotView(), getSegmentCabinDTDRangeBookingSnapshotView(), getSegmentCabinDTDRangeCancellationSnapshotView(), getSegmentCabinDTDRangePriceOrientedGrossBookingSnapshotView(), getSegmentCabinDTDRangePriceOrientedNetBookingSnapshotView(), getSegmentCabinDTDRangeProductOrientedGrossBookingSnapshotView(), getSegmentCabinDTDRangeProductOrientedNetBookingSnapshotView(), and initSnapshotBlocks().

◆ _bookingSnapshotBlock

◆ _cancellationSnapshotBlock

◆ _productOrientedNetBookingSnapshotBlock

◆ _priceOrientedNetBookingSnapshotBlock

◆ _productOrientedGrossBookingSnapshotBlock

◆ _priceOrientedGrossBookingSnapshotBlock

◆ _availabilitySnapshotBlock


The documentation for this class was generated from the following files: