Auxiliary class implementing an accessor for mesh coordinate values stored in the given Vector type, expected to be either GmSingleVector or GmDualVector. Assumes that if Vector is a DualVector, the division between both partitions is ALWAYS on a node border and never inside a node coordinate.
More...
|
|
| GmpNodeDataCoordAccessor (GmValueInfo *coordInfo, Vector< double > &nodeVector, const int &numNodes, const GmLogCategory &logger, UnitConverter *conv, QString desiredUnit) |
| | Constructor. Parameters = coordinates information, data vector and number of nodes. The vector and the number of nodes are references so that the accessor remains valid even if the mesh is changed.
|
| |
|
virtual | ~GmpNodeDataCoordAccessor () |
| | Destructor.
|
| |
| virtual int | size () const |
| |
| virtual bool | isDefValue (int index) const |
| |
| virtual const double * | valueAt (int index, const GmVector *coord) const |
| |
| virtual double | scalarValueAt (int index, const GmVector *coord) const |
| |
| virtual bool | setValue (int index, const double *value) |
| |
| virtual bool | setScalarValue (int index, double value) |
| |
| virtual bool | setValueAsDef (int index) |
| |
| virtual bool | setFunctionValue (int index, GmUserFunction *functionDef) |
| |
| virtual bool | setFunctionValue (int index, GmUserFunctionEvaluator *functionEval) |
| |
|
| GmValueAccessorBase (GmValueInfo *info, const GmLogCategory &logger, UnitConverter *conv, QString desiredUnit) |
| |
| virtual GmValueInfo * | info () const |
| |
| virtual Unit | unit () const |
| |
| virtual bool | hasUnitConversion () const |
| |
| virtual QString | valueStr (int index, bool evalFunctions, bool printDefAsNil, int fieldWidth=0, char format='g', int precision=-1, const GmVector *coord=NULL) const |
| |
| virtual bool | setFunctionFromName (int index, QString userFunctionId, QString &err) |
| |
| virtual bool | setValueFromVariant (int index, const QVariant &v, bool acceptMissingDimension, QString &err) |
| |
| virtual void | setEvalContext (GmValueSetEvalContext *context, bool ownsContext) |
| |
| virtual GmValueSetEvalContext * | evalContext () const |
| |
|
bool | isScalar () const |
| |
|
virtual const double * | defValue () const |
| |
|
int | valueSize () const |
| |
| virtual int | adjustLinearIndex (int index, const GmMesh *m) |
| |
| virtual int | adjustLinearIndex (int index, int firstGhostIndex) |
| |
|
const double * | value (int index) const |
| |
|
double | scalarValue (int index) const |
| |
|
void | matrixValueAt (int index, const GmVector *coord, GmCRMatrix &mat) const |
| |
|
void | matrixValue (int index, GmCRMatrix &mat) const |
| |
|
void | vectorValueAt (int index, const GmVector *coord, GmCRVector &vec) const |
| |
|
void | vectorValue (int index, GmCRVector &vec) const |
| |
|
virtual bool | setScalarValueAtDim (int index, int dim, double val) |
| |
|
bool | setMatrixValue (int index, const GmMatrix &mat) |
| |
|
bool | setVectorValue (int index, const GmVector &vec) |
| |
|
bool | addScalarToValue (int index, double value) |
| |
|
bool | addToValue (int index, const double *val) |
| |
template<template< class > class Vector>
class GmpNodeDataCoordAccessor< Vector >
Auxiliary class implementing an accessor for mesh coordinate values stored in the given Vector type, expected to be either GmSingleVector or GmDualVector. Assumes that if Vector is a DualVector, the division between both partitions is ALWAYS on a node border and never inside a node coordinate.