1.01.17
C++ Simulated Airline Travel Solution Provider (TSP) Library
Toggle main menu visibility
Loading...
Searching...
No Matches
ReachableUniverse.hpp
Go to the documentation of this file.
1
#ifndef __AIRTSP_BOM_REACHABLEUNIVERSE_HPP
2
#define __AIRTSP_BOM_REACHABLEUNIVERSE_HPP
3
4
// //////////////////////////////////////////////////////////////////////
5
// Import section
6
// //////////////////////////////////////////////////////////////////////
7
// STL
8
#include <iosfwd>
9
#include <string>
10
// StdAir
11
#include <stdair/bom/BomAbstract.hpp>
12
// AirTSP
13
#include <
airtsp/bom/ReachableUniverseKey.hpp
>
14
#include <
airtsp/bom/ReachableUniverseTypes.hpp
>
15
#include <
airtsp/bom/SegmentPathPeriodTypes.hpp
>
16
18
namespace
boost
{
19
namespace
serialization
{
20
class
access;
21
}
22
}
23
25
namespace
stdair
{
26
template
<
typename
BOM>
class
FacBom
;
27
class
FacBomManager;
28
}
29
30
namespace
AIRTSP
{
31
41
class
ReachableUniverse
:
public
stdair::BomAbstract {
45
template
<
typename
BOM>
friend
class
stdair::FacBom
;
46
friend
class
stdair::FacBomManager
;
47
friend
class
SegmentPathGenerator
;
48
friend
class
boost::serialization::access
;
49
50
public
:
51
// ////////// Type definitions ////////////
55
typedef
ReachableUniverseKey
Key_T
;
56
57
public
:
58
// /////////// Getters /////////////
63
const
Key_T
&
getKey
()
const
{
64
return
_key
;
65
}
66
70
const
stdair::AirportCode_T&
getOrigin
()
const
{
71
return
_key
.getBoardingPoint();
72
}
73
77
stdair::BomAbstract*
const
getParent
()
const
{
78
return
_parent
;
79
}
80
84
const
stdair::HolderMap_T&
getHolderMap
()
const
{
85
return
_holderMap
;
86
}
87
91
const
SegmentPathPeriodListList_T
&
getSegmentPathPeriodListList
()
const
{
92
return
_segmentPathPeriodListList
;
93
}
94
95
96
public
:
97
// /////////// Display support methods /////////
103
void
toStream
(std::ostream& ioOut)
const
{
104
ioOut <<
toString
();
105
}
106
112
void
fromStream
(std::istream& ioIn) {
113
}
114
118
std::string
toString
()
const
;
119
123
const
std::string
describeKey
()
const
{
124
return
_key
.toString();
125
}
126
127
128
public
:
129
// /////////// (Boost) Serialisation support methods /////////
133
template
<
class
Archive>
134
void
serialize
(Archive& ar,
const
unsigned
int
iFileVersion);
135
136
private
:
141
void
serialisationImplementationExport()
const
;
142
void
serialisationImplementationImport();
143
144
145
protected
:
146
// ////////// Constructors and destructors /////////
150
ReachableUniverse
(
const
Key_T
&);
151
155
~ReachableUniverse
();
156
157
private
:
161
ReachableUniverse
();
162
166
ReachableUniverse
(
const
ReachableUniverse
&);
167
168
169
protected
:
170
// ////////// Attributes /////////
174
Key_T
_key
;
175
179
stdair::BomAbstract*
_parent
;
180
184
stdair::HolderMap_T
_holderMap
;
185
191
SegmentPathPeriodListList_T
_segmentPathPeriodListList
;
192
};
193
194
}
195
#endif
// __AIRTSP_BOM_REACHABLEUNIVERSE_HPP
196
ReachableUniverseKey.hpp
ReachableUniverseTypes.hpp
SegmentPathPeriodTypes.hpp
AIRTSP::ReachableUniverse
Class representing the root of the schedule-related BOM tree.
Definition
ReachableUniverse.hpp:41
AIRTSP::ReachableUniverse::getKey
const Key_T & getKey() const
Definition
ReachableUniverse.hpp:63
AIRTSP::ReachableUniverse::_holderMap
stdair::HolderMap_T _holderMap
Definition
ReachableUniverse.hpp:184
AIRTSP::ReachableUniverse::fromStream
void fromStream(std::istream &ioIn)
Definition
ReachableUniverse.hpp:112
AIRTSP::ReachableUniverse::_parent
stdair::BomAbstract * _parent
Definition
ReachableUniverse.hpp:179
AIRTSP::ReachableUniverse::describeKey
const std::string describeKey() const
Definition
ReachableUniverse.hpp:123
AIRTSP::ReachableUniverse::~ReachableUniverse
~ReachableUniverse()
Definition
ReachableUniverse.cpp:37
AIRTSP::ReachableUniverse::getSegmentPathPeriodListList
const SegmentPathPeriodListList_T & getSegmentPathPeriodListList() const
Definition
ReachableUniverse.hpp:91
AIRTSP::ReachableUniverse::serialize
void serialize(Archive &ar, const unsigned int iFileVersion)
Definition
ReachableUniverse.cpp:63
AIRTSP::ReachableUniverse::getOrigin
const stdair::AirportCode_T & getOrigin() const
Definition
ReachableUniverse.hpp:70
AIRTSP::ReachableUniverse::getParent
stdair::BomAbstract *const getParent() const
Definition
ReachableUniverse.hpp:77
AIRTSP::ReachableUniverse::SegmentPathGenerator
friend class SegmentPathGenerator
Definition
ReachableUniverse.hpp:47
AIRTSP::ReachableUniverse::Key_T
ReachableUniverseKey Key_T
Definition
ReachableUniverse.hpp:55
AIRTSP::ReachableUniverse::toStream
void toStream(std::ostream &ioOut) const
Definition
ReachableUniverse.hpp:103
AIRTSP::ReachableUniverse::access
friend class boost::serialization::access
Definition
ReachableUniverse.hpp:48
AIRTSP::ReachableUniverse::FacBomManager
friend class stdair::FacBomManager
Definition
ReachableUniverse.hpp:46
AIRTSP::ReachableUniverse::_key
Key_T _key
Definition
ReachableUniverse.hpp:174
AIRTSP::ReachableUniverse::toString
std::string toString() const
Definition
ReachableUniverse.cpp:41
AIRTSP::ReachableUniverse::ReachableUniverse
ReachableUniverse(const Key_T &)
Definition
ReachableUniverse.cpp:32
AIRTSP::ReachableUniverse::_segmentPathPeriodListList
SegmentPathPeriodListList_T _segmentPathPeriodListList
Definition
ReachableUniverse.hpp:191
AIRTSP::ReachableUniverse::getHolderMap
const stdair::HolderMap_T & getHolderMap() const
Definition
ReachableUniverse.hpp:84
stdair::FacBom
Definition
OriginDestinationSet.hpp:25
AIRTSP
Definition
AIRTSP_Service.hpp:23
AIRTSP::SegmentPathPeriodListList_T
std::vector< SegmentPathPeriodLightList_T > SegmentPathPeriodListList_T
Definition
SegmentPathPeriodTypes.hpp:31
boost::serialization
Definition
OriginDestinationSet.hpp:18
boost
Forward declarations.
Definition
OriginDestinationSet.hpp:17
stdair
Forward declarations.
Definition
AIRTSP_Service.hpp:14
AIRTSP::ReachableUniverseKey
Structure representing the key of the schedule-related BOM tree root.
Definition
ReachableUniverseKey.hpp:33
Generated on
for AirTSP by
1.17.0