Public Member Functions | Private Attributes | List of all members
PointerArray< T > Class Template Reference

#include <data_types.h>

Public Member Functions

T ** get () const
 Conversion operator to interface the TripleArray to a T** array. More...
 
 PointerArray (const TripleArray< T > &data)
 Create a temporary array and fill it sequentially with pointers to points. More...
 
 ~PointerArray ()
 Removes the temporary array on destruction (RAII) More...
 

Private Attributes

T ** m_array
 

Detailed Description

template<typename T>
class PointerArray< T >

To simplify T** access patterns for an array of T[3] (points), this RAII- type class helps creating and managing this pointer array on the stack.

Definition at line 195 of file data_types.h.

Constructor & Destructor Documentation

◆ PointerArray()

template<typename T >
PointerArray< T >::PointerArray ( const TripleArray< T > &  data)
inline

Create a temporary array and fill it sequentially with pointers to points.

Definition at line 198 of file data_types.h.

◆ ~PointerArray()

template<typename T >
PointerArray< T >::~PointerArray ( )
inline

Removes the temporary array on destruction (RAII)

Definition at line 206 of file data_types.h.

Member Function Documentation

◆ get()

template<typename T >
T** PointerArray< T >::get ( ) const
inline

Conversion operator to interface the TripleArray to a T** array.

Definition at line 211 of file data_types.h.

Member Data Documentation

◆ m_array

template<typename T >
T** PointerArray< T >::m_array
private

Definition at line 213 of file data_types.h.


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


lvr2
Author(s): Thomas Wiemann , Sebastian Pütz , Alexander Mock , Lars Kiesow , Lukas Kalbertodt , Tristan Igelbrink , Johan M. von Behren , Dominik Feldschnieders , Alexander Löhr
autogenerated on Wed Mar 2 2022 00:37:26