rttr::instance Class - 0.9.5 |RTTR
rttr::instance Class Reference

The instance class is used for forwarding the instance of an object to invoke a property or method. More...

#include <instance.h>

Public Member Functions

 instance ()
 
 instance (variant &var)
 
 instance (const instance &other)
 
 instance (instance &&other)
 
template<typename T , typename Tp = decay_instance_t<T>>
 instance (const T &data)
 
template<typename T , typename Tp = decay_instance_t<T>>
 instance (T &data)
 
type get_type () const
 
bool is_valid () const
 
 operator bool () const
 
template<typename Target_Type >
Target_Type * try_convert () const
 

Detailed Description

The instance class is used for forwarding the instance of an object to invoke a property or method.

Remarks
This class should never be explicitly instantiated.

Constructor & Destructor Documentation

rttr::instance::instance ( )
rttr::instance::instance ( variant var)
rttr::instance::instance ( const instance other)
rttr::instance::instance ( instance &&  other)
template<typename T , typename Tp = decay_instance_t<T>>
rttr::instance::instance ( const T &  data)
template<typename T , typename Tp = decay_instance_t<T>>
rttr::instance::instance ( T &  data)

Member Function Documentation

type rttr::instance::get_type ( ) const
bool rttr::instance::is_valid ( ) const
rttr::instance::operator bool ( ) const
explicit
template<typename Target_Type >
Target_Type* rttr::instance::try_convert ( ) const

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