Opm::Value< T > Class Template Reference

#include <Value.hpp>

Inheritance diagram for Opm::Value< T >:
Inheritance graph

Public Member Functions

 Value ()=default
 
 Value (const std::string &name)
 
 Value (const std::string &name, T value)
 
bool hasValue () const
 
getValue () const
 
void setValue (T value)
 
bool equal (const Value< T > &other) const
 
bool operator== (const Value &rhs) const
 
bool operator!= (const Value &rhs) const
 

Constructor & Destructor Documentation

◆ Value() [1/3]

template<typename T >
Opm::Value< T >::Value ( )
default

◆ Value() [2/3]

template<typename T >
Opm::Value< T >::Value ( const std::string name)
inlineexplicit

◆ Value() [3/3]

template<typename T >
Opm::Value< T >::Value ( const std::string name,
value 
)
inline

Member Function Documentation

◆ equal()

template<typename T >
bool Opm::Value< T >::equal ( const Value< T > &  other) const
inline

Will return true if both value instances have been initialized to the same value; or none of the values have been initialized. Does not compare names.

Referenced by Opm::Value< T >::operator==().

◆ getValue()

template<typename T >
T Opm::Value< T >::getValue ( ) const
inline

◆ hasValue()

template<typename T >
bool Opm::Value< T >::hasValue ( ) const
inline

◆ operator!=()

template<typename T >
bool Opm::Value< T >::operator!= ( const Value< T > &  rhs) const
inline

◆ operator==()

template<typename T >
bool Opm::Value< T >::operator== ( const Value< T > &  rhs) const
inline

◆ setValue()

template<typename T >
void Opm::Value< T >::setValue ( value)
inline

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