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

Public Member Functions

const std::string & name () const
 
const auto & fields () const
 
std::optional< const field_info * > field_by_name (const std::string &name) const
 
std::optional< const field_info * > field_by_offset (const std::size_t &offset) const
 
std::size_t hash_code () const
 
std::size_t id () const
 
template<typename T>
bool is_type () const
 
template<template< typename... > typename Pack>
bool is_pack () const
 
template<template< typename T, std::size_t S > typename Pack>
bool is_pack_1t1i () const
 
bool is_const () const
 
bool is_indirect () const
 
bool is_rval_ref () const
 
bool is_lval_ref () const
 
bool is_ptr () const
 
const type_infoindirect_type () const
 
std::vector< const type_info * > pack_parameter_types () const
 
void * make_copy_of (const void *ptr) const
 
void assign_copy_of (const void *src, void *dest) const
 
bool equality (const void *lhs, const void *rhs) const
 

Static Public Member Functions

template<typename T>
static const type_infofrom ()
 

Detailed Description

Definition at line 121 of file type_info.cppm.

Member Function Documentation

◆ assign_copy_of()

void refl::type_info::assign_copy_of ( const void * src,
void * dest ) const
inlineexport

Definition at line 341 of file type_info.cppm.

◆ equality()

bool refl::type_info::equality ( const void * lhs,
const void * rhs ) const
inlineexport

Definition at line 347 of file type_info.cppm.

+ Here is the caller graph for this function:

◆ field_by_name()

std::optional< const field_info * > refl::type_info::field_by_name ( const std::string & name) const
inlineexport

Definition at line 263 of file type_info.cppm.

+ Here is the call graph for this function:

◆ field_by_offset()

std::optional< const field_info * > refl::type_info::field_by_offset ( const std::size_t & offset) const
inlineexport

Definition at line 269 of file type_info.cppm.

◆ fields()

const auto & refl::type_info::fields ( ) const
inlineexport

Definition at line 259 of file type_info.cppm.

◆ from()

template<typename T>
static const type_info & refl::type_info::from ( )
inlinestaticexport

Definition at line 174 of file type_info.cppm.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ hash_code()

std::size_t refl::type_info::hash_code ( ) const
inlineexport

Definition at line 276 of file type_info.cppm.

◆ id()

std::size_t refl::type_info::id ( ) const
inlineexport

Definition at line 279 of file type_info.cppm.

+ Here is the caller graph for this function:

◆ indirect_type()

const type_info & refl::type_info::indirect_type ( ) const
inlineexport

Definition at line 318 of file type_info.cppm.

◆ is_const()

bool refl::type_info::is_const ( ) const
inlineexport

Definition at line 301 of file type_info.cppm.

◆ is_indirect()

bool refl::type_info::is_indirect ( ) const
inlineexport

Definition at line 304 of file type_info.cppm.

◆ is_lval_ref()

bool refl::type_info::is_lval_ref ( ) const
inlineexport

Definition at line 311 of file type_info.cppm.

◆ is_pack()

template<template< typename... > typename Pack>
bool refl::type_info::is_pack ( ) const
inlineexport

Definition at line 290 of file type_info.cppm.

◆ is_pack_1t1i()

template<template< typename T, std::size_t S > typename Pack>
bool refl::type_info::is_pack_1t1i ( ) const
inlineexport

Definition at line 296 of file type_info.cppm.

◆ is_ptr()

bool refl::type_info::is_ptr ( ) const
inlineexport

Definition at line 314 of file type_info.cppm.

◆ is_rval_ref()

bool refl::type_info::is_rval_ref ( ) const
inlineexport

Definition at line 308 of file type_info.cppm.

◆ is_type()

template<typename T>
bool refl::type_info::is_type ( ) const
inlineexport

Definition at line 284 of file type_info.cppm.

◆ make_copy_of()

void * refl::type_info::make_copy_of ( const void * ptr) const
inlineexport

Definition at line 334 of file type_info.cppm.

+ Here is the caller graph for this function:

◆ name()

const std::string & refl::type_info::name ( ) const
inlineexport

Definition at line 255 of file type_info.cppm.

+ Here is the caller graph for this function:

◆ pack_parameter_types()

std::vector< const type_info * > refl::type_info::pack_parameter_types ( ) const
inlineexport

Definition at line 326 of file type_info.cppm.


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