ViennaLS
Loading...
Searching...
No Matches
viennals::PointData< T, > Class Template Reference

This class holds data associated with points in space. More...

#include <lsPointData.hpp>

Public Types

typedef std::vector< TScalarDataType
 
typedef std::vector< std::array< T, 3 > > VectorDataType
 

Public Member Functions

void insertNextScalarData (const ScalarDataType &scalars, std::string label="Scalars")
 insert new scalar data array
 
void insertNextScalarData (ScalarDataType &&scalars, std::string label="Scalars")
 insert new scalar data array
 
void insertNextVectorData (const VectorDataType &vectors, std::string label="Vectors")
 insert new vector data array
 
void insertNextVectorData (VectorDataType &&vectors, std::string label="Vectors")
 insert new vector data array
 
unsigned getScalarDataSize () const
 get the number of different scalar data arrays saved
 
unsigned getVectorDataSize () const
 get the number of different vector data arrays saved
 
ScalarDataTypegetScalarData (int index)
 
const ScalarDataTypegetScalarData (int index) const
 
ScalarDataTypegetScalarData (std::string searchLabel, bool noWarning=false)
 
const ScalarDataTypegetScalarData (std::string searchLabel, bool noWarning=false) const
 
int getScalarDataIndex (std::string searchLabel) const
 
std::string getScalarDataLabel (int index) const
 
void setScalarDataLabel (int index, std::string newLabel)
 
void eraseScalarData (int index)
 Delete the scalar data at index.
 
VectorDataTypegetVectorData (int index)
 
const VectorDataTypegetVectorData (int index) const
 
VectorDataTypegetVectorData (std::string searchLabel, bool noWarning=false)
 
const VectorDataTypegetVectorData (std::string searchLabel, bool noWarning=false) const
 
int getVectorDataIndex (std::string searchLabel) const
 
std::string getVectorDataLabel (int index) const
 
void setVectorDataLabel (int index, std::string newLabel)
 
void eraseVectorData (int index)
 Delete the vector data at index.
 
void append (const PointData &passedData)
 Append the passed PointData to this one.
 
void translateFromData (const PointData &source, const std::vector< unsigned > &indices)
 Add data in the passed source pointData into this data according to the indices passed. The index of the indices vector corresponds to the index of this data, while the values of indices correspond to the index in source.
 
void translateFromMultiData (const PointData &source, const std::vector< std::vector< unsigned > > &indicesVector)
 Same as translateFromData, but the indices are given as a vector, as is the case when collecting indices during parallel algorithms.
 
void clear ()
 Delete all data stored in this object.
 
bool empty ()
 Return whether this object is empty.
 
std::ostream & serialize (std::ostream &stream)
 Serialize PointData into a binary stream.
 
std::istream & deserialize (std::istream &stream)
 Deserialize PointData from a binary stream.
 

Detailed Description

template<class T = double, lsConcepts::IsFloatingPoint< T > = lsConcepts::assignable>
class viennals::PointData< T, >

This class holds data associated with points in space.

Member Typedef Documentation

◆ ScalarDataType

template<class T = double, lsConcepts::IsFloatingPoint< T > = lsConcepts::assignable>
std::vector<T> viennals::PointData< T, >::ScalarDataType

◆ VectorDataType

template<class T = double, lsConcepts::IsFloatingPoint< T > = lsConcepts::assignable>
std::vector<std::array<T, 3> > viennals::PointData< T, >::VectorDataType

Member Function Documentation

◆ append()

template<class T = double, lsConcepts::IsFloatingPoint< T > = lsConcepts::assignable>
void viennals::PointData< T, >::append ( const PointData< T, > & passedData)
inline

Append the passed PointData to this one.

◆ clear()

template<class T = double, lsConcepts::IsFloatingPoint< T > = lsConcepts::assignable>
void viennals::PointData< T, >::clear ( )
inline

Delete all data stored in this object.

◆ deserialize()

template<class T = double, lsConcepts::IsFloatingPoint< T > = lsConcepts::assignable>
std::istream & viennals::PointData< T, >::deserialize ( std::istream & stream)
inline

Deserialize PointData from a binary stream.

◆ empty()

template<class T = double, lsConcepts::IsFloatingPoint< T > = lsConcepts::assignable>
bool viennals::PointData< T, >::empty ( )
inline

Return whether this object is empty.

◆ eraseScalarData()

template<class T = double, lsConcepts::IsFloatingPoint< T > = lsConcepts::assignable>
void viennals::PointData< T, >::eraseScalarData ( int index)
inline

Delete the scalar data at index.

◆ eraseVectorData()

template<class T = double, lsConcepts::IsFloatingPoint< T > = lsConcepts::assignable>
void viennals::PointData< T, >::eraseVectorData ( int index)
inline

Delete the vector data at index.

◆ getScalarData() [1/4]

template<class T = double, lsConcepts::IsFloatingPoint< T > = lsConcepts::assignable>
ScalarDataType * viennals::PointData< T, >::getScalarData ( int index)
inline

◆ getScalarData() [2/4]

template<class T = double, lsConcepts::IsFloatingPoint< T > = lsConcepts::assignable>
const ScalarDataType * viennals::PointData< T, >::getScalarData ( int index) const
inline

◆ getScalarData() [3/4]

template<class T = double, lsConcepts::IsFloatingPoint< T > = lsConcepts::assignable>
ScalarDataType * viennals::PointData< T, >::getScalarData ( std::string searchLabel,
bool noWarning = false )
inline

