fcml  1.2.2
Public Member Functions | List of all members
fcml::Nullable< T > Class Template Reference

Wrapper for nullable value types. More...

#include <fcml_common.hpp>

Public Member Functions

 Nullable (const T &value, bool is_not_null=true)
 
bool isNotNull () const
 
void setNotNull (bool isNull)
 
getValue () const
 
T & getValue ()
 
void setValue (const T &value)
 
bool operator== (const Nullable &nullable) const
 Checks if two nullable values are equal. More...
 
bool operator!= (const Nullable &nullable) const
 Checks if two nullable values are not equal. More...
 

Detailed Description

template<typename T>
class fcml::Nullable< T >

Wrapper for nullable value types.

Since
1.1.0

Member Function Documentation

◆ operator!=()

template<typename T>
bool fcml::Nullable< T >::operator!= ( const Nullable< T > &  nullable) const
inline

Checks if two nullable values are not equal.

Parameters
nullableThe source nullable value.
Returns
True if they are not equal; otherwise false.
Since
1.2.0

◆ operator==()

template<typename T>
bool fcml::Nullable< T >::operator== ( const Nullable< T > &  nullable) const
inline

Checks if two nullable values are equal.

Parameters
nullableThe source nullable value.
Returns
True if they are equal; otherwise false.
Since
1.2.0

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