1.00.26
C++ Standard Airline IT Object Library
Toggle main menu visibility
Loading...
Searching...
No Matches
NestingNode.hpp
Go to the documentation of this file.
1
#ifndef __STDAIR_BOM_NESTINGNODE_HPP
2
#define __STDAIR_BOM_NESTINGNODE_HPP
3
4
// //////////////////////////////////////////////////////////////////////
5
// Import section
6
// //////////////////////////////////////////////////////////////////////
7
// STL
8
#include <cmath>
9
// StdAir
10
#include <
stdair/stdair_basic_types.hpp
>
11
#include <
stdair/stdair_rm_types.hpp
>
12
#include <
stdair/bom/BomAbstract.hpp
>
13
#include <
stdair/bom/BookingClassTypes.hpp
>
14
#include <
stdair/bom/NestingNodeKey.hpp
>
15
17
namespace
boost
{
18
namespace
serialization
{
19
class
access;
20
}
21
}
22
23
namespace
stdair
{
24
29
class
NestingNode
:
public
BomAbstract
{
30
template
<
typename
BOM>
friend
class
FacBom
;
31
friend
class
FacBomManager
;
32
friend
class
boost::serialization::access
;
33
34
public
:
35
// ////////// Type definitions ////////////
39
typedef
NestingNodeKey
Key_T
;
40
41
public
:
42
// /////////////////// Getters ////////////////////////
44
const
Key_T
&
getKey
()
const
{
45
return
_key;
46
}
47
49
BomAbstract
*
const
getParent
()
const
{
50
return
_parent;
51
}
52
56
const
HolderMap_T
&
getHolderMap
()
const
{
57
return
_holderMap;
58
}
59
61
const
Yield_T
&
getYield
()
const
{
62
return
_yield;
63
}
64
65
public
:
66
// ///////////////////// Setters /////////////////////
68
void
setYield
(
const
Yield_T
& iYield) {
69
_yield = iYield;
70
}
71
72
73
public
:
74
// /////////// Display support methods /////////
80
void
toStream
(std::ostream& ioOut)
const
{
81
ioOut <<
toString
();
82
}
83
89
void
fromStream
(std::istream& ioIn) {
90
}
91
95
std::string
toString
()
const
;
96
100
const
std::string
describeKey
()
const
{
101
return
_key.toString();
102
}
103
104
105
public
:
106
// /////////// (Boost) Serialisation support methods /////////
110
template
<
class
Archive>
111
void
serialize
(Archive& ar,
const
unsigned
int
iFileVersion);
112
113
private
:
121
void
serialisationImplementationExport()
const
;
122
void
serialisationImplementationImport();
123
124
125
protected
:
126
// /////////// Constructors and destructor. ////////////
130
NestingNode
(
const
Key_T
&);
131
135
virtual
~NestingNode
();
136
137
private
:
141
NestingNode
();
142
146
NestingNode
(
const
NestingNode
&);
147
148
149
private
:
150
// //////////// Attributes ////////////
154
Key_T
_key;
155
159
BomAbstract
* _parent;
160
164
HolderMap_T
_holderMap;
165
169
Yield_T
_yield;
170
171
};
172
}
173
#endif
// __STDAIR_BOM_NESTINGNODE_HPP
BomAbstract.hpp
BookingClassTypes.hpp
NestingNodeKey.hpp
stdair_basic_types.hpp
stdair_rm_types.hpp
stdair
Handle on the StdAir library context.
Definition
BasChronometer.cpp:9
stdair::HolderMap_T
std::map< const std::type_info *, BomAbstract * > HolderMap_T
Definition
BomAbstract.hpp:63
stdair::Yield_T
double Yield_T
Definition
stdair_inventory_types.hpp:113
boost
Forward declarations.
Definition
AirlineClassList.hpp:16
boost::serialization
Definition
AirlineClassList.hpp:17
stdair::BomAbstract::BomAbstract
BomAbstract()
Definition
BomAbstract.hpp:53
stdair::NestingNode::~NestingNode
virtual ~NestingNode()
Definition
NestingNode.cpp:35
stdair::NestingNode::NestingNode
NestingNode(const Key_T &)
Definition
NestingNode.cpp:31
stdair::NestingNode::describeKey
const std::string describeKey() const
Definition
NestingNode.hpp:100
stdair::NestingNode::getHolderMap
const HolderMap_T & getHolderMap() const
Definition
NestingNode.hpp:56
stdair::NestingNode::fromStream
void fromStream(std::istream &ioIn)
Definition
NestingNode.hpp:89
stdair::NestingNode::getYield
const Yield_T & getYield() const
Definition
NestingNode.hpp:61
stdair::NestingNode::getKey
const Key_T & getKey() const
Definition
NestingNode.hpp:44
stdair::NestingNode::Key_T
NestingNodeKey Key_T
Definition
NestingNode.hpp:39
stdair::NestingNode::getParent
BomAbstract *const getParent() const
Definition
NestingNode.hpp:49
stdair::NestingNode::toString
std::string toString() const
Definition
NestingNode.cpp:39
stdair::NestingNode::toStream
void toStream(std::ostream &ioOut) const
Definition
NestingNode.hpp:80
stdair::NestingNode::FacBom
friend class FacBom
Definition
NestingNode.hpp:30
stdair::NestingNode::access
friend class boost::serialization::access
Definition
NestingNode.hpp:32
stdair::NestingNode::setYield
void setYield(const Yield_T &iYield)
Definition
NestingNode.hpp:68
stdair::NestingNode::FacBomManager
friend class FacBomManager
Definition
NestingNode.hpp:31
stdair::NestingNode::serialize
void serialize(Archive &ar, const unsigned int iFileVersion)
stdair::NestingNodeKey
Key of a given policy, made of a policy code.
Definition
NestingNodeKey.hpp:26
Generated for StdAir by
1.17.0