cpp-reflect
C++ Reflection and Annotations Library
Loading...
Searching...
No Matches
refl::field_info Struct Referenceexport
module reflect
+ Collaboration diagram for refl::field_info:

Public Member Functions

void * get_ptr (void *obj) const
 
template<typename T>
T & get_ref (void *obj) const
 
template<typename MetadataType>
bool has_metadata () const
 
template<typename MetadataType>
const MetadataType & get_metadata () const
 

Public Attributes

std::size_t index
 
std::string name
 
std::size_t size
 
std::size_t offset
 
access_spec access_type
 
type_id_t type_id
 
const type_info &(* type )()
 
std::vector< std::pair< const type_info &(*)(), void * > > metadata
 

Detailed Description

Definition at line 24 of file type_info.cppm.

Member Function Documentation

◆ get_metadata()

template<typename MetadataType>
const MetadataType & refl::field_info::get_metadata ( ) const
inlineexport

Definition at line 57 of file type_info.cppm.

+ Here is the call graph for this function:

◆ get_ptr()

void * refl::field_info::get_ptr ( void * obj) const
inlineexport

Definition at line 36 of file type_info.cppm.

+ Here is the caller graph for this function:

◆ get_ref()

template<typename T>
T & refl::field_info::get_ref ( void * obj) const
inlineexport

Definition at line 41 of file type_info.cppm.

+ Here is the call graph for this function:

◆ has_metadata()

template<typename MetadataType>
bool refl::field_info::has_metadata ( ) const
inlineexport

Definition at line 46 of file type_info.cppm.

+ Here is the call graph for this function:

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