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

Description:

template<typename T>
struct alib::variables::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 24 of file vmeta.inl.

Collaboration diagram for alib::variables::detail::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 alib::variables::detail::VData< T >::custom

The custom data that this object stores.

Definition at line 26 of file vmeta.inl.

Method Details:

◆ As() [1/2]

template<typename T>
template<typename TReinterpret>
TReinterpret & alib::variables::detail::VData< T >::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 32 of file vmeta.inl.

◆ As() [2/2]

template<typename T>
template<typename TReinterpret>
const TReinterpret & alib::variables::detail::VData< T >::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 39 of file vmeta.inl.


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