FEDEM Solver  R8.0
Source code of the dynamics solver
Public Member Functions | Static Public Member Functions | Protected Member Functions | Private Attributes | List of all members
FFrReadOp< RetType > Class Template Reference

Template class representing an operation for reading a result variable. More...

#include <FFrReadOp.H>

Inheritance diagram for FFrReadOp< RetType >:
Inheritance graph
[legend]
Collaboration diagram for FFrReadOp< RetType >:
Collaboration graph
[legend]

Public Member Functions

bool hasData () const override
 Checks if this operation will retun any data,. More...
 
bool evaluate (RetType &value) override
 Invokes the actual read operation. More...
 
bool evaluate (double &value)
 Specialization for double. More...
 
bool evaluate (DoubleVec &value)
 Specialization for std::vector<double>. More...
 
bool evaluate (FaMat33 &value)
 Specialization for FaMat33. More...
 
bool evaluate (FaMat34 &value)
 Specialization for FaMat34. More...
 
bool evaluate (FaVec3 &value)
 Specialization for FaVec3. More...
 
bool evaluate (FFaTensor1 &value)
 Specialization for FFaTensor1. More...
 
bool evaluate (FFaTensor2 &value)
 Specialization for FFaTensor2. More...
 
bool evaluate (FFaTensor3 &value)
 Specialization for FFaTensor3. More...
 
- Public Member Functions inherited from FFaOperation< RetType >
bool invoke (RetType &value)
 Returns current value of this operation. More...
 
virtual void invalidate ()
 Invalidates the cached value of this operation. More...
 
- Public Member Functions inherited from FFaOperationBase
void ref ()
 Increments the reference counter. More...
 
void unref ()
 Decrements the reference counter, and deletes *this if zero. More...
 

Static Public Member Functions

static void create (FFrVariableReference *rdbVar, FFaOperationBase *&created)
 Static method for instantiating a read operation for rdbVar. More...
 
- Static Public Member Functions inherited from FFaOperationBase
static void freeMemPools ()
 Dummy method doing nothing. More...
 

Protected Member Functions

 FFrReadOp (FFrVariableReference *vr)
 The constructor initializes myRdbVar. More...
 
- Protected Member Functions inherited from FFaOperation< RetType >
 FFaOperation ()
 Default constructor. More...
 
virtual ~FFaOperation ()
 Empty destructor. More...
 
- Protected Member Functions inherited from FFaOperationBase
 FFaOperationBase ()
 Default constructor. More...
 
virtual ~FFaOperationBase ()
 Empty destructor. More...
 

Private Attributes

FFrVariableReference * myRdbVar
 The variable to receive the data read. More...
 

Additional Inherited Members

- Protected Attributes inherited from FFaOperation< RetType >
bool IAmEvaluated
 If true, the cached value will be used. More...
 

Detailed Description

template<class RetType>
class FFrReadOp< RetType >

Template class representing an operation for reading a result variable.

Constructor & Destructor Documentation

◆ FFrReadOp()

template<class RetType >
FFrReadOp< RetType >::FFrReadOp ( FFrVariableReference *  vr)
inlineexplicitprotected

The constructor initializes myRdbVar.

Member Function Documentation

◆ create()

template<class RetType >
static void FFrReadOp< RetType >::create ( FFrVariableReference *  rdbVar,
FFaOperationBase *&  created 
)
inlinestatic

Static method for instantiating a read operation for rdbVar.

◆ evaluate() [1/9]

bool FFrReadOp< double >::evaluate ( double &  value)

Specialization for double.

◆ evaluate() [2/9]

bool FFrReadOp< DoubleVec >::evaluate ( DoubleVec &  value)

Specialization for std::vector<double>.

◆ evaluate() [3/9]

bool FFrReadOp< FaMat33 >::evaluate ( FaMat33 &  value)

Specialization for FaMat33.

◆ evaluate() [4/9]

bool FFrReadOp< FaMat34 >::evaluate ( FaMat34 &  value)

Specialization for FaMat34.

◆ evaluate() [5/9]

bool FFrReadOp< FaVec3 >::evaluate ( FaVec3 &  value)

Specialization for FaVec3.

◆ evaluate() [6/9]

bool FFrReadOp< FFaTensor1 >::evaluate ( FFaTensor1 &  value)

Specialization for FFaTensor1.

◆ evaluate() [7/9]

bool FFrReadOp< FFaTensor2 >::evaluate ( FFaTensor2 &  value)

Specialization for FFaTensor2.

◆ evaluate() [8/9]

bool FFrReadOp< FFaTensor3 >::evaluate ( FFaTensor3 &  value)

Specialization for FFaTensor3.

◆ evaluate() [9/9]

template<class RetType >
bool FFrReadOp< RetType >::evaluate ( RetType &  value)
overridevirtual

Invokes the actual read operation.

Implements FFaOperation< RetType >.

◆ hasData()

template<class RetType >
bool FFrReadOp< RetType >::hasData
overridevirtual

Checks if this operation will retun any data,.

Implements FFaOperation< RetType >.

Member Data Documentation

◆ myRdbVar

template<class RetType >
FFrVariableReference* FFrReadOp< RetType >::myRdbVar
private

The variable to receive the data read.


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