Geogram  Version 1.9.1
A programming library of geometric algorithms
GEO::geo_register_attribute_type< T > 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 More...
 

Detailed Description

template<class T>
class GEO::geo_register_attribute_type< T >

Helper class to register new attribute types.

Template Parameters
Tattribute element type

Definition at line 797 of file attributes.h.

Constructor & Destructor Documentation

◆ geo_register_attribute_type()

template<class T >
GEO::geo_register_attribute_type< T >::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 808 of file attributes.h.


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