Class representing the actual attributes for an airline guillotine-block. More...
#include <stdair/bom/GuillotineBlock.hpp>
Class representing the actual attributes for an airline guillotine-block.
Definition allowing to retrieve the associated BOM key type.
Definition at line 41 of file GuillotineBlock.hpp.
stdair::GuillotineBlock::GuillotineBlock | ( | const Key_T & | iKey | ) | [protected] |
Main constructor.
Definition at line 34 of file GuillotineBlock.cpp.
stdair::GuillotineBlock::~GuillotineBlock | ( | ) | [protected, virtual] |
Destructor.
Definition at line 38 of file GuillotineBlock.cpp.
const Key_T& stdair::GuillotineBlock::getKey | ( | ) | const [inline] |
BomAbstract* const stdair::GuillotineBlock::getParent | ( | ) | const [inline] |
const GuillotineNumber_T& stdair::GuillotineBlock::getGuillotineNumber | ( | ) | const [inline] |
Get the guillotine number (part of the primary key).
Definition at line 57 of file GuillotineBlock.hpp.
References _key, and stdair::GuillotineBlockKey::getGuillotineNumber().
const HolderMap_T& stdair::GuillotineBlock::getHolderMap | ( | ) | const [inline] |
Get the map of children holders.
Definition at line 64 of file GuillotineBlock.hpp.
References _holderMap.
const SegmentCabinIndexMap_T& stdair::GuillotineBlock::getSegmentCabinIndexMap | ( | ) | const [inline] |
Get the segment-cabin index map.
Definition at line 69 of file GuillotineBlock.hpp.
References _segmentCabinIndexMap.
const ValueTypeIndexMap_T& stdair::GuillotineBlock::getValueTypeIndexMap | ( | ) | const [inline] |
Get the value type index map.
Definition at line 74 of file GuillotineBlock.hpp.
References _valueTypesIndexMap.
const BlockIndex_T & stdair::GuillotineBlock::getBlockIndex | ( | const MapKey_T & | iKey | ) | const |
Get the block index corresponding to the given value type.
Definition at line 79 of file GuillotineBlock.cpp.
References _valueTypesIndexMap.
const BlockNumber_T & stdair::GuillotineBlock::getBlockNumber | ( | const SegmentCabin & | iSegmentCabin | ) | const |
Get the block number corresponding to the givent segment-cabin.
Definition at line 88 of file GuillotineBlock.cpp.
References _segmentCabinIndexMap.
ConstSegmentCabinDTDSnapshotView_T stdair::GuillotineBlock::getConstSegmentCabinDTDBookingSnapshotView | ( | const BlockNumber_T | iSCIdxBegin, |
const BlockNumber_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 97 of file GuillotineBlock.cpp.
References _valueTypesIndexMap, and _bookingSnapshotBlock.
ConstSegmentCabinDTDRangeSnapshotView_T stdair::GuillotineBlock::getConstSegmentCabinDTDRangeBookingSnapshotView | ( | const BlockNumber_T | iSCIdxBegin, |
const BlockNumber_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 110 of file GuillotineBlock.cpp.
SegmentCabinDTDSnapshotView_T stdair::GuillotineBlock::getSegmentCabinDTDBookingSnapshotView | ( | const BlockNumber_T | iSCIdxBegin, |
const BlockNumber_T | iSCIdxEnd, | ||
const DTD_T | iDTD | ||
) |
Get the view of snapshots for a given DTD and a range of segment-cabins.
Definition at line 121 of file GuillotineBlock.cpp.
References _valueTypesIndexMap, and _bookingSnapshotBlock.
SegmentCabinDTDRangeSnapshotView_T stdair::GuillotineBlock::getSegmentCabinDTDRangeBookingSnapshotView | ( | const BlockNumber_T | iSCIdxBegin, |
const BlockNumber_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 133 of file GuillotineBlock.cpp.
References _valueTypesIndexMap, and _bookingSnapshotBlock.
ConstSegmentCabinDTDSnapshotView_T stdair::GuillotineBlock::getConstSegmentCabinDTDCancellationSnapshotView | ( | const BlockNumber_T | iSCIdxBegin, |
const BlockNumber_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 146 of file GuillotineBlock.cpp.
References _valueTypesIndexMap, and _cancellationSnapshotBlock.
ConstSegmentCabinDTDRangeSnapshotView_T stdair::GuillotineBlock::getConstSegmentCabinDTDRangeCancellationSnapshotView | ( | const BlockNumber_T | iSCIdxBegin, |
const BlockNumber_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 159 of file GuillotineBlock.cpp.
SegmentCabinDTDSnapshotView_T stdair::GuillotineBlock::getSegmentCabinDTDCancellationSnapshotView | ( | const BlockNumber_T | iSCIdxBegin, |
const BlockNumber_T | iSCIdxEnd, | ||
const DTD_T | iDTD | ||
) |
Get the view of snapshots for a given DTD and a range of segment-cabins.
Definition at line 170 of file GuillotineBlock.cpp.
References _valueTypesIndexMap, and _cancellationSnapshotBlock.
SegmentCabinDTDRangeSnapshotView_T stdair::GuillotineBlock::getSegmentCabinDTDRangeCancellationSnapshotView | ( | const BlockNumber_T | iSCIdxBegin, |
const BlockNumber_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 182 of file GuillotineBlock.cpp.
References _valueTypesIndexMap, and _cancellationSnapshotBlock.
ConstSegmentCabinDTDSnapshotView_T stdair::GuillotineBlock::getConstSegmentCabinDTDProductAndPriceOrientedBookingSnapshotView | ( | const BlockNumber_T | iSCIdxBegin, |
const BlockNumber_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 195 of file GuillotineBlock.cpp.
References _valueTypesIndexMap, and _productAndPriceOrientedBookingSnapshotBlock.
ConstSegmentCabinDTDRangeSnapshotView_T stdair::GuillotineBlock::getConstSegmentCabinDTDRangeProductAndPriceOrientedBookingSnapshotView | ( | const BlockNumber_T | iSCIdxBegin, |
const BlockNumber_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 208 of file GuillotineBlock.cpp.
SegmentCabinDTDSnapshotView_T stdair::GuillotineBlock::getSegmentCabinDTDProductAndPriceOrientedBookingSnapshotView | ( | const BlockNumber_T | iSCIdxBegin, |
const BlockNumber_T | iSCIdxEnd, | ||
const DTD_T | iDTD | ||
) |
Get the view of snapshots for a given DTD and a range of segment-cabins.
Definition at line 219 of file GuillotineBlock.cpp.
References _valueTypesIndexMap, and _productAndPriceOrientedBookingSnapshotBlock.
SegmentCabinDTDRangeSnapshotView_T stdair::GuillotineBlock::getSegmentCabinDTDRangeProductAndPriceOrientedBookingSnapshotView | ( | const BlockNumber_T | iSCIdxBegin, |
const BlockNumber_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 231 of file GuillotineBlock.cpp.
References _valueTypesIndexMap, and _productAndPriceOrientedBookingSnapshotBlock.
ConstSegmentCabinDTDSnapshotView_T stdair::GuillotineBlock::getConstSegmentCabinDTDAvailabilitySnapshotView | ( | const BlockNumber_T | iSCIdxBegin, |
const BlockNumber_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 244 of file GuillotineBlock.cpp.
References _valueTypesIndexMap, and _availabilitySnapshotBlock.
ConstSegmentCabinDTDRangeSnapshotView_T stdair::GuillotineBlock::getConstSegmentCabinDTDRangeAvailabilitySnapshotView | ( | const BlockNumber_T | iSCIdxBegin, |
const BlockNumber_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 257 of file GuillotineBlock.cpp.
SegmentCabinDTDSnapshotView_T stdair::GuillotineBlock::getSegmentCabinDTDAvailabilitySnapshotView | ( | const BlockNumber_T | iSCIdxBegin, |
const BlockNumber_T | iSCIdxEnd, | ||
const DTD_T | iDTD | ||
) |
Get the view of snapshots for a given DTD and a range of segment-cabins.
Definition at line 268 of file GuillotineBlock.cpp.
References _valueTypesIndexMap, and _availabilitySnapshotBlock.
SegmentCabinDTDRangeSnapshotView_T stdair::GuillotineBlock::getSegmentCabinDTDRangeAvailabilitySnapshotView | ( | const BlockNumber_T | iSCIdxBegin, |
const BlockNumber_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 280 of file GuillotineBlock.cpp.
References _valueTypesIndexMap, and _availabilitySnapshotBlock.
void stdair::GuillotineBlock::initSnapshotBlocks | ( | const SegmentCabinIndexMap_T & | iSegmentCabinIndexMap, |
const ValueTypeIndexMap_T & | iValueTypeIndexMap | ||
) |
Set the segment-cabin and value type index maps and initialise the snapshot blocks.
Definition at line 50 of file GuillotineBlock.cpp.
References _segmentCabinIndexMap, _valueTypesIndexMap, _bookingSnapshotBlock, stdair::DEFAULT_MAX_DTD, _cancellationSnapshotBlock, _productAndPriceOrientedBookingSnapshotBlock, and _availabilitySnapshotBlock.
void stdair::GuillotineBlock::toStream | ( | std::ostream & | ioOut | ) | const [inline, virtual] |
Dump a Business Object into an output stream.
ostream& | the output stream. |
Implements stdair::BomAbstract.
Definition at line 209 of file GuillotineBlock.hpp.
References toString().
void stdair::GuillotineBlock::fromStream | ( | std::istream & | ioIn | ) | [inline, virtual] |
Read a Business Object from an input stream.
istream& | the input stream. |
Implements stdair::BomAbstract.
Definition at line 218 of file GuillotineBlock.hpp.
std::string stdair::GuillotineBlock::toString | ( | ) | const [virtual] |
Get the serialised version of the Business Object.
Implements stdair::BomAbstract.
Definition at line 42 of file GuillotineBlock.cpp.
References describeKey().
Referenced by toStream().
const std::string stdair::GuillotineBlock::describeKey | ( | ) | const [inline] |
Get a string describing the key.
Definition at line 229 of file GuillotineBlock.hpp.
References _key, and stdair::GuillotineBlockKey::toString().
Referenced by toString().
void stdair::GuillotineBlock::serialize | ( | Archive & | ar, |
const unsigned int | iFileVersion | ||
) |
friend class FacBom [friend] |
Definition at line 32 of file GuillotineBlock.hpp.
friend class FacBomManager [friend] |
Definition at line 33 of file GuillotineBlock.hpp.
friend class boost::serialization::access [friend] |
Definition at line 34 of file GuillotineBlock.hpp.
Key_T stdair::GuillotineBlock::_key [protected] |
Primary key (guillotine number and departure block).
Definition at line 277 of file GuillotineBlock.hpp.
Referenced by serialize(), getKey(), getGuillotineNumber(), and describeKey().
BomAbstract* stdair::GuillotineBlock::_parent [protected] |
Pointer on the parent class (Inventory).
Definition at line 280 of file GuillotineBlock.hpp.
Referenced by getParent().
HolderMap_T stdair::GuillotineBlock::_holderMap [protected] |
Map holding the children.
Definition at line 283 of file GuillotineBlock.hpp.
Referenced by getHolderMap().
Map holding the segment-cabin position within the snapshot blocks.
Definition at line 286 of file GuillotineBlock.hpp.
Referenced by initSnapshotBlocks(), getBlockNumber(), and getSegmentCabinIndexMap().
Map holding the value type (class, Q-equivalent, etc) within a a segment-cabin inside the snapshot blocks.
Definition at line 290 of file GuillotineBlock.hpp.
Referenced by initSnapshotBlocks(), getBlockIndex(), getConstSegmentCabinDTDBookingSnapshotView(), getSegmentCabinDTDBookingSnapshotView(), getSegmentCabinDTDRangeBookingSnapshotView(), getConstSegmentCabinDTDCancellationSnapshotView(), getSegmentCabinDTDCancellationSnapshotView(), getSegmentCabinDTDRangeCancellationSnapshotView(), getConstSegmentCabinDTDProductAndPriceOrientedBookingSnapshotView(), getSegmentCabinDTDProductAndPriceOrientedBookingSnapshotView(), getSegmentCabinDTDRangeProductAndPriceOrientedBookingSnapshotView(), getConstSegmentCabinDTDAvailabilitySnapshotView(), getSegmentCabinDTDAvailabilitySnapshotView(), getSegmentCabinDTDRangeAvailabilitySnapshotView(), and getValueTypeIndexMap().
Booking snapshot block.
Definition at line 293 of file GuillotineBlock.hpp.
Referenced by initSnapshotBlocks(), getConstSegmentCabinDTDBookingSnapshotView(), getSegmentCabinDTDBookingSnapshotView(), and getSegmentCabinDTDRangeBookingSnapshotView().
Cancellation snapshot block.
Definition at line 296 of file GuillotineBlock.hpp.
Referenced by initSnapshotBlocks(), getConstSegmentCabinDTDCancellationSnapshotView(), getSegmentCabinDTDCancellationSnapshotView(), and getSegmentCabinDTDRangeCancellationSnapshotView().
Price & product oriented booking block.
Definition at line 299 of file GuillotineBlock.hpp.
Referenced by initSnapshotBlocks(), getConstSegmentCabinDTDProductAndPriceOrientedBookingSnapshotView(), getSegmentCabinDTDProductAndPriceOrientedBookingSnapshotView(), and getSegmentCabinDTDRangeProductAndPriceOrientedBookingSnapshotView().
Availability block.
Definition at line 302 of file GuillotineBlock.hpp.
Referenced by initSnapshotBlocks(), getConstSegmentCabinDTDAvailabilitySnapshotView(), getSegmentCabinDTDAvailabilitySnapshotView(), and getSegmentCabinDTDRangeAvailabilitySnapshotView().