Blaze 3.9
Loading...
Searching...
No Matches
blaze::UnsignedValue< T > Class Template Reference

Implementation of a wrapper for built-in unsigned integral values. More...

#include <UnsignedValue.h>

Public Member Functions

Constructors
 UnsignedValue (T value=0)
 The default constructor for UnsignedInt.
Assignment operators
UnsignedValue & operator= (T value)
 Assignment of a built-in unsigned integral value.
Conversion operators
 operator T () const
 Conversion to the built-in unsigned integral type.
Access functions
T get () const
 Access to the wrapped built-in unsigned integral value.

Private Attributes

Member variables
T value_
 The wrapped built-in unsigned integral value.

Detailed Description

template<typename T>
class blaze::UnsignedValue< T >

Implementation of a wrapper for built-in unsigned integral values.

This class wraps a value of built-in unsigned integral type in order to be able to extract non-negative unsigned integral values from an input stream.

Constructor & Destructor Documentation

◆ UnsignedValue()

template<typename T>
blaze::UnsignedValue< T >::UnsignedValue ( T value = 0)
inlineexplicit

The default constructor for UnsignedInt.

Parameters
valueThe initial value for the unsigned integer.

Member Function Documentation

◆ get()

template<typename T>
T blaze::UnsignedValue< T >::get ( ) const
inline

Access to the wrapped built-in unsigned integral value.

Returns
The wrapped built-in unsigned integral value.

◆ operator T()

template<typename T>
blaze::UnsignedValue< T >::operator T ( ) const
inline

Conversion to the built-in unsigned integral type.

Returns
The wrapped built-in unsigned integral value.

◆ operator=()

template<typename T>
UnsignedValue< T > & blaze::UnsignedValue< T >::operator= ( T value)
inline

Assignment of a built-in unsigned integral value.

Parameters
valueThe unsigned integral value.
Returns
Reference to the assigned UnsignedValue object.

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