Scanframe Modular Application 0.1.0
Loading...
Searching...
No Matches
sf::VariableTypes::State Class Reference

Type containing a name referencing a value and is called a state. More...

#include <VariableTypes.h>

Collaboration diagram for sf::VariableTypes::State:
[legend]

Public Types

typedef TVector< State > Vector
 Vector class to be able to create a state list.

Public Member Functions

 State ()
 Default constructor.
 State (std::string name, const Value &value)
 Initialization constructor.
 State (const State &s)
 Copy constructor.
State & assign (const State &s)
 Assignment function for save copying of the structure.
State & operator= (const State &s)
 Assignment operator for save copying of the structure.
bool operator== (const State &state) const
 Compare equal operator.
bool operator!= (const State &state) const
 Compare unequal operator.

Public Attributes

std::string _name
 Name of the contained value.
Value _value
 Value which belongs to the name.

Detailed Description

Type containing a name referencing a value and is called a state.

Member Typedef Documentation

◆ Vector

Vector class to be able to create a state list.

Constructor & Destructor Documentation

◆ State() [1/3]

sf::VariableTypes::State::State ( )
inline

Default constructor.

◆ State() [2/3]

sf::VariableTypes::State::State ( std::string name,
const Value & value )
inline

Initialization constructor.

◆ State() [3/3]

sf::VariableTypes::State::State ( const State & s)
inline

Copy constructor.

Member Function Documentation

◆ assign()

State & sf::VariableTypes::State::assign ( const State & s)
inline

Assignment function for save copying of the structure.

◆ operator!=()

bool sf::VariableTypes::State::operator!= ( const State & state) const
inline

Compare unequal operator.

◆ operator=()

State & sf::VariableTypes::State::operator= ( const State & s)
inline

Assignment operator for save copying of the structure.

◆ operator==()

bool sf::VariableTypes::State::operator== ( const State & state) const
inline

Compare equal operator.

Member Data Documentation

◆ _name

std::string sf::VariableTypes::State::_name

Name of the contained value.

◆ _value

Value sf::VariableTypes::State::_value

Value which belongs to the name.


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