mn::container::basic_any::basic_any_holder_impl< T > Class Template Reference

The real impl of the basic_any holder. More...

+ Inheritance diagram for mn::container::basic_any::basic_any_holder_impl< T >:
+ Collaboration diagram for mn::container::basic_any::basic_any_holder_impl< T >:

Public Member Functions

 basic_any_holder_impl (T const &value)
 
 basic_any_holder_impl (T &&value)
 
virtual std::type_info const & type () const override
 Get the type info of the given type. More...
 
virtual basic_any_holderclone () const override
 Get a clone from this. More...
 
get ()
 Get the stored value. More...
 
const T get () const
 Get the stored value. More...
 
 operator T ()
 Convert this to the type. More...
 

Static Public Member Functions

static const int TYPE_SIZE ()
 

Private Attributes

m_typeHold
 

Detailed Description

template<typename T>
class mn::container::basic_any::basic_any_holder_impl< T >

The real impl of the basic_any holder.

Constructor & Destructor Documentation

◆ basic_any_holder_impl() [1/2]

template<typename T >
mn::container::basic_any::basic_any_holder_impl< T >::basic_any_holder_impl ( T const &  value)
inline

◆ basic_any_holder_impl() [2/2]

template<typename T >
mn::container::basic_any::basic_any_holder_impl< T >::basic_any_holder_impl ( T &&  value)
inline

Member Function Documentation

◆ clone()

template<typename T >
virtual basic_any_holder* mn::container::basic_any::basic_any_holder_impl< T >::clone ( ) const
inlineoverridevirtual

Get a clone from this.

Returns
A clone from this.

Implements mn::container::basic_any::basic_any_holder.

◆ get() [1/2]

template<typename T >
T mn::container::basic_any::basic_any_holder_impl< T >::get ( )
inline

Get the stored value.

Returns
The stored value.

◆ get() [2/2]

template<typename T >
const T mn::container::basic_any::basic_any_holder_impl< T >::get ( ) const
inline

Get the stored value.

Returns
The stored value.

◆ operator T()

template<typename T >
mn::container::basic_any::basic_any_holder_impl< T >::operator T ( )
inline

Convert this to the type.

◆ type()

template<typename T >
virtual std::type_info const& mn::container::basic_any::basic_any_holder_impl< T >::type ( ) const
inlineoverridevirtual

Get the type info of the given type.

Returns
the Type info of the given type.

Implements mn::container::basic_any::basic_any_holder.

◆ TYPE_SIZE()

template<typename T >
static const int mn::container::basic_any::basic_any_holder_impl< T >::TYPE_SIZE ( )
inlinestatic

Member Data Documentation

◆ m_typeHold

template<typename T >
T mn::container::basic_any::basic_any_holder_impl< T >::m_typeHold
private

The stored value.


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