ALib C++ Library
Library Version: 2412 R0
Documentation generated by doxygen
Loading...
Searching...
No Matches
VData< T > Struct Template Reference

Description:

template<typename T>
struct alib::config::detail::VData< T >

This struct is used as the reinterpretation type of generic pointers to ones reflecting the effective custom type of a configuration variable. While reinterpretation casts do not need such templated model, its use increases readability of the code.

Template Parameters
TThe variable's data type.

Definition at line 31 of file vmeta.hpp.

#include <vmeta.hpp>

Collaboration diagram for VData< T >:
[legend]

Public Field Index:

custom
 The custom data that this object stores.
 

Public Method Index:

template<typename TReinterpret >
TReinterpret & As ()
 
template<typename TReinterpret >
const TReinterpret & As () const
 

Field Details:

◆ custom

template<typename T >
T custom

The custom data that this object stores.

Definition at line 33 of file vmeta.hpp.

Method Details:

◆ As() [1/2]

template<typename T >
template<typename TReinterpret >
TReinterpret & As ( )
inline

Reinterprets the this-pointer to a VData<TReinterpret>* and returns member custom.

Template Parameters
TReinterpretThe type to reinterpret to.
Returns
A reference to the custom data.

Definition at line 39 of file vmeta.hpp.

◆ As() [2/2]

template<typename T >
template<typename TReinterpret >
const TReinterpret & As ( ) const
inline

Reinterprets the this-pointer to a const VData<TReinterpret>* and returns member custom.

Template Parameters
TReinterpretThe type to reinterpret to.
Returns
A const reference to the custom data.

Definition at line 46 of file vmeta.hpp.


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