cpp-reflect
C++ Reflection and Annotations Library
Loading...
Searching...
No Matches
refl::any_ref Class Referenceexport
module reflect

Public Member Functions

 any_ref ()
 
template<typename T>
requires (not std::same_as<std::remove_reference_t<T>, any_ref> and not std::same_as< std::remove_reference_t<T>, any>)
 any_ref (T &t)
 
template<typename T>
requires (not std::same_as<std::remove_reference_t<T>, any_ref> and not std::same_as< std::remove_reference_t<T>, any>)
 any_ref (T *t)
 
 any_ref (const refl::type_info &t_info, void *ptr)
 
 any_ref (refl::any &owner_any)
 
 ~any_ref ()
 
 any_ref (const any_ref &other)
 
any_refoperator= (const any_ref &other)
 
template<typename T>
bool is () const
 
bool is (const refl::type_info &tinfo) const
 
template<typename T>
T & as ()
 
template<typename T>
const T & as () const
 
const type_infotype () const
 
bool is_null () const
 
void * data ()
 
const void * data () const
 

Detailed Description

Definition at line 154 of file any.cppm.

Constructor & Destructor Documentation

◆ any_ref() [1/6]

refl::any_ref::any_ref ( )
inlineexport

Definition at line 156 of file any.cppm.

+ Here is the caller graph for this function:

◆ any_ref() [2/6]

template<typename T>
requires (not std::same_as<std::remove_reference_t<T>, any_ref> and not std::same_as< std::remove_reference_t<T>, any>)
refl::any_ref::any_ref ( T & t)
inlineexport

Definition at line 164 of file any.cppm.

+ Here is the call graph for this function:

◆ any_ref() [3/6]

template<typename T>
requires (not std::same_as<std::remove_reference_t<T>, any_ref> and not std::same_as< std::remove_reference_t<T>, any>)
refl::any_ref::any_ref ( T * t)
inlineexport

Definition at line 173 of file any.cppm.

+ Here is the call graph for this function:

◆ any_ref() [4/6]

refl::any_ref::any_ref ( const refl::type_info & t_info,
void * ptr )
inlineexport

Definition at line 179 of file any.cppm.

+ Here is the call graph for this function:

◆ any_ref() [5/6]

refl::any_ref::any_ref ( refl::any & owner_any)
inlineexport

Definition at line 185 of file any.cppm.

+ Here is the call graph for this function:

◆ ~any_ref()

refl::any_ref::~any_ref ( )
inlineexport

Definition at line 192 of file any.cppm.

◆ any_ref() [6/6]

refl::any_ref::any_ref ( const any_ref & other)
inlineexport

Definition at line 196 of file any.cppm.

+ Here is the call graph for this function:

Member Function Documentation

◆ as() [1/2]

template<typename T>
T & refl::any_ref::as ( )
inlineexport

Definition at line 226 of file any.cppm.

+ Here is the call graph for this function:

◆ as() [2/2]

template<typename T>
const T & refl::any_ref::as ( ) const
inlineexport

Definition at line 232 of file any.cppm.

+ Here is the call graph for this function:

◆ data() [1/2]

void * refl::any_ref::data ( )
inlineexport

Definition at line 246 of file any.cppm.

◆ data() [2/2]

const void * refl::any_ref::data ( ) const
inlineexport

Definition at line 250 of file any.cppm.

◆ is() [1/2]

template<typename T>
bool refl::any_ref::is ( ) const
inlineexport

Definition at line 215 of file any.cppm.

+ Here is the caller graph for this function:

◆ is() [2/2]

bool refl::any_ref::is ( const refl::type_info & tinfo) const
inlineexport

Definition at line 220 of file any.cppm.

+ Here is the call graph for this function:

◆ is_null()

bool refl::any_ref::is_null ( ) const
inlineexport

Definition at line 242 of file any.cppm.

◆ operator=()

any_ref & refl::any_ref::operator= ( const any_ref & other)
inlineexport

Definition at line 203 of file any.cppm.

+ Here is the call graph for this function:

◆ type()

const type_info & refl::any_ref::type ( ) const
inlineexport

Definition at line 237 of file any.cppm.

+ Here is the caller graph for this function:

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