sgsMaybe [class]
template< class T > class sgsMaybe
This is the class used for handling nullable values.
Variables
T data
- the data variablebool isset
- specifies whether the data variable contains any useful data (false if value isnull
)
Constructors
sgsMaybe()
- initializes anull
nullable valuesgsMaybe( EsgsMaybeNot )
- initializes anull
nullable value, to be used in functions returningsgsMaybe
by returningsgsMaybeNot
sgsMaybe( const T& val )
- initializes a nullable value from another such value
Methods
void set( const T& val )
- sets the variable to the specified (non-`null`) valuevoid unset()
- sets the variable to null