15 #include "CeeCore/Base.h" 16 #include "CeeCore/PtrRef.h" 17 #include "CeeCore/RefCountedObject.h" 18 #include "CeeUnstructGrid/CustomResultFunction.h" 25 class DataResultGroup;
26 class DataResultScalar;
27 class DataResultVector;
28 class DataResultDisplacement;
29 class DataResultSymmetricTensor;
35 typedef ResultInfo CustomResultArgument;
52 std::vector<const DataResultScalar*>
scalars;
53 std::vector<const DataResultVector*>
vectors;
98 size_t argumentCount()
const;
101 void setArgumentType(
size_t index,
ResultType resultType);
105 bool hasFunction()
const;
108 virtual bool generate(
const DataSource* dataSource,
const ResultInfo& result,
const std::vector<CustomResultArgument>& arguments,
DataState* state)
const;
111 bool checkArguments(
const std::vector<CustomResultArgument>& arguments)
const;
112 bool computeCustomArguments(
const DataSource* dataSource,
const std::vector<CustomResultArgument>& arguments,
DataState* state)
const;
113 bool gatherInputDataResults(
const DataResultGroup* resultGroup,
const std::vector<CustomResultArgument>& arguments,
size_t partCount,
InputDataResults* inputDataResults)
const;
114 bool gatherInputValuePointers(
const std::vector<CustomResultArgument>& arguments,
size_t partIndex,
const InputDataResults& inputDataResults,
InputValueData* inputValueData)
const;
A class to generate custom results.
Definition: CustomResultGenerator.h:42
DataResultSymmetricTensor * symmetricTensor
The DataResultSymmetricTensor object of the generated output result if it is a symmetric tensor...
Definition: CustomResultGenerator.h:77
The data source of the model. For instance a file interface or custom built by the user...
Definition: DataSource.h:35
Symmetric tensor results for all parts in the geometry.
Definition: DataResultSymmetricTensor.h:29
Namespace cee contains all functionality and structures under the Core component. ...
Definition: AppComponent.cpp:26
DataResultVector * vector
The DataResultVector object of the generated output result if it is a vector, NULL if not...
Definition: CustomResultGenerator.h:75
Result group binding a geometry and results (scalar, vector, displacement and/or transformation) ...
Definition: DataResultGroup.h:33
Simple class containing metadata info for a result.
Definition: ResultInfo.h:34
bool operator!=(const PtrRef< T1 > &a, const PtrRef< T2 > &b)
Returns true if the internal pointers of refs a and b are different.
Definition: PtrRef.h:58
DataResultDisplacement * displacement
The DataResultDisplacement object of the generated output result if it is a displacement, NULL if not.
Definition: CustomResultGenerator.h:76
size_t dimension
The dimension of the output result (1 for scalar, 3 for vector or displacement, 6 for symmetric tenso...
Definition: CustomResultGenerator.h:86
Scalar result for all parts in the geometry.
Definition: DataResultScalar.h:28
bool operator==(const PtrRef< T1 > &a, const PtrRef< T2 > &b)
Returns true if the internal pointers of refs a and b are equal.
Definition: PtrRef.h:57
Base class for all reference counted objects with built-in support for intrusive reference counting...
Definition: RefCountedObject.h:34
A CustomResultFunction produces the output values of a custom result on a given item.
Definition: CustomResultFunction.h:28
Output data result.
Definition: CustomResultGenerator.h:72
Displacements results for all parts in the geometry.
Definition: DataResultDisplacement.h:30
Output value data.
Definition: CustomResultGenerator.h:83
DataResultScalar * scalar
The DataResultScalar object of the generated output result if it is a scalar, NULL if not...
Definition: CustomResultGenerator.h:74
A state contains all data available for one time step, load case or frequency.
Definition: DataState.h:28
ResultType
Different types of results.
Definition: Base.h:90
double * values
The raw pointer to the value array of the output result.
Definition: CustomResultGenerator.h:85
Vector results for all parts in the geometry.
Definition: DataResultVector.h:29
size_t count
The number of items of the output result (nodes, elements, element-nodes)
Definition: CustomResultGenerator.h:87