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
5869 { return !_valIsCorrect; }

◆ set()

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

◆ setBad()

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

◆ value()

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

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