Geogram Version 1.9.7
A programming library of geometric algorithms
Loading...
Searching...
No Matches
GEO::AttributeStoreCreator Class Referenceabstract

Internal class for creating an AttributeStore from the type name of its elements. More...

#include <geogram/basic/attributes.h>

Inheritance diagram for GEO::AttributeStoreCreator:
GEO::Counted GEO::TypedAttributeStoreCreator< T >

Public Member Functions

 ~AttributeStoreCreator () override
 AttributeStoreCreator destructor.
 
virtual AttributeStorecreate_attribute_store (index_t dimension)=0
 Creates a new attribute store.
 
virtual bool elements_are_trivially_copyable () const =0
 Tests whether elements of this attribute can be trivially copyable.
 
- Public Member Functions inherited from GEO::Counted
void ref () const
 Increments the reference count.
 
void unref () const
 Decrements the reference count.
 
bool is_shared () const
 Check if the object is shared.
 
int nb_refs () const
 Gets the number of references that point to this object.
 

Additional Inherited Members

- Static Public Member Functions inherited from GEO::Counted
static void ref (const Counted *counted)
 Increments the reference count.
 
static void unref (const Counted *counted)
 Decrements the reference count.
 
- Protected Member Functions inherited from GEO::Counted
 Counted ()
 Creates a reference counted object.
 
virtual ~Counted ()
 Destroys a reference counted object.
 

Detailed Description

Internal class for creating an AttributeStore from the type name of its elements.

Definition at line 181 of file attributes.h.

Member Function Documentation

◆ create_attribute_store()

virtual AttributeStore * GEO::AttributeStoreCreator::create_attribute_store ( index_t  dimension)
pure virtual

Creates a new attribute store.

Parameters
[in]dimensionnumber of elements in each item
Returns
a pointer to the newly created AttributeStore

Implemented in GEO::TypedAttributeStoreCreator< T >.

◆ elements_are_trivially_copyable()

virtual bool GEO::AttributeStoreCreator::elements_are_trivially_copyable ( ) const
pure virtual

Tests whether elements of this attribute can be trivially copyable.

Return values
trueif elements can be copied with memcpy and read, saved using fread(), fwrite
falseotherwise

Implemented in GEO::TypedAttributeStoreCreator< T >.


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