◆ getScalarData() [4/4]

template<class T = double, lsConcepts::IsFloatingPoint< T > = lsConcepts::assignable>
const ScalarDataType * viennals::PointData< T, >::getScalarData ( std::string searchLabel,
bool noWarning = false ) const
inline

◆ getScalarDataIndex()

template<class T = double, lsConcepts::IsFloatingPoint< T > = lsConcepts::assignable>
int viennals::PointData< T, >::getScalarDataIndex ( std::string searchLabel) const
inline

◆ getScalarDataLabel()

template<class T = double, lsConcepts::IsFloatingPoint< T > = lsConcepts::assignable>
std::string viennals::PointData< T, >::getScalarDataLabel ( int index) const
inline

◆ getScalarDataSize()

template<class T = double, lsConcepts::IsFloatingPoint< T > = lsConcepts::assignable>
unsigned viennals::PointData< T, >::getScalarDataSize ( ) const
inline

get the number of different scalar data arrays saved

◆ getVectorData() [1/4]

template<class T = double, lsConcepts::IsFloatingPoint< T > = lsConcepts::assignable>
VectorDataType * viennals::PointData< T, >::getVectorData ( int index)
inline

◆ getVectorData() [2/4]

template<class T = double, lsConcepts::IsFloatingPoint< T > = lsConcepts::assignable>
const VectorDataType * viennals::PointData< T, >::getVectorData ( int index) const
inline

◆ getVectorData() [3/4]

template<class T = double, lsConcepts::IsFloatingPoint< T > = lsConcepts::assignable>
VectorDataType * viennals::PointData< T, >::getVectorData ( std::string searchLabel,
bool noWarning = false )
inline

◆ getVectorData() [4/4]

template<class T = double, lsConcepts::IsFloatingPoint< T > = lsConcepts::assignable>
const VectorDataType * viennals::PointData< T, >::getVectorData ( std::string searchLabel,
bool noWarning = false ) const
inline

◆ getVectorDataIndex()

template<class T = double, lsConcepts::IsFloatingPoint< T > = lsConcepts::assignable>
int viennals::PointData< T, >::getVectorDataIndex ( std::string searchLabel) const
inline

◆ getVectorDataLabel()

template<class T = double, lsConcepts::IsFloatingPoint< T > = lsConcepts::assignable>
std::string viennals::PointData< T, >::getVectorDataLabel ( int index) const
inline

◆ getVectorDataSize()

template<class T = double, lsConcepts::IsFloatingPoint< T > = lsConcepts::assignable>
unsigned viennals::PointData< T, >::getVectorDataSize ( ) const
inline

get the number of different vector data arrays saved

◆ insertNextScalarData() [1/2]

template<class T = double, lsConcepts::IsFloatingPoint< T > = lsConcepts::assignable>
void viennals::PointData< T, >::insertNextScalarData ( const ScalarDataType & scalars,
std::string label = "Scalars" )
inline

insert new scalar data array

◆ insertNextScalarData() [2/2]

template<class T = double, lsConcepts::IsFloatingPoint< T > = lsConcepts::assignable>
void viennals::PointData< T, >::insertNextScalarData ( ScalarDataType && scalars,
std::string label = "Scalars" )
inline

insert new scalar data array

◆ insertNextVectorData() [1/2]

template<class T = double, lsConcepts::IsFloatingPoint< T > = lsConcepts::assignable>
void viennals::PointData< T, >::insertNextVectorData ( const VectorDataType & vectors,
std::string label = "Vectors" )
inline

insert new vector data array

◆ insertNextVectorData() [2/2]

template<class T = double, lsConcepts::IsFloatingPoint< T > = lsConcepts::assignable>
void viennals::PointData< T, >::insertNextVectorData ( VectorDataType && vectors,
std::string label = "Vectors" )
inline

insert new vector data array

◆ serialize()

template<class T = double, lsConcepts::IsFloatingPoint< T > = lsConcepts::assignable>
std::ostream & viennals::PointData< T, >::serialize ( std::ostream & stream)
inline

Serialize PointData into a binary stream.

◆ setScalarDataLabel()

template<class T = double, lsConcepts::IsFloatingPoint< T > = lsConcepts::assignable>
void viennals::PointData< T, >::setScalarDataLabel ( int index,
std::string newLabel )
inline

◆ setVectorDataLabel()

template<class T = double, lsConcepts::IsFloatingPoint< T > = lsConcepts::assignable>
void viennals::PointData< T, >::setVectorDataLabel ( int index,
std::string newLabel )
inline

◆ translateFromData()

template<class T = double, lsConcepts::IsFloatingPoint< T > = lsConcepts::assignable>
void viennals::PointData< T, >::translateFromData ( const PointData< T, > & source,
const std::vector< unsigned > & indices )
inline

Add data in the passed source pointData into this data according to the indices passed. The index of the indices vector corresponds to the index of this data, while the values of indices correspond to the index in source.

◆ translateFromMultiData()

template<class T = double, lsConcepts::IsFloatingPoint< T > = lsConcepts::assignable>
void viennals::PointData< T, >::translateFromMultiData ( const PointData< T, > & source,
const std::vector< std::vector< unsigned > > & indicesVector )
inline

Same as translateFromData, but the indices are given as a vector, as is the case when collecting indices during parallel algorithms.


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