| Line 31... |
Line 31... |
| 31 |
#include <map>
|
31 |
#include <map>
|
| 32 |
#include <string>
|
32 |
#include <string>
|
| 33 |
//## end module%4209C5FB02C3.includes
|
33 |
//## end module%4209C5FB02C3.includes
|
| 34 |
|
34 |
|
| 35 |
|
35 |
|
| - |
|
36 |
class TestScenario;
|
| - |
|
37 |
class EvaluationContext;
|
| 36 |
class DefinedVariable;
|
38 |
class DefinedVariable;
|
| 37 |
|
39 |
|
| 38 |
//## begin module%4209C5FB02C3.additionalDeclarations preserve=yes
|
40 |
//## begin module%4209C5FB02C3.additionalDeclarations preserve=yes
|
| 39 |
//## end module%4209C5FB02C3.additionalDeclarations
|
41 |
//## end module%4209C5FB02C3.additionalDeclarations
|
| 40 |
|
42 |
|
| Line 49... |
Line 51... |
| 49 |
//## Persistence: Transient
|
51 |
//## Persistence: Transient
|
| 50 |
//## Cardinality/Multiplicity: n
|
52 |
//## Cardinality/Multiplicity: n
|
| 51 |
|
53 |
|
| 52 |
|
54 |
|
| 53 |
|
55 |
|
| - |
|
56 |
//## Uses: <unnamed>%425B4A730208;EvaluationContext { -> F}
|
| - |
|
57 |
//## Uses: <unnamed>%425B4DE70183;TransactionSpecification { -> }
|
| - |
|
58 |
|
| 54 |
class DefinedVariableTable
|
59 |
class DefinedVariableTable
|
| 55 |
{
|
60 |
{
|
| 56 |
//## begin DefinedVariableTable%4209C5FB02C3.initialDeclarations preserve=yes
|
61 |
//## begin DefinedVariableTable%4209C5FB02C3.initialDeclarations preserve=yes
|
| 57 |
//## end DefinedVariableTable%4209C5FB02C3.initialDeclarations
|
62 |
//## end DefinedVariableTable%4209C5FB02C3.initialDeclarations
|
| 58 |
|
63 |
|
| Line 67... |
Line 72... |
| 67 |
//## Other Operations (specified)
|
72 |
//## Other Operations (specified)
|
| 68 |
//## Operation: clear%4209C916032F
|
73 |
//## Operation: clear%4209C916032F
|
| 69 |
// Clear the table.
|
74 |
// Clear the table.
|
| 70 |
void clear ();
|
75 |
void clear ();
|
| 71 |
|
76 |
|
| - |
|
77 |
//## Operation: defineVariable%425B4483019F
|
| - |
|
78 |
// Define the given variable and evaluate to it.
|
| - |
|
79 |
DefinedVariable& defineVariable (const std::string &variableName // The name of the variable.
|
| - |
|
80 |
);
|
| - |
|
81 |
|
| 72 |
//## Operation: getDefinedVariable%4209C7770264
|
82 |
//## Operation: defineVariable%425B461402A1
|
| 73 |
// Evaluate to the given variable. When the variable doesn't already exist,
|
83 |
// Define the given variable and evaluate to it.
|
| - |
|
84 |
DefinedVariable& defineVariable (const std::string &variableName, // The name of the variable.
|
| - |
|
85 |
TestScenario &testScenario // The test scenario. While we do not accept ownership over this object, we
|
| - |
|
86 |
// do assume its validity for the remainder of our lifetime.
|
| - |
|
87 |
);
|
| - |
|
88 |
|
| - |
|
89 |
//## Operation: getVariable%4209C7770264
|
| 74 |
// create it.
|
90 |
// Evaluate to the given variable.
|
| 75 |
DefinedVariable& getDefinedVariable (const std::string &variableName // The name of the variable.
|
91 |
DefinedVariable& getVariable (const std::string &variableName, // The name of the variable.
|
| - |
|
92 |
EvaluationContext& context // The context of this query.
|
| 76 |
);
|
93 |
);
|
| 77 |
|
94 |
|
| 78 |
//## Operation: isVariable%420ACFBB01CE
|
95 |
//## Operation: isVariable%420ACFBB01CE
|
| 79 |
// Evaluate to true when the given symbol is a variable, otherwise evaluate to
|
96 |
// Evaluate to true when the given symbol is a variable, otherwise evaluate to
|
| 80 |
// false.
|
97 |
// false.
|
| 81 |
const bool isVariable (const std::string &symbol // The symbol.
|
98 |
const bool isVariable (const std::string &symbol, // The symbol.
|
| - |
|
99 |
EvaluationContext& context // The context of this query.
|
| 82 |
) const;
|
100 |
) const;
|
| 83 |
|
101 |
|
| 84 |
// Additional Public Declarations
|
102 |
// Additional Public Declarations
|
| 85 |
//## begin DefinedVariableTable%4209C5FB02C3.public preserve=yes
|
103 |
//## begin DefinedVariableTable%4209C5FB02C3.public preserve=yes
|
| 86 |
//## end DefinedVariableTable%4209C5FB02C3.public
|
104 |
//## end DefinedVariableTable%4209C5FB02C3.public
|
| Line 106... |
Line 124... |
| 106 |
// The name of the variable.
|
124 |
// The name of the variable.
|
| 107 |
//## begin DefinedVariableTable::variable%4209C65F0013.role preserve=no private: DefinedVariable {1 -> 1RFHgAN}
|
125 |
//## begin DefinedVariableTable::variable%4209C65F0013.role preserve=no private: DefinedVariable {1 -> 1RFHgAN}
|
| 108 |
std::map<std::string, DefinedVariable *> m_variable;
|
126 |
std::map<std::string, DefinedVariable *> m_variable;
|
| 109 |
//## end DefinedVariableTable::variable%4209C65F0013.role
|
127 |
//## end DefinedVariableTable::variable%4209C65F0013.role
|
| 110 |
|
128 |
|
| - |
|
129 |
//## Association: TransactionTestManager::Symbol Table::<unnamed>%425B3802027D
|
| - |
|
130 |
//## Role: DefinedVariableTable::scenario%425B380203D5
|
| - |
|
131 |
// The collection of scenarios for which scenario-specific variables are
|
| - |
|
132 |
// defined.
|
| - |
|
133 |
//## Qualifier: testScenario%425B380900E7; int
|
| - |
|
134 |
// The test scenario to which this variable applies.
|
| - |
|
135 |
//## begin DefinedVariableTable::scenario%425B380203D5.role preserve=no private: TestScenario {1 -> 1RFHAN}
|
| - |
|
136 |
std::map<int, TestScenario *> m_scenario;
|
| - |
|
137 |
//## end DefinedVariableTable::scenario%425B380203D5.role
|
| - |
|
138 |
|
| 111 |
// Additional Private Declarations
|
139 |
// Additional Private Declarations
|
| 112 |
//## begin DefinedVariableTable%4209C5FB02C3.private preserve=yes
|
140 |
//## begin DefinedVariableTable%4209C5FB02C3.private preserve=yes
|
| 113 |
//## end DefinedVariableTable%4209C5FB02C3.private
|
141 |
//## end DefinedVariableTable%4209C5FB02C3.private
|
| 114 |
|
142 |
|
| 115 |
private: //## implementation
|
143 |
private: //## implementation
|