ansys::dpf::OperatorMain Class Reference
Last update: 16.07.2025#include <dpf_api.h>
Public Member Functions | |
| OperatorMain (opaque::DpfOperatorData *) | |
| OperatorMain (OperatorMain const &)=delete | |
| OperatorMain (OperatorMain &&)=delete | |
| OperatorMain & | operator= (OperatorMain const &)=delete |
| OperatorMain & | operator= (OperatorMain &&)=delete |
| void | setSuccessed () |
| void | setFailed () |
| dp_int | getNumInputs () |
| Field | getInputField (dp_index pin_index) |
| void | setOutput (dp_index pin_index, Field &f) |
| DataSources | getInputDataSources (dp_index pin_index) |
| void | setOutput (dp_index pin_index, DataSources &f) |
| FieldsContainer | getInputFieldsContainer (dp_index pin_index) |
| void | setOutput (dp_index pin_index, FieldsContainer &f) |
| Scoping | getInputScoping (dp_index pin_index) |
| void | setOutput (dp_index pin_index, Scoping &f) |
| ScopingsContainer | getInputScopingsContainer (dp_index pin_index) |
| void | setOutput (dp_index pin_index, ScopingsContainer &f) |
| MeshedRegion | getInputMeshedRegion (dp_index pin_index) |
| void | setOutput (dp_index pin_index, MeshedRegion &f) |
| TimeFreqSupport | getInputTimeFreqSupport (dp_index pin_index) |
| void | setOutput (dp_index pin_index, TimeFreqSupport &f) |
| MeshesContainer | getInputMeshesContainer (dp_index pin_index) |
| void | setOutput (dp_index pin_index, MeshesContainer &f) |
| Support | getInputSupport (dp_index pin_index) |
| void | setOutput (dp_index pin_index, Support &f) |
| StringField | getInputStringField (dp_index pin_index) |
| void | setOutput (dp_index pin_index, StringField &f) |
| CustomTypeField | getInputCustomTypeField (dp_index pin_index) |
| void | setOutput (dp_index pin_index, CustomTypeField &f) |
| Any | getInputAsAny (dp_index pin_index) |
| void | setOutput (dp_index pin_index, Any &f) |
| Streams | getInputStreams (dp_index pin_index) |
| Workflow | getInputWorkflow (dp_index pin_index) |
| Operator | getInputOperator (dp_index pin_index) |
| RemoteWorkflow | getInputRemoteWorkflow (dp_index pin_index) |
| RemoteOperator | getInputRemoteOperator (dp_index pin_index) |
| void | setOutput (dp_index pin_index, Streams &f) |
| LabelSpace | getInputLabelSpace (dp_index pin_index) |
| PropertyField | getInputPropertyField (dp_index pin_index) |
| GenericDataContainer | getInputGenericDataContainer (dp_index pin_index) |
| void | setOutput (dp_index pin_index, GenericDataContainer &f) |
| void | setOutput (dp_index pin_index, PropertyField &f) |
| void | setOutput (dp_index pin_index, Workflow &f) |
| void | setOutput (dp_index pin_index, MeshInfo &f) |
| void | setOutput (dp_index pin_index, ResultInfo &f) |
| DataTree | getInputDataTree (dp_index pin_index) |
| void | setOutput (dp_index pin_index, DataTree &f) |
| std::string | getInputString (dp_index pin_index) |
| void | setOutput (dp_index pin_index, std::string const &f) |
| dp_int | getInputInteger (dp_index pin_index) |
| void | setOutput (dp_index pin_index, dp_int f) |
| dp_double | getInputDouble (dp_index pin_index) |
| void | setOutput (dp_index pin_index, dp_double f) |
| long long int | getInputLongLong (dp_index pin_index) |
| void | setOutput (dp_index pin_index, long long int f) |
| std::vector< int > | getInputVecInt (dp_index pin_index) |
| std::vector< double > | getInputVecDouble (dp_index pin_index) |
| std::vector< std::string > | getInputVecString (dp_index pin_index) |
| void | setOutput (dp_index pin_index, std::vector< int > const &out) |
| void | setOutput (dp_index pin_index, std::vector< double > const &out) |
| void | setOutput (dp_index pin_index, std::vector< std::string > const &out) |
| bool | getInputBool (dp_index pin_index) |
| void | setOutput (dp_index pin_index, bool f) |
| void | setOutput (dp_index pin_index, RemoteWorkflow f) |
| void | setOutput (dp_index pin_index, RemoteOperator f) |
| void | setOutput (dp_index pin_index, Operator f) |
| void | delegateRun (Operator op, bool forwardInputs=true) |
| template<typename DataT > | |
| DataT | getInputCustom (dp_index pin_index) |
| template<typename DataT > | |
| void | setOutputCustom (dp_index pin_index, DataT d) |
| @ details Set typed data for given output pin. More... | |
| template<typename DataT > | |
| bool | testInput (dp_int pin_index) |
| bool | hasInput (dp_int pin_index) |
| void | connectAllInputs (ansys::dpf::Operator &op) |
| std::string | operatorName () const |
| OperatorConfig | config () const |
Detailed Description
To be used in order to write external operators
Member Function Documentation
◆ config()
| OperatorConfig ansys::dpf::OperatorMain::config | ( | ) | const |
- Returns
- The Operator Config used to create this operator.
◆ connectAllInputs()
| void ansys::dpf::OperatorMain::connectAllInputs | ( | ansys::dpf::Operator & | op | ) |
◆ delegateRun()
| void ansys::dpf::OperatorMain::delegateRun | ( | Operator | op, |
| bool | forwardInputs = true |
||
| ) |
run the input op and take its state and outputs as his
- Parameters
-
[in] op Operator to use. [in] forwardInputs Choose if the input definition of this operator should be given to op.
◆ getInputAsAny()
- Returns
- Any for given input pin.
- Parameters
-
[in] pin_index Input pin for which to get valuer.
◆ getInputBool()
| bool ansys::dpf::OperatorMain::getInputBool | ( | dp_index | pin_index | ) |
- Returns
- Boolean value for given input pin.
- Parameters
-
[in] pin_index Input pin for which to get value.
◆ getInputCustom()
|
inline |
- Returns
- Typed data for given input pin.
- Parameters
-
[in] pin_index Input pin for which to get value.
◆ getInputCustomTypeField()
| CustomTypeField ansys::dpf::OperatorMain::getInputCustomTypeField | ( | dp_index | pin_index | ) |
- Returns
- CustomTypeField for given input pin.
- Parameters
-
[in] pin_index Input pin for which to get value.
◆ getInputDataSources()
| DataSources ansys::dpf::OperatorMain::getInputDataSources | ( | dp_index | pin_index | ) |
- Returns
- Data sources for input pin.
- Parameters
-
[in] pin_index Input pin for which to get value.
◆ getInputDataTree()
- Returns
- DataTree for given input pin.
- Parameters
-
[in] pin_index Input pin for which to get value.
◆ getInputDouble()
- Returns
- Double value for given input pin.
- Parameters
-
[in] pin_index Input pin for which to get value.
◆ getInputField()
- Returns
- Input field given by pin index.
- Parameters
-
[in] pin_index Input pin for which to get value.
◆ getInputFieldsContainer()
| FieldsContainer ansys::dpf::OperatorMain::getInputFieldsContainer | ( | dp_index | pin_index | ) |
- Returns
- Fields container for given input pin.
- Parameters
-
[in] pin_index Input pin for which to get value.
◆ getInputGenericDataContainer()
| GenericDataContainer ansys::dpf::OperatorMain::getInputGenericDataContainer | ( | dp_index | pin_index | ) |
- Returns
- GenericDataContainer for given input pin.
- Parameters
-
[in] pin_index Input pin for which to get value.
◆ getInputInteger()
- Returns
- Integer value for given input pin.
- Parameters
-
[in] pin_index Input pin for which to get value.
◆ getInputLabelSpace()
| LabelSpace ansys::dpf::OperatorMain::getInputLabelSpace | ( | dp_index | pin_index | ) |
- Returns
- Streams for given input pin.
- Parameters
-
[in] pin_index Input pin for which to get value.
◆ getInputLongLong()
| long long int ansys::dpf::OperatorMain::getInputLongLong | ( | dp_index | pin_index | ) |
- Returns
- Long long int value for given input pin.
- Parameters
-
[in] pin_index Input pin for which to get value.
◆ getInputMeshedRegion()
| MeshedRegion ansys::dpf::OperatorMain::getInputMeshedRegion | ( | dp_index | pin_index | ) |
- Returns
- Meshed region for given input pin.
- Parameters
-
[in] pin_index Input pin for which to get value.
◆ getInputMeshesContainer()
| MeshesContainer ansys::dpf::OperatorMain::getInputMeshesContainer | ( | dp_index | pin_index | ) |
- Returns
- Meshes container for given input pin.
- Parameters
-
[in] pin_index Input pin for which to get value.
◆ getInputOperator()
- Returns
- Operator for given input pin.
- Parameters
-
[in] pin_index Input pin for which to get value.
◆ getInputPropertyField()
| PropertyField ansys::dpf::OperatorMain::getInputPropertyField | ( | dp_index | pin_index | ) |
- Returns
- Property field for given input pin.
- Parameters
-
[in] pin_index Input pin for which to get value.
◆ getInputRemoteOperator()
| RemoteOperator ansys::dpf::OperatorMain::getInputRemoteOperator | ( | dp_index | pin_index | ) |
- Returns
- RemoteOperator for given input pin.
- Parameters
-
[in] pin_index Input pin for which to get value.
◆ getInputRemoteWorkflow()
| RemoteWorkflow ansys::dpf::OperatorMain::getInputRemoteWorkflow | ( | dp_index | pin_index | ) |
- Returns
- RemoteWorkflow for given input pin.
- Parameters
-
[in] pin_index Input pin for which to get value.
◆ getInputScoping()
- Returns
- Scoping for given input pin.
- Parameters
-
[in] pin_index Input pin for which to get value.
◆ getInputScopingsContainer()
| ScopingsContainer ansys::dpf::OperatorMain::getInputScopingsContainer | ( | dp_index | pin_index | ) |
- Returns
- Scopings container for given input pin.
- Parameters
-
[in] pin_index Input pin for which to get value.
◆ getInputStreams()
- Returns
- Streams for given input pin.
- Parameters
-
[in] pin_index Input pin for which to get value.
◆ getInputString()
| std::string ansys::dpf::OperatorMain::getInputString | ( | dp_index | pin_index | ) |
- Returns
- String value for given input pin.
- Parameters
-
[in] pin_index Input pin for which to get value.
◆ getInputStringField()
| StringField ansys::dpf::OperatorMain::getInputStringField | ( | dp_index | pin_index | ) |
- Returns
- StringField for given input pin.
- Parameters
-
[in] pin_index Input pin for which to get value.
◆ getInputSupport()
- Returns
- Support for given input pin.
- Parameters
-
[in] pin_index Input pin for which to get value.
◆ getInputTimeFreqSupport()
| TimeFreqSupport ansys::dpf::OperatorMain::getInputTimeFreqSupport | ( | dp_index | pin_index | ) |
- Returns
- Time frequency support for given input pin.
- Parameters
-
[in] pin_index Input pin for which to get value.
◆ getInputVecDouble()
| std::vector< double > ansys::dpf::OperatorMain::getInputVecDouble | ( | dp_index | pin_index | ) |
- Returns
- Vector of doubles for given input pin.
- Parameters
-
[in] pin_index Input pin for which to get value.
◆ getInputVecInt()
| std::vector< int > ansys::dpf::OperatorMain::getInputVecInt | ( | dp_index | pin_index | ) |
- Returns
- Vector of integers for given input pin.
- Parameters
-
[in] pin_index Input pin for which to get value.
◆ getInputVecString()
| std::vector< std::string > ansys::dpf::OperatorMain::getInputVecString | ( | dp_index | pin_index | ) |
- Returns
- Vector of strings for given input pin.
- Parameters
-
[in] pin_index Input pin for which to get value.
◆ getInputWorkflow()
- Returns
- Workflow for given input pin.
- Parameters
-
[in] pin_index Input pin for which to get value.
◆ getNumInputs()
| dp_int ansys::dpf::OperatorMain::getNumInputs | ( | ) |
- Returns
- Number of operator input pins.
◆ hasInput()
| bool ansys::dpf::OperatorMain::hasInput | ( | dp_int | pin_index | ) |
- Returns
- Indication that input pin exists.
- Parameters
-
[in] pin_index Input pin for which to check data type.
◆ operatorName()
| std::string ansys::dpf::OperatorMain::operatorName | ( | ) | const |
- Returns
- The Operator name used to record.
◆ setFailed()
| void ansys::dpf::OperatorMain::setFailed | ( | ) |
Set state of operator to fail.
◆ setOutput() [1/30]
◆ setOutput() [2/30]
| void ansys::dpf::OperatorMain::setOutput | ( | dp_index | pin_index, |
| bool | f | ||
| ) |
Set boolean value for given output pin.
- Parameters
-
[in] pin_index Output pin for which to set value. [in] f Boolean value to assign to output pin.
◆ setOutput() [3/30]
| void ansys::dpf::OperatorMain::setOutput | ( | dp_index | pin_index, |
| CustomTypeField & | f | ||
| ) |
Set CustomTypeField object for given output pin with its real type.
- Parameters
-
[in] pin_index Output pin for which to set value. [in] f CustomTypeField to assign to output pin.
◆ setOutput() [4/30]
| void ansys::dpf::OperatorMain::setOutput | ( | dp_index | pin_index, |
| DataSources & | f | ||
| ) |
Set data sources for given output pin.
- Parameters
-
[in] pin_index Output pin for which to set value. [in] f Data sources to assign to output pin.
◆ setOutput() [5/30]
Set DataTree for given output pin.
- Parameters
-
[in] pin_index Output pin for which to set value. [in] f Meshes container to assign to output pin.
◆ setOutput() [6/30]
Set double value for given output pin.
- Parameters
-
[in] pin_index Output pin for which to set value. [in] f Double value to assign to output pin.
◆ setOutput() [7/30]
Set integer value for given output pin.
- Parameters
-
[in] pin_index Output pin for which to set value. [in] f Integer value to assign to output pin.
◆ setOutput() [8/30]
Set field for output pin.
- Parameters
-
[in] pin_index Output pin for which to set value. [in] f Field to assign to output pin.
◆ setOutput() [9/30]
| void ansys::dpf::OperatorMain::setOutput | ( | dp_index | pin_index, |
| FieldsContainer & | f | ||
| ) |
Set fields container for given output pin.
- Parameters
-
[in] pin_index Output pin for which to set value. [in] f Fields container to assign to output pin.
◆ setOutput() [10/30]
| void ansys::dpf::OperatorMain::setOutput | ( | dp_index | pin_index, |
| GenericDataContainer & | f | ||
| ) |
Set GenericDataContainer for given output pin.
- Parameters
-
[in] pin_index Output pin for which to set value. [in] f GenericDataContainer to assign to output pin.
◆ setOutput() [11/30]
| void ansys::dpf::OperatorMain::setOutput | ( | dp_index | pin_index, |
| long long int | f | ||
| ) |
Set long long int value for given output pin.
- Parameters
-
[in] pin_index Output pin for which to set value. [in] f Long long int value to assign to output pin.
◆ setOutput() [12/30]
| void ansys::dpf::OperatorMain::setOutput | ( | dp_index | pin_index, |
| MeshedRegion & | f | ||
| ) |
Set meshed region for given output pin.
- Parameters
-
[in] pin_index Output pin for which to set value. [in] f Meshed region to assign to output pin.
◆ setOutput() [13/30]
| void ansys::dpf::OperatorMain::setOutput | ( | dp_index | pin_index, |
| MeshesContainer & | f | ||
| ) |
Set meshes container for given output pin.
- Parameters
-
[in] pin_index Output pin for which to set value. [in] f Meshes container to assign to output pin.
◆ setOutput() [14/30]
| void ansys::dpf::OperatorMain::setOutput | ( | dp_index | pin_index, |
| MeshInfo & | f | ||
| ) |
Set MeshInfo for given output pin.
- Parameters
-
[in] pin_index Output pin for which to set value. [in] f Mesh info to assign to output pin.
◆ setOutput() [15/30]
◆ setOutput() [16/30]
| void ansys::dpf::OperatorMain::setOutput | ( | dp_index | pin_index, |
| PropertyField & | f | ||
| ) |
Set property field for given output pin.
- Parameters
-
[in] pin_index Output pin for which to set value. [in] f Property field to assign to output pin.
◆ setOutput() [17/30]
| void ansys::dpf::OperatorMain::setOutput | ( | dp_index | pin_index, |
| RemoteOperator | f | ||
| ) |
Set RemoteOperator value for given output pin.
- Parameters
-
[in] pin_index Output pin for which to set value. [in] f RemoteOperator value to assign to output pin.
◆ setOutput() [18/30]
| void ansys::dpf::OperatorMain::setOutput | ( | dp_index | pin_index, |
| RemoteWorkflow | f | ||
| ) |
Set RemoteWorkflow value for given output pin.
- Parameters
-
[in] pin_index Output pin for which to set value. [in] f RemoteWorkflow value to assign to output pin.
◆ setOutput() [19/30]
| void ansys::dpf::OperatorMain::setOutput | ( | dp_index | pin_index, |
| ResultInfo & | f | ||
| ) |
Set ResultInfo for given output pin.
- Parameters
-
[in] pin_index Output pin for which to set value. [in] f ResultInfo to assign to output pin.
◆ setOutput() [20/30]
Set scoping for given output pin.
- Parameters
-
[in] pin_index Output pin for which to set value. [in] f Scoping to assign to output pin.
◆ setOutput() [21/30]
| void ansys::dpf::OperatorMain::setOutput | ( | dp_index | pin_index, |
| ScopingsContainer & | f | ||
| ) |
Set scopings container for given input pin.
- Parameters
-
[in] pin_index Output pin for which to set value. [in] f Scopings container to assign to output pin.
◆ setOutput() [22/30]
| void ansys::dpf::OperatorMain::setOutput | ( | dp_index | pin_index, |
| std::string const & | f | ||
| ) |
Set string value for given output pin.
- Parameters
-
[in] pin_index Output pin for which to set value. [in] f String value to assign to output pin.
◆ setOutput() [23/30]
| void ansys::dpf::OperatorMain::setOutput | ( | dp_index | pin_index, |
| std::vector< double > const & | out | ||
| ) |
Set vector of doubles for given output pin.
- Parameters
-
[in] pin_index Output pin for which to set value. [in] out Vector of doubles to assign to output pin.
◆ setOutput() [24/30]
| void ansys::dpf::OperatorMain::setOutput | ( | dp_index | pin_index, |
| std::vector< int > const & | out | ||
| ) |
Set vector of integers for given output pin.
- Parameters
-
[in] pin_index Output pin for which to set value. [in] out Vector of integers to assign to output pin.
◆ setOutput() [25/30]
| void ansys::dpf::OperatorMain::setOutput | ( | dp_index | pin_index, |
| std::vector< std::string > const & | out | ||
| ) |
Set vector of string for given output pin.
- Parameters
-
[in] pin_index Output pin for which to set value. [in] out Vector of string to assign to output pin.
◆ setOutput() [26/30]
Set streams for given output pin.
- Parameters
-
[in] pin_index Output pin for which to set value. [in] f Streams to assign to output pin.
◆ setOutput() [27/30]
| void ansys::dpf::OperatorMain::setOutput | ( | dp_index | pin_index, |
| StringField & | f | ||
| ) |
Set StringField object for given output pin with its real type.
- Parameters
-
[in] pin_index Output pin for which to set value. [in] f StringField to assign to output pin.
◆ setOutput() [28/30]
Set support for given output pin.
- Parameters
-
[in] pin_index Output pin for which to set value. [in] f Support to assign to output pin.
◆ setOutput() [29/30]
| void ansys::dpf::OperatorMain::setOutput | ( | dp_index | pin_index, |
| TimeFreqSupport & | f | ||
| ) |
Set time freqency support for given output pin.
- Parameters
-
[in] pin_index Output pin for which to set value. [in] f Time frequency support to assign to output pin.
◆ setOutput() [30/30]
Set property field for given output pin.
- Parameters
-
[in] pin_index Output pin for which to set value. [in] f Property field to assign to output pin.
◆ setOutputCustom()
|
inline |
@ details Set typed data for given output pin.
- Parameters
-
[in] pin_index Output pin for which to set value. [in] d Typed data to assign to output pin.
◆ setSuccessed()
| void ansys::dpf::OperatorMain::setSuccessed | ( | ) |
Set state of operator to success.
◆ testInput()
|
inline |
- Returns
- Indication that input pin contains typed data.
- Parameters
-
[in] pin_index Input pin for which to check data type.