1 #ifndef CSM_WORLD_INFOSELECTWRAPPER_H
2 #define CSM_WORLD_INFOSELECTWRAPPER_H
185 template <
typename Type1,
typename Type2>
186 bool rangeContains(Type1 value, std::pair<Type2,Type2> range)
const;
188 template <
typename Type1,
typename Type2>
189 bool rangesOverlap(std::pair<Type1,Type1> range1, std::pair<Type2,Type2> range2)
const;
191 template <
typename Type1,
typename Type2>
194 template <
typename Type1,
typename Type2>
195 bool rangesMatch(std::pair<Type1,Type1> range1, std::pair<Type2,Type2> range2)
const;
197 template <
typename Type1,
typename Type2>
198 bool conditionIsAlwaysTrue(std::pair<Type1,Type1> conditionRange, std::pair<Type2,Type2> validRange)
const;
200 template <
typename Type1,
typename Type2>
201 bool conditionIsNeverTrue(std::pair<Type1,Type1> conditionRange, std::pair<Type2,Type2> validRange)
const;
Definition: infoselectwrapper.hpp:114
Definition: infoselectwrapper.hpp:47
std::string mVariableName
Definition: infoselectwrapper.hpp:208
FunctionName
Definition: infoselectwrapper.hpp:25
bool hasVariable() const
Definition: infoselectwrapper.cpp:172
Definition: infoselectwrapper.hpp:120
Definition: infoselectwrapper.hpp:133
Definition: infoselectwrapper.hpp:65
Definition: infoselectwrapper.hpp:59
const std::string & getVariableName() const
Definition: infoselectwrapper.cpp:177
Definition: infoselectwrapper.hpp:122
std::pair< int, int > getConditionIntRange() const
Definition: infoselectwrapper.cpp:472
Definition: infoselectwrapper.hpp:49
bool conditionIsNeverTrue() const
Definition: infoselectwrapper.cpp:205
Definition: infoselectwrapper.hpp:71
bool mHasVariable
Definition: infoselectwrapper.hpp:207
Definition: infoselectwrapper.hpp:95
Definition: infoselectwrapper.hpp:99
Definition: infoselectwrapper.hpp:62
void readRule()
Definition: infoselectwrapper.cpp:266
Definition: infoselectwrapper.hpp:39
Definition: infoselectwrapper.hpp:119
Definition: infoselectwrapper.hpp:53
Definition: infoselectwrapper.hpp:29
Definition: infoselectwrapper.hpp:90
std::pair< int, int > getValidIntRange() const
Definition: infoselectwrapper.cpp:550
Definition: infoselectwrapper.hpp:135
Definition: infoselectwrapper.hpp:82
Definition: infoselectwrapper.hpp:52
Definition: infoselectwrapper.hpp:107
Definition: infoselectwrapper.hpp:58
Definition: infoselectwrapper.hpp:94
Definition: infoselectwrapper.hpp:27
ESM::DialInfo::SelectStruct & mSelect
Definition: infoselectwrapper.hpp:237
void setRelationType(RelationType type)
Definition: infoselectwrapper.cpp:800
Definition: infoselectwrapper.hpp:100
Definition: infoselectwrapper.hpp:103
Definition: infoselectwrapper.hpp:51
Definition: infoselectwrapper.hpp:45
std::pair< float, float > getConditionFloatRange() const
Definition: infoselectwrapper.cpp:518
bool conditionIsAlwaysTrue() const
Definition: infoselectwrapper.cpp:182
Definition: infoselectwrapper.hpp:55
Definition: infoselectwrapper.hpp:40
RelationType
Definition: infoselectwrapper.hpp:117
Definition: infoselectwrapper.hpp:37
Definition: infoselectwrapper.hpp:112
Definition: infoselectwrapper.hpp:33
bool rangesOverlap(std::pair< Type1, Type1 > range1, std::pair< Type2, Type2 > range2) const
Definition: infoselectwrapper.hpp:57
static const size_t FunctionPrefixOffset
Definition: infoselectwrapper.hpp:140
bool rangeFullyContains(std::pair< Type1, Type1 > containing, std::pair< Type2, Type2 > test) const
Definition: infoselectwrapper.hpp:93
Definition: infoselectwrapper.hpp:60
Definition: infoselectwrapper.hpp:92
RelationType getRelationType() const
Definition: infoselectwrapper.cpp:162
Definition: infoselectwrapper.hpp:81
Definition: infoselectwrapper.hpp:83
Definition: infoselectwrapper.hpp:69
RelationType mRelationType
Definition: infoselectwrapper.hpp:204
Definition: infoselectwrapper.hpp:216
Definition: infoselectwrapper.hpp:50
void update()
Definition: infoselectwrapper.cpp:836
static const char * FunctionEnumStrings[]
Definition: infoselectwrapper.hpp:145
Definition: infoselectwrapper.hpp:35
static std::string convertToString(FunctionName name)
Definition: infoselectwrapper.cpp:125
Definition: infoselectwrapper.hpp:74
ESM::Variant & getVariant()
Definition: infoselectwrapper.cpp:890
Definition: infoselectwrapper.hpp:110
bool variantTypeIsValid() const
Definition: infoselectwrapper.cpp:228
InfoSelectWrapper(ESM::DialInfo::SelectStruct &select)
Definition: infoselectwrapper.cpp:788
Definition: infoselectwrapper.hpp:126
static const size_t RelationIndexOffset
Definition: infoselectwrapper.hpp:142
Definition: infoselectwrapper.hpp:108
Definition: infoselectwrapper.hpp:85
Definition: infoselectwrapper.hpp:102
Definition: infoselectwrapper.hpp:109
ComparisonType mComparisonType
Definition: infoselectwrapper.hpp:205
Definition: infoselectwrapper.hpp:84
Definition: infoselectwrapper.hpp:87
Definition: infoselectwrapper.hpp:32
static const char * RelationEnumStrings[]
Definition: infoselectwrapper.hpp:146
Definition: infoselectwrapper.hpp:131
void setVariableName(const std::string &name)
Definition: infoselectwrapper.cpp:805
static const size_t FunctionIndexOffset
Definition: infoselectwrapper.hpp:141
Definition: infoselectwrapper.hpp:46
Definition: infoselectwrapper.hpp:34
void readVariableName()
Definition: infoselectwrapper.cpp:332
void setFunctionName(FunctionName name)
Definition: infoselectwrapper.cpp:793
ComparisonType
Definition: infoselectwrapper.hpp:129
Definition: infoselectwrapper.hpp:41
Definition: infoselectwrapper.hpp:20
Definition: infoselectwrapper.hpp:38
bool rangesMatch(std::pair< Type1, Type1 > range1, std::pair< Type2, Type2 > range2) const
Definition: infoselectwrapper.hpp:124
Definition: infoselectwrapper.hpp:89
void updateComparisonType()
Definition: infoselectwrapper.cpp:364
Definition: infoselectwrapper.hpp:104
Definition: infoselectwrapper.hpp:44
void setDefaults()
Definition: infoselectwrapper.cpp:810
Definition: infoselectwrapper.hpp:111
Definition: infoselectwrapper.hpp:80
const ESM::Variant & getVariant() const
Definition: infoselectwrapper.cpp:233
Definition: loadinfo.hpp:50
Definition: infoselectwrapper.hpp:75
Definition: infoselectwrapper.hpp:36
Definition: infoselectwrapper.hpp:56
Definition: infoselectwrapper.hpp:77
Definition: infoselectwrapper.hpp:106
const ESM::DialInfo::SelectStruct & mConstSelect
Definition: infoselectwrapper.hpp:212
static const char * ComparisonEnumStrings[]
Definition: infoselectwrapper.hpp:147
std::pair< float, float > getValidFloatRange() const
Definition: infoselectwrapper.cpp:676
Definition: infoselectwrapper.hpp:31
Definition: infoselectwrapper.hpp:72
Definition: infoselectwrapper.hpp:63
Definition: infoselectwrapper.hpp:30
Definition: infoselectwrapper.hpp:79
Definition: infoselectwrapper.hpp:88
void test(const MWWorld::Ptr &actor, int &compiled, int &total, const Compiler::Extensions *extensions, int warningsMode)
Definition: scripttest.cpp:27
Definition: variant.hpp:25
Definition: infoselectwrapper.hpp:54
Definition: infoselectwrapper.hpp:91
Definition: infoselectwrapper.hpp:78
Definition: infoselectwrapper.hpp:43
void readRelationType()
Definition: infoselectwrapper.cpp:316
Definition: infoselectwrapper.hpp:76
Definition: infoselectwrapper.hpp:86
void readFunctionName()
Definition: infoselectwrapper.cpp:278
Definition: infoselectwrapper.hpp:48
Definition: infoselectwrapper.hpp:42
Definition: infoselectwrapper.hpp:28
Definition: infoselectwrapper.hpp:70
bool rangeContains(Type1 value, std::pair< Type2, Type2 > range) const
Definition: infoselectwrapper.hpp:68
Definition: infoselectwrapper.hpp:61
Definition: infoselectwrapper.hpp:73
Definition: infoselectwrapper.hpp:123
ConstInfoSelectWrapper(const ESM::DialInfo::SelectStruct &select)
Definition: infoselectwrapper.cpp:151
Definition: infoselectwrapper.hpp:64
Definition: infoselectwrapper.hpp:98
std::string toString() const
Definition: infoselectwrapper.cpp:238
Definition: infoselectwrapper.hpp:105
FunctionName getFunctionName() const
Definition: infoselectwrapper.cpp:157
Definition: infoselectwrapper.hpp:121
ComparisonType getComparisonType() const
Definition: infoselectwrapper.cpp:167
Definition: infoselectwrapper.hpp:97
void updateHasVariable()
Definition: infoselectwrapper.cpp:340
static const size_t RuleMinSize
Definition: infoselectwrapper.hpp:138
Definition: infoselectwrapper.hpp:132
Definition: infoselectwrapper.hpp:66
Definition: infoselectwrapper.hpp:96
Definition: infoselectwrapper.hpp:67
static const size_t VarNameOffset
Definition: infoselectwrapper.hpp:143
const char * name
Definition: crashcatcher.cpp:59
FunctionName mFunctionName
Definition: infoselectwrapper.hpp:203