![]() |
GemaCoreLib
The GeMA Core library
|
The GmContactBoundaryConditionAccessor class is a proxy object to a value accesor implementing a more convenient interface to retrieve / store values for ContactBoundaryCondition attributes. More...
#include <gmContactBoundaryConditionAccessor.h>


Public Member Functions | |
| GmContactBoundaryConditionAccessor (GmValueAccessor *ac, const GmContactBoundaryCondition *bc) | |
| Constructor. Takes ownership of the accessor. | |
| const double * | valueAt (int contactIndex, int bcIndex, int listIndex, const GmVector *coord) const |
| const double * | value (int contactIndex, int bcIndex, int listIndex) const |
| double | scalarValueAt (int contactIndex, int bcIndex, int listIndex, const GmVector *coord) const |
| double | scalarValue (int contactIndex, int bcIndex, int listIndex) const |
| void | matrixValueAt (int contactIndex, int bcIndex, int listIndex, const GmVector *coord, GmCRMatrix &mat) const |
| void | matrixValue (int contactIndex, int bcIndex, int listIndex, GmCRMatrix &mat) const |
| void | vectorValueAt (int contactIndex, int bcIndex, int listIndex, const GmVector *coord, GmCRVector &vec) const |
| void | vectorValue (int contactIndex, int bcIndex, int listIndex, GmCRVector &vec) const |
| QString | valueStr (int contactIndex, int bcIndex, int listIndex, bool evalFunctions, bool printDefAsNil, int fieldWidth=0, char format='g', int precision=-1, const GmVector *coord=NULL) const |
Public Member Functions inherited from GmBcAccessorProxy | |
| GmBcAccessorProxy (GmValueAccessor *ac) | |
| bool | setValue (int bcIndex, const double *value) |
| bool | setScalarValue (int bcIndex, double value) |
| bool | setScalarValueAtDim (int bcIndex, int dim, double value) |
| bool | setValueAsDef (int bcIndex) |
| bool | setFunctionValue (int bcIndex, GmUserFunction *functionDef) |
| bool | setFunctionValue (int bcIndex, GmUserFunctionEvaluator *functionEval) |
| bool | setFunctionFromName (int bcIndex, QString userFunctionId, QString &err) |
| bool | setValueFromVariant (int bcIndex, const QVariant &v, bool acceptMissingDimension, QString &err) |
| bool | isDefValue (int bcIndex) const |
| bool | isFunction (int bcIndex) const |
| QString | functionId (int bcIndex) const |
Public Member Functions inherited from GmAccessorProxy | |
| GmAccessorProxy (GmValueAccessor *ac) | |
| Constructor. Takes ownership of the accessor. | |
| virtual | ~GmAccessorProxy () |
| Virtual destructor. Disposes the wrapped accessor. | |
| int | size () const |
| GmValueInfo * | info () const |
| bool | isScalar () const |
| Unit | unit () const |
| int | valueSize () const |
| const double * | defValue () const |
Protected Member Functions | |
| int | dataIndex (int bcIndex, int listIndex) const |
Protected Member Functions inherited from GmBcAccessorProxy | |
| void | saveDataInContext (int dataIndex) const |
| A function that given a node / cell index, saves it in the context. | |
Protected Member Functions inherited from GmAccessorProxy | |
| double | convertToAccessorUnit (double val) const |
| An utility function that given a value, converts it to the accessor unit. If no conversion is needed, returns val. | |
| const double * | convertToAccessorUnit (const double *p) const |
| An utility function that given a pointer to the stored data, converts the value to the accessor unit and returns a pointer to the internal buffer used to store the converted value. If no conversion is needed, returns p. | |
| void | convertFromAccessorUnit (double val, double *dst) const |
| Copies the value given by val into the area pointed to by dst, converting units if needed. | |
| void | convertFromAccessorUnit (const double *val, double *dst) const |
| Copies the values given by val into the area pointed to by dst, converting units if needed. | |
Private Attributes | |
| const GmContactBoundaryCondition * | _bc |
| The contact boundary condition that owns the value accessor used to translate indices. | |
Additional Inherited Members | |
Protected Attributes inherited from GmAccessorProxy | |
| GmValueAccessor * | _ac |
The GmContactBoundaryConditionAccessor class is a proxy object to a value accesor implementing a more convenient interface to retrieve / store values for ContactBoundaryCondition attributes.
1.8.15