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

Public Member Functions

 any ()
 
template<typename T>
requires (not std::same_as<std::remove_reference_t<T>, any>)
 any (const T &t)
 
template<typename T>
requires (not std::same_as<std::remove_reference_t<T>, any>)
 any (T &&t)
 
 ~any ()
 
 any (const any &other)
 
anyoperator= (const any &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
 
bool operator== (const any &other) const
 

Static Public Member Functions

template<typename T, typename... Args>
requires (not std::is_reference_v<T>)
static any make (Args &&... args)
 
template<typename T>
requires (not std::same_as<std::remove_reference_t<T>, any>)
static any make (const T &value)
 
static any make (const refl::type_info &t_info, void *ptr)
 

Detailed Description

Definition at line 13 of file any.cppm.

Constructor & Destructor Documentation

◆ any() [1/4]

refl::any::any ( )
inlineexport

Definition at line 25 of file any.cppm.

◆ any() [2/4]

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

Definition at line 34 of file any.cppm.

+ Here is the call graph for this function:

◆ any() [3/4]

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

Definition at line 43 of file any.cppm.

+ Here is the call graph for this function:

◆ ~any()

refl::any::~any ( )
inlineexport

Definition at line 73 of file any.cppm.

◆ any() [4/4]

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

Definition at line 78 of file any.cppm.

Member Function Documentation

◆ as() [1/2]

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

Definition at line 111 of file any.cppm.

+ Here is the call graph for this function:

◆ as() [2/2]

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

Definition at line 117 of file any.cppm.

+ Here is the call graph for this function:

◆ data() [1/2]

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

Definition at line 131 of file any.cppm.

+ Here is the caller graph for this function:

◆ data() [2/2]

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

Definition at line 135 of file any.cppm.

◆ is() [1/2]

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

Definition at line 100 of file any.cppm.

+ Here is the caller graph for this function:

◆ is() [2/2]

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

Definition at line 105 of file any.cppm.

+ Here is the call graph for this function:

◆ is_null()

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

Definition at line 127 of file any.cppm.

◆ make() [1/3]

template<typename T, typename... Args>
requires (not std::is_reference_v<T>)
static any refl::any::make ( Args &&... args)
inlinestaticexport

Definition at line 52 of file any.cppm.

+ Here is the call graph for this function:

◆ make() [2/3]

static any refl::any::make ( const refl::type_info & t_info,
void * ptr )
inlinestaticexport

Definition at line 66 of file any.cppm.

+ Here is the call graph for this function:

◆ make() [3/3]

template<typename T>
requires (not std::same_as<std::remove_reference_t<T>, any>)
static any refl::any::make ( const T & value)
inlinestaticexport

Definition at line 60 of file any.cppm.

+ Here is the call graph for this function:

◆ operator=()

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

Definition at line 86 of file any.cppm.

◆ operator==()

bool refl::any::operator== ( const any & other) const
inlineexport

Definition at line 139 of file any.cppm.

+ Here is the call graph for this function:

◆ type()

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

Definition at line 122 of file any.cppm.

+ Here is the caller graph for this function:

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