Devel Lib
Devel::Serializing::IValue< T > Class Template Reference

Template class representing a value. More...

#include <SerializableData.h>

Inheritance diagram for Devel::Serializing::IValue< T >:
Collaboration diagram for Devel::Serializing::IValue< T >:

Public Member Functions

template<typename ... TArgs, std::enable_if_t< std::is_constructible_v< T, TArgs... >> * = nullptr>
 IValue (TArgs... i_tArgs)
 Constructs an IValue object with the specified arguments. More...
 
const T & value () const
 Returns the value. More...
 
T & value ()
 Returns a reference to the value. More...
 

Protected Attributes

m_tValue
 The value.
 

Detailed Description

template<typename T>
class Devel::Serializing::IValue< T >

Template class representing a value.

Template Parameters
TThe type of the value.

Constructor & Destructor Documentation

◆ IValue()

template<typename T >
template<typename ... TArgs, std::enable_if_t< std::is_constructible_v< T, TArgs... >> * = nullptr>
Devel::Serializing::IValue< T >::IValue ( TArgs...  i_tArgs)
inline

Constructs an IValue object with the specified arguments.

Template Parameters
TArgsThe types of the arguments.
Parameters
i_tArgsThe arguments to construct the value.

Member Function Documentation

◆ value() [1/2]

template<typename T >
T& Devel::Serializing::IValue< T >::value ( )
inline

Returns a reference to the value.

Returns
A reference to the value.

◆ value() [2/2]

template<typename T >
const T& Devel::Serializing::IValue< T >::value ( ) const
inline

Returns the value.

Returns
The value.

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