C++ Mathematical Expression Toolkit (ExprTk) release
Loading...
Searching...
No Matches
exprtk::parser< T >::scoped_bool_or_restorer Struct Reference

Public Member Functions

 scoped_bool_or_restorer (bool &bb)
 ~scoped_bool_or_restorer ()

Public Attributes

bool & b
bool original_value_

Detailed Description

template<typename T>
struct exprtk::parser< T >::scoped_bool_or_restorer

Definition at line 26002 of file exprtk.hpp.

Constructor & Destructor Documentation

◆ scoped_bool_or_restorer()

template<typename T>
exprtk::parser< T >::scoped_bool_or_restorer::scoped_bool_or_restorer ( bool & bb)
inlineexplicit

Definition at line 26004 of file exprtk.hpp.

References b, and original_value_.

◆ ~scoped_bool_or_restorer()

template<typename T>
exprtk::parser< T >::scoped_bool_or_restorer::~scoped_bool_or_restorer ( )
inline

Definition at line 26009 of file exprtk.hpp.

26010 {
26011 b = b || original_value_;
26012 }

References b, and original_value_.

Member Data Documentation

◆ b

template<typename T>
bool& exprtk::parser< T >::scoped_bool_or_restorer::b

Definition at line 26014 of file exprtk.hpp.

Referenced by scoped_bool_or_restorer(), and ~scoped_bool_or_restorer().

◆ original_value_

template<typename T>
bool exprtk::parser< T >::scoped_bool_or_restorer::original_value_

Definition at line 26015 of file exprtk.hpp.

Referenced by scoped_bool_or_restorer(), and ~scoped_bool_or_restorer().


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