OpenMW
|
#include <infoselectwrapper.hpp>
Public Member Functions | |
ConstInfoSelectWrapper (const ESM::DialInfo::SelectStruct &select) | |
FunctionName | getFunctionName () const |
RelationType | getRelationType () const |
ComparisonType | getComparisonType () const |
bool | hasVariable () const |
const std::string & | getVariableName () const |
bool | conditionIsAlwaysTrue () const |
bool | conditionIsNeverTrue () const |
bool | variantTypeIsValid () const |
const ESM::Variant & | getVariant () const |
std::string | toString () const |
template<typename T1 , typename T2 > | |
bool | rangeContains (T1 value, std::pair< T2, T2 > range) const |
template<typename T1 , typename T2 > | |
bool | rangeFullyContains (std::pair< T1, T1 > containingRange, std::pair< T2, T2 > testRange) const |
template<typename T1 , typename T2 > | |
bool | rangesOverlap (std::pair< T1, T1 > range1, std::pair< T2, T2 > range2) const |
template<typename T1 , typename T2 > | |
bool | rangesMatch (std::pair< T1, T1 > range1, std::pair< T2, T2 > range2) const |
template<typename T1 , typename T2 > | |
bool | conditionIsAlwaysTrue (std::pair< T1, T1 > conditionRange, std::pair< T2, T2 > validRange) const |
template<typename T1 , typename T2 > | |
bool | conditionIsNeverTrue (std::pair< T1, T1 > conditionRange, std::pair< T2, T2 > validRange) const |
Static Public Member Functions | |
static std::string | convertToString (FunctionName name) |
static std::string | convertToString (RelationType type) |
static std::string | convertToString (ComparisonType type) |
Static Public Attributes | |
static const size_t | RuleMinSize = 5 |
static const size_t | FunctionPrefixOffset = 1 |
static const size_t | FunctionIndexOffset = 2 |
static const size_t | RelationIndexOffset = 4 |
static const size_t | VarNameOffset = 5 |
static const char * | FunctionEnumStrings [] |
static const char * | RelationEnumStrings [] |
static const char * | ComparisonEnumStrings [] |
Protected Member Functions | |
void | readRule () |
void | readFunctionName () |
void | readRelationType () |
void | readVariableName () |
void | updateHasVariable () |
void | updateComparisonType () |
std::pair< int, int > | getConditionIntRange () const |
std::pair< float, float > | getConditionFloatRange () const |
std::pair< int, int > | getValidIntRange () const |
std::pair< float, float > | getValidFloatRange () const |
template<typename Type1 , typename Type2 > | |
bool | rangeContains (Type1 value, std::pair< Type2, Type2 > range) const |
template<typename Type1 , typename Type2 > | |
bool | rangesOverlap (std::pair< Type1, Type1 > range1, std::pair< Type2, Type2 > range2) const |
template<typename Type1 , typename Type2 > | |
bool | rangeFullyContains (std::pair< Type1, Type1 > containing, std::pair< Type2, Type2 > test) const |
template<typename Type1 , typename Type2 > | |
bool | rangesMatch (std::pair< Type1, Type1 > range1, std::pair< Type2, Type2 > range2) const |
template<typename Type1 , typename Type2 > | |
bool | conditionIsAlwaysTrue (std::pair< Type1, Type1 > conditionRange, std::pair< Type2, Type2 > validRange) const |
template<typename Type1 , typename Type2 > | |
bool | conditionIsNeverTrue (std::pair< Type1, Type1 > conditionRange, std::pair< Type2, Type2 > validRange) const |
Protected Attributes | |
FunctionName | mFunctionName |
RelationType | mRelationType |
ComparisonType | mComparisonType |
bool | mHasVariable |
std::string | mVariableName |
Private Attributes | |
const ESM::DialInfo::SelectStruct & | mConstSelect |
CSMWorld::ConstInfoSelectWrapper::ConstInfoSelectWrapper | ( | const ESM::DialInfo::SelectStruct & | select | ) |
bool CSMWorld::ConstInfoSelectWrapper::conditionIsAlwaysTrue | ( | ) | const |
|
protected |
bool CSMWorld::ConstInfoSelectWrapper::conditionIsAlwaysTrue | ( | std::pair< T1, T1 > | conditionRange, |
std::pair< T2, T2 > | validRange | ||
) | const |
bool CSMWorld::ConstInfoSelectWrapper::conditionIsNeverTrue | ( | ) | const |
|
protected |
bool CSMWorld::ConstInfoSelectWrapper::conditionIsNeverTrue | ( | std::pair< T1, T1 > | conditionRange, |
std::pair< T2, T2 > | validRange | ||
) | const |
|
static |
|
static |
|
static |
CSMWorld::ConstInfoSelectWrapper::ComparisonType CSMWorld::ConstInfoSelectWrapper::getComparisonType | ( | ) | const |
|
protected |
CSMWorld::ConstInfoSelectWrapper::FunctionName CSMWorld::ConstInfoSelectWrapper::getFunctionName | ( | ) | const |
CSMWorld::ConstInfoSelectWrapper::RelationType CSMWorld::ConstInfoSelectWrapper::getRelationType | ( | ) | const |
|
protected |
const std::string & CSMWorld::ConstInfoSelectWrapper::getVariableName | ( | ) | const |
const ESM::Variant & CSMWorld::ConstInfoSelectWrapper::getVariant | ( | ) | const |
bool CSMWorld::ConstInfoSelectWrapper::hasVariable | ( | ) | const |
|
protected |
bool CSMWorld::ConstInfoSelectWrapper::rangeContains | ( | T1 | value, |
std::pair< T2, T2 > | range | ||
) | const |
|
protected |
bool CSMWorld::ConstInfoSelectWrapper::rangeFullyContains | ( | std::pair< T1, T1 > | containingRange, |
std::pair< T2, T2 > | testRange | ||
) | const |
|
protected |
bool CSMWorld::ConstInfoSelectWrapper::rangesMatch | ( | std::pair< T1, T1 > | range1, |
std::pair< T2, T2 > | range2 | ||
) | const |
|
protected |
bool CSMWorld::ConstInfoSelectWrapper::rangesOverlap | ( | std::pair< T1, T1 > | range1, |
std::pair< T2, T2 > | range2 | ||
) | const |
|
protected |
|
protected |
|
protected |
|
protected |
std::string CSMWorld::ConstInfoSelectWrapper::toString | ( | ) | const |
|
protected |
|
protected |
bool CSMWorld::ConstInfoSelectWrapper::variantTypeIsValid | ( | ) | const |
|
static |
|
static |
|
static |
|
static |
|
protected |
|
private |
|
protected |
|
protected |
|
protected |
|
protected |
|
static |
|
static |
|
static |
|
static |