cgv
|
namespace for templates that provide type information More...
Typedefs | |
typedef cgv::data::ref_ptr< const type_interface, true > | const_type_ptr |
pointer to const type interface | |
Enumerations | |
enum | TypeId { TI_UNDEF , TI_BIT , TI_VOID , TI_BOOL , TI_INT8 , TI_INT16 , TI_INT32 , TI_INT64 , TI_UINT8 , TI_UINT16 , TI_UINT32 , TI_UINT64 , TI_FLT16 , TI_FLT32 , TI_FLT64 , TI_WCHAR , TI_STRING , TI_WSTRING , TI_ENUM , TI_REFERENCE , TI_POINTER , TI_ARRAY , TI_FUNCTION_POINTER , TI_MEMBER_POINTER , TI_METHOD_POINTER , TI_STRUCT , TI_CLASS , TI_UNION , TI_CONST , TI_EXPRESSION , TI_PARAMETER , TI_SIGNATURE , TI_FUNCTION , TI_BASE , TI_MEMBER , TI_METHOD , TI_CONSTRUCTOR , TI_INSTANCE , TI_TYPEDEF , TI_TYPENAME , TI_CLASSNAME , TI_TEMPLATE , TI_LAST , TI_CHAR = TI_INT8 , TI_FIRST = TI_UNDEF , TI_FIRST_STD_TYPE = TI_BOOL , TI_LAST_STD_TYPE = TI_WSTRING , TI_FIRST_TYPE = TI_VOID , TI_LAST_TYPE = TI_UNION } |
ids for the different types and type constructs More... | |
Functions | |
TypeId | get_new_type_id () |
unsigned int | get_type_size (TypeId tid) |
function that returns the size of a type specified through TypeId | |
TypeId | get_type_id (const std::string &_type_name) |
function that returns the type id of a type name | |
const char * | get_type_name (TypeId tid) |
function that returns the name of a type specified through TypeId | |
bool | is_unsigned_integral (TypeId tid) |
query if a kind is an unsigned integral type | |
bool | is_signed_integral (TypeId tid) |
bool | is_integral (TypeId tid) |
bool | is_floating (TypeId tid) |
bool | is_number (TypeId tid) |
bool | is_fundamental (TypeId tid) |
bool | is_compound (TypeId tid) |
bool | is_type (TypeId tid) |
std::string | extract_type_name (const std::type_info &ti) |
extract a type name from an type_info structure that does not contain the class, struct nor enum keywords | |
Variables | |
struct CGV_API | type_interface |
namespace for templates that provide type information
typedef cgv::data::ref_ptr<const type_interface,true> cgv::type::info::const_type_ptr |
ids for the different types and type constructs
CGV_API std::string cgv::type::info::extract_type_name | ( | const std::type_info & | ti | ) |
extract a type name from an type_info structure that does not contain the class, struct nor enum keywords
extract a type name from a type_info structure that does not contain the class, struct nor enum keywords
Definition at line 9 of file type_name.cxx.
References cgv::utils::replace().
CGV_API TypeId cgv::type::info::get_new_type_id | ( | ) |
Definition at line 10 of file type_id.cxx.
CGV_API TypeId cgv::type::info::get_type_id | ( | const std::string & | _type_name | ) |
function that returns the type id of a type name
Definition at line 53 of file type_id.cxx.
References TI_ARRAY, TI_BASE, TI_BIT, TI_BOOL, TI_CLASS, TI_CLASSNAME, TI_CONST, TI_CONSTRUCTOR, TI_ENUM, TI_EXPRESSION, TI_FLT16, TI_FLT32, TI_FLT64, TI_FUNCTION, TI_FUNCTION_POINTER, TI_INSTANCE, TI_INT16, TI_INT32, TI_INT64, TI_INT8, TI_MEMBER, TI_MEMBER_POINTER, TI_METHOD, TI_METHOD_POINTER, TI_PARAMETER, TI_POINTER, TI_REFERENCE, TI_SIGNATURE, TI_STRING, TI_STRUCT, TI_TEMPLATE, TI_TYPEDEF, TI_TYPENAME, TI_UINT16, TI_UINT32, TI_UINT64, TI_UINT8, TI_UNION, TI_VOID, TI_WCHAR, and TI_WSTRING.
Referenced by cgv::data::component_format::set_component_format().
CGV_API const char * cgv::type::info::get_type_name | ( | TypeId | tid | ) |
function that returns the name of a type specified through TypeId
Definition at line 117 of file type_id.cxx.
Referenced by cgv::type::variant< T >::get(), cgv::render::gl::gl_context::read_frame_buffer(), and cgv::type::variant< T >::set().
CGV_API unsigned int cgv::type::info::get_type_size | ( | TypeId | tid | ) |
function that returns the size of a type specified through TypeId
Definition at line 18 of file type_id.cxx.
References TI_ENUM.
Referenced by cgv::media::volume::volume::add_new_component(), cgv::data::data_view::combine_components(), cgv::render::renderer::draw_impl(), cgv::render::renderer::draw_impl_instanced(), cgv::data::fmt1_compares_better(), cgv::media::volume::volume::get_component_size(), cgv::data::component_format::get_entry_size(), and cgv::media::volume::volume::replace_component().
|
inline |
|
inline |