Graphite Version 3
An experimental 3D geometry processing program
Loading...
Searching...
No Matches
GEO::geo_register_attribute_type< UT, ST > Class Template Reference

Helper class to register new attribute types. More...

#include <geogram/basic/attributes.h>

Public Member Functions

 geo_register_attribute_type (const std::string &type_name)
 geo_register_attribute_type constructor
 

Detailed Description

template<class UT, class ST = UT>
class GEO::geo_register_attribute_type< UT, ST >

Helper class to register new attribute types.

Template Parameters
UTattribute element type (user)
STattribute element type (storage), default is UT It can be different: for instance, for bool we use Numeric::uint8 (to avoid the std::vector<bool> insanity !!).

Definition at line 909 of file attributes.h.

Constructor & Destructor Documentation

◆ geo_register_attribute_type()

template<class UT , class ST = UT>
GEO::geo_register_attribute_type< UT, ST >::geo_register_attribute_type ( const std::string &  type_name)
inline

geo_register_attribute_type constructor

Parameters
[in]type_namea const reference to a string with the C++ type name.

If the attribute is already registered with the same type_name and same T, then a warning message is issued. If the attribute is already registered with the same type_name but a different T, then an assertion failure is triggered.

Definition at line 920 of file attributes.h.


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