|
25 | 25 |
|
26 | 26 | // forward declarations |
27 | 27 |
|
28 | | -namespace io_v1 { |
29 | | - // class declaration |
30 | | - class GlobalObjectMapRecord { |
31 | | - public: |
32 | | - /// constructor(s) |
33 | | - GlobalObjectMapRecord() {} |
34 | | - |
35 | | - /// destructor |
36 | | - ~GlobalObjectMapRecord() {} |
37 | | - |
38 | | - void swap(GlobalObjectMapRecord& rh) { m_gtObjectMap.swap(rh.m_gtObjectMap); } |
39 | | - |
40 | | - public: |
41 | | - /// return the object map for the algorithm algoNameVal |
42 | | - const GlobalObjectMap* getObjectMap(const std::string& algoNameVal) const; |
43 | | - |
44 | | - /// return the object map for the algorithm with bit number const int algoBitNumberVal |
45 | | - const GlobalObjectMap* getObjectMap(const int algoBitNumberVal) const; |
46 | | - |
47 | | - /// return all the combinations passing the requirements imposed in condition condNameVal |
48 | | - /// from algorithm with name algoNameVal |
49 | | - const CombinationsWithBxInCond* getCombinationsInCond(const std::string& algoNameVal, |
50 | | - const std::string& condNameVal) const; |
51 | | - |
52 | | - /// return all the combinations passing the requirements imposed in condition condNameVal |
53 | | - /// from algorithm with bit number algoBitNumberVal |
54 | | - const CombinationsWithBxInCond* getCombinationsInCond(const int algoBitNumberVal, |
55 | | - const std::string& condNameVal) const; |
56 | | - |
57 | | - /// return the result for the condition condNameVal |
58 | | - /// from algorithm with name algoNameVal |
59 | | - bool getConditionResult(const std::string& algoNameVal, const std::string& condNameVal) const; |
60 | | - |
61 | | - /// return the result for the condition condNameVal |
62 | | - /// from algorithm with bit number algoBitNumberVal |
63 | | - bool getConditionResult(const int algoBitNumberVal, const std::string& condNameVal) const; |
64 | | - |
65 | | - public: |
66 | | - /// get / set the vector of object maps |
67 | | - inline const std::vector<GlobalObjectMap>& gtObjectMap() const { return m_gtObjectMap; } |
68 | | - |
69 | | - inline void setGtObjectMap(const std::vector<GlobalObjectMap>& gtObjectMapValue) { |
70 | | - m_gtObjectMap = gtObjectMapValue; |
71 | | - } |
72 | | - |
73 | | - inline void swapGtObjectMap(std::vector<GlobalObjectMap>& gtObjectMapValue) { |
74 | | - m_gtObjectMap.swap(gtObjectMapValue); |
75 | | - } |
76 | | - |
77 | | - private: |
78 | | - std::vector<GlobalObjectMap> m_gtObjectMap; |
79 | | - }; |
80 | | - |
81 | | - inline void swap(GlobalObjectMapRecord& lh, GlobalObjectMapRecord& rh) { lh.swap(rh); } |
82 | | -} // namespace io_v1 |
83 | | -using GlobalObjectMapRecord = io_v1::GlobalObjectMapRecord; |
| 28 | +// class declaration |
| 29 | +class GlobalObjectMapRecord { |
| 30 | +public: |
| 31 | + /// constructor(s) |
| 32 | + GlobalObjectMapRecord() {} |
| 33 | + |
| 34 | + /// destructor |
| 35 | + ~GlobalObjectMapRecord() {} |
| 36 | + |
| 37 | + void swap(GlobalObjectMapRecord& rh) { m_gtObjectMap.swap(rh.m_gtObjectMap); } |
| 38 | + |
| 39 | +public: |
| 40 | + /// return the object map for the algorithm algoNameVal |
| 41 | + const GlobalObjectMap* getObjectMap(const std::string& algoNameVal) const; |
| 42 | + |
| 43 | + /// return the object map for the algorithm with bit number const int algoBitNumberVal |
| 44 | + const GlobalObjectMap* getObjectMap(const int algoBitNumberVal) const; |
| 45 | + |
| 46 | + /// return all the combinations passing the requirements imposed in condition condNameVal |
| 47 | + /// from algorithm with name algoNameVal |
| 48 | + const CombinationsWithBxInCond* getCombinationsInCond(const std::string& algoNameVal, |
| 49 | + const std::string& condNameVal) const; |
| 50 | + |
| 51 | + /// return all the combinations passing the requirements imposed in condition condNameVal |
| 52 | + /// from algorithm with bit number algoBitNumberVal |
| 53 | + const CombinationsWithBxInCond* getCombinationsInCond(const int algoBitNumberVal, |
| 54 | + const std::string& condNameVal) const; |
| 55 | + |
| 56 | + /// return the result for the condition condNameVal |
| 57 | + /// from algorithm with name algoNameVal |
| 58 | + bool getConditionResult(const std::string& algoNameVal, const std::string& condNameVal) const; |
| 59 | + |
| 60 | + /// return the result for the condition condNameVal |
| 61 | + /// from algorithm with bit number algoBitNumberVal |
| 62 | + bool getConditionResult(const int algoBitNumberVal, const std::string& condNameVal) const; |
| 63 | + |
| 64 | +public: |
| 65 | + /// get / set the vector of object maps |
| 66 | + inline const std::vector<GlobalObjectMap>& gtObjectMap() const { return m_gtObjectMap; } |
| 67 | + |
| 68 | + inline void setGtObjectMap(const std::vector<GlobalObjectMap>& gtObjectMapValue) { m_gtObjectMap = gtObjectMapValue; } |
| 69 | + |
| 70 | + inline void swapGtObjectMap(std::vector<GlobalObjectMap>& gtObjectMapValue) { m_gtObjectMap.swap(gtObjectMapValue); } |
| 71 | + |
| 72 | +private: |
| 73 | + std::vector<GlobalObjectMap> m_gtObjectMap; |
| 74 | +}; |
| 75 | + |
| 76 | +inline void swap(GlobalObjectMapRecord& lh, GlobalObjectMapRecord& rh) { lh.swap(rh); } |
84 | 77 | #endif |
0 commit comments