RINGMesh  Version 5.0.0
A programming library for geological model meshes
RINGMesh::AttributeVector< T > Class Template Reference

Vector of pointers to Geogram attributes. More...

#include <geogram_extension.h>

Inheritance diagram for RINGMesh::AttributeVector< T >:

Public Types

using base_class = std::vector< GEO::Attribute< T > *>
 

Public Member Functions

 AttributeVector ()=default
 
 AttributeVector (index_t size)
 
void bind_one_attribute (index_t i, GEO::AttributesManager &manager, const std::string &attribute_name)
 
GEO::Attribute< T > & operator[] (index_t i)
 
const GEO::Attribute< T > & operator[] (index_t i) const
 
bool is_attribute_bound (index_t i) const
 
void unbind (index_t i)
 
 ~AttributeVector ()
 

Private Member Functions

 ringmesh_disable_copy_and_move (AttributeVector)
 

Detailed Description

template<typename T>
class RINGMesh::AttributeVector< T >

Vector of pointers to Geogram attributes.

Note
Necessary since one cannot create, vectors of Geogram attributes does not compile, because #$# (no idea) [JP]

Definition at line 143 of file geogram_extension.h.

Member Typedef Documentation

◆ base_class

template<typename T >
using RINGMesh::AttributeVector< T >::base_class = std::vector< GEO::Attribute< T >* >

Definition at line 148 of file geogram_extension.h.

Constructor & Destructor Documentation

◆ AttributeVector() [1/2]

template<typename T >
RINGMesh::AttributeVector< T >::AttributeVector ( )
default

◆ AttributeVector() [2/2]

template<typename T >
RINGMesh::AttributeVector< T >::AttributeVector ( index_t  size)
inlineexplicit

Definition at line 150 of file geogram_extension.h.

◆ ~AttributeVector()

template<typename T >
RINGMesh::AttributeVector< T >::~AttributeVector ( )
inline

Definition at line 188 of file geogram_extension.h.

Member Function Documentation

◆ bind_one_attribute()

template<typename T >
void RINGMesh::AttributeVector< T >::bind_one_attribute ( index_t  i,
GEO::AttributesManager &  manager,
const std::string &  attribute_name 
)
inline

Definition at line 154 of file geogram_extension.h.

◆ is_attribute_bound()

template<typename T >
bool RINGMesh::AttributeVector< T >::is_attribute_bound ( index_t  i) const
inline

Definition at line 172 of file geogram_extension.h.

◆ operator[]() [1/2]

template<typename T >
GEO::Attribute< T >& RINGMesh::AttributeVector< T >::operator[] ( index_t  i)
inline

Definition at line 162 of file geogram_extension.h.

◆ operator[]() [2/2]

template<typename T >
const GEO::Attribute< T >& RINGMesh::AttributeVector< T >::operator[] ( index_t  i) const
inline

Definition at line 167 of file geogram_extension.h.

◆ ringmesh_disable_copy_and_move()

template<typename T >
RINGMesh::AttributeVector< T >::ringmesh_disable_copy_and_move ( AttributeVector< T >  )
private

◆ unbind()

template<typename T >
void RINGMesh::AttributeVector< T >::unbind ( index_t  i)
inline

Definition at line 177 of file geogram_extension.h.


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