This is a helper class for accessing elemental data. More...
#include <Element_accessors.h>
Public Types | |
typedef unsigned int | Size |
Public Member Functions | |
Element_vectors_k_const () | |
Default constructor. More... | |
void | set (const Value *p, Element_node_enumerator &ene, int strd) |
initialize the accessor with a pointer and a specific stride. More... | |
void | set (const Attribute *a, Element_node_enumerator &ene) |
initialize the accessor from an attribute assiciated with a pane. More... | |
const Value & | operator() (int i, int j) const |
const Value & | operator() (int i) const |
const Value & | operator[] (int i) const |
Protected Attributes | |
const Attribute * | _attr |
union { | |
int _offset | |
const Value * _vs | |
}; | |
This is a helper class for accessing elemental data.
Definition at line 318 of file Element_accessors.h.
typedef unsigned int Size |
Definition at line 320 of file Element_accessors.h.
|
inline |
|
inline |
Definition at line 350 of file Element_accessors.h.
References Element_vectors_k_const< Value >::_attr, Element_vectors_k_const< Value >::_offset, Element_vectors_k_const< Value >::_vs, COM_assertion, j, and Attribute::size_of_components().
Referenced by Element_vectors_k< Value >::operator()(), Element_vectors_k_const< Value >::operator[](), and Element_vectors_k< Value >::operator[]().
|
inline |
Definition at line 361 of file Element_accessors.h.
References Element_vectors_k_const< Value >::operator()().
Referenced by Element_vectors_k_const< Value >::operator()().
|
inline |
Definition at line 363 of file Element_accessors.h.
References Element_vectors_k_const< Value >::operator()().
|
inline |
initialize the accessor with a pointer and a specific stride.
Definition at line 326 of file Element_accessors.h.
References Element_vectors_k_const< Value >::_attr, Element_vectors_k_const< Value >::_vs, and Element_node_enumerator::id().
Referenced by Window_manifold_2::elements_to_nodes(), and Element_vectors_k< Value >::set().
|
inline |
initialize the accessor from an attribute assiciated with a pane.
Definition at line 332 of file Element_accessors.h.
References Element_vectors_k_const< Value >::_attr, Element_vectors_k_const< Value >::_offset, Element_vectors_k_const< Value >::_vs, COM_assertion, COM_get_sizeof(), Attribute::data_type(), Pane::id(), Element_node_enumerator::id(), Attribute::is_elemental(), Attribute::pane(), Attribute::pointer(), Attribute::size_of_components(), and Attribute::stride().
union { ... } |
|
protected |
Definition at line 366 of file Element_accessors.h.
Referenced by Element_vectors_k_const< Value >::operator()(), and Element_vectors_k_const< Value >::set().
int _offset |
Definition at line 368 of file Element_accessors.h.
Referenced by Element_vectors_k_const< Value >::operator()(), and Element_vectors_k_const< Value >::set().
const Value* _vs |
Definition at line 369 of file Element_accessors.h.
Referenced by Element_vectors_k_const< Value >::operator()(), and Element_vectors_k_const< Value >::set().