homog2d library
Public Member Functions | List of all members
h2d::priv::ValueFlag< T > Class Template Reference

A POD value that needs some computing, associated with its flag. Used to be able to retain a value needing complex calculation. More...

#include <homog2d.hpp>

Public Member Functions

bool isBad () const
 
void set (T v)
 
void setBad ()
 
value () const
 
 ValueFlag ()=default
 

Detailed Description

template<typename T>
class h2d::priv::ValueFlag< T >

A POD value that needs some computing, associated with its flag. Used to be able to retain a value needing complex calculation.

Constructor & Destructor Documentation

◆ ValueFlag()

template<typename T>
h2d::priv::ValueFlag< T >::ValueFlag ( )
default

Member Function Documentation

◆ isBad()

template<typename T>
bool h2d::priv::ValueFlag< T >::isBad ( ) const
inline
5868 { return !_valIsCorrect; }

◆ set()

template<typename T>
void h2d::priv::ValueFlag< T >::set ( v)
inline
5862  {
5863  _value = v;
5864  _valIsCorrect = true;
5865  }

◆ setBad()

template<typename T>
void h2d::priv::ValueFlag< T >::setBad ( )
inline
5867 { _valIsCorrect = false; }
Here is the caller graph for this function:

◆ value()

template<typename T>
T h2d::priv::ValueFlag< T >::value ( ) const
inline
5866 { return _value; }

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