Cppcheck
Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
ConditionHandler::Condition Struct Reference

Public Member Functions

bool isBool () const
 
MathLib::bigint getPath () const
 
TokengetContextAndValues (Token *condTok, std::list< ValueFlow::Value > &thenValues, std::list< ValueFlow::Value > &elseValues, bool known=false) const
 

Static Public Member Functions

static MathLib::bigint findPath (const std::list< ValueFlow::Value > &values)
 

Public Attributes

const Tokenvartok {}
 
std::list< ValueFlow::Valuetrue_values
 
std::list< ValueFlow::Valuefalse_values
 
bool inverted = false
 
bool impossible = true
 

Detailed Description

Definition at line 6293 of file valueflow.cpp.

Member Function Documentation

◆ findPath()

static MathLib::bigint ConditionHandler::Condition::findPath ( const std::list< ValueFlow::Value > &  values)
inlinestatic

Definition at line 6305 of file valueflow.cpp.

Referenced by getPath().

◆ getContextAndValues()

Token* ConditionHandler::Condition::getContextAndValues ( Token condTok,
std::list< ValueFlow::Value > &  thenValues,
std::list< ValueFlow::Value > &  elseValues,
bool  known = false 
) const
inline

◆ getPath()

MathLib::bigint ConditionHandler::Condition::getPath ( ) const
inline

Definition at line 6318 of file valueflow.cpp.

References false_values, findPath(), and true_values.

Referenced by ConditionHandler::afterCondition(), and getContextAndValues().

◆ isBool()

bool ConditionHandler::Condition::isBool ( ) const
inline

Definition at line 6301 of file valueflow.cpp.

References astIsBool(), and vartok.

Referenced by ConditionHandler::afterCondition(), and getContextAndValues().

Member Data Documentation

◆ false_values

std::list<ValueFlow::Value> ConditionHandler::Condition::false_values

◆ impossible

bool ConditionHandler::Condition::impossible = true

Definition at line 6299 of file valueflow.cpp.

Referenced by getContextAndValues(), and ContainerConditionHandler::parse().

◆ inverted

bool ConditionHandler::Condition::inverted = false

◆ true_values

std::list<ValueFlow::Value> ConditionHandler::Condition::true_values

◆ vartok

const Token* ConditionHandler::Condition::vartok {}

The documentation for this struct was generated from the following file: