Skip to main content
Wrap an elementary operation. The Operator is the main object used to create, transform and stream the data. It can be seen as an integrated circuit in electronics with a range of pins in input and in output. The inputs and outputs attributes are then used to connect the operator with various sources, including other operators, data sources, fields, or provided data. Inherits from: Inherited by:

Members

Friends

Friend ConstructHelpers::construct_trait

Public functions

Function Operator

Return type:

Function Operator

Create a new operator with its name. Returns: empty Operator if identifier is not found. Use ansys::dpf::core::assertInstantiate for safer usage. Parameters:
  • std::string const & identifier: [in] Name of operator.
Return type:

Function Operator

Create a new operator If the Operator doesn’t exist, the created instance is empty. Use ansys::dpf::core::assertInstantiate for safer usage. Parameters:
  • std::string const & identifier: [in] Name of operator.
  • OperatorConfig const & config: [in] Additional configuration information.
Return type:

Function Operator

Create a new operator If the Operator doesn’t exist, the created instance is empty. Use ansys::dpf::core::assertInstantiate for safer usage. Parameters:
  • std::string const & identifier: [in] Name of operator.
  • OperatorConfig const & config: [in] Additional configuration information.
  • Client const *const client: [in] Client instance designating the IP, port and protocol to use.
Return type:

Function Operator

Create a new operator with its name on a server. If the Operator doesn’t exist, the created instance is empty. Use ansys::dpf::core::assertInstantiate for safer usage. Parameters:
  • std::string const & identifier: [in] Name of operator.
  • Client const *const client: [in] Client instance designating the IP, port and protocol to use.
Return type:

Function Operator

Retrieve an existing instance of Operator on a server. Parameters:
  • int id: [in] Id of the Operator on the server’s database.
  • Client const *const client: [in] Client instance designating the IP, port and protocol to use.
Return type:

Function Operator

Parameters:
  • Operator &&
Return type:

Function Operator

Parameters:
  • Operator const &
Return type:

Function operator=

Parameters:
  • Operator const &
Return type: Operator &

Function operator=

Parameters:
  • Operator &&
Return type: Operator &

Function ~Operator

Return type:

Function run

Perform operation. Return type: void

Function invalidate

Invalidate results of operation. Return type: void

Function derivate

Generate derivative of current operator and its ancestors. Return type: Operator

Function status

Return type: OperatorState

Function getId

Return type: int

Function name

Get name of the operator. Return type: std::string

Function getChangelog

get operator changelog Return type: Changelog

Function connect

Connect operators output_pin to input_pin. Exceptions: Parameters:
  • dp_index input_pin: [in] Input pin.
  • Operator const & op: [in] Operator to connect to input pin.
  • dp_index output_pin: [in] ouput pin of operator to connect to input_pin.
Return type: void

Function connect

Connection operator output pin 0 to input pin 0. Exceptions: Parameters:
  • Operator const & op: [in] Operator whose output pin 0 is connection to input pin 0.
Return type: void

Function connect

Connect Field data to input_pin. Exceptions: Parameters:
  • dp_index input_pin: [in] Input pin.
  • Field const & data: [in] Field data to connect to pin.
Return type: void

Function connect

Connect FieldsContainer data to input_pin. Exceptions: Parameters: Return type: void

Function connect

Connect ScopingsContainer data to input_pin. Exceptions: Parameters: Return type: void

Function connect

Connect MeshesContainer data to input_pin. Exceptions: Parameters: Return type: void

Function connect

Connect DataSources data to input_pin. Exceptions: Parameters: Return type: void

Function connect

Connect MeshedRegion data to input_pin. Exceptions: Parameters: Return type: void

Function connect

Connect Scoping data to input_pin. Exceptions: Parameters: Return type: void

Function connect

Connect Streams data to input_pin. Exceptions: Parameters: Return type: void

Function connect

Connect PropertyField data to input_pin. Exceptions: Parameters: Return type: void

Function connect

Connect Support data to input_pin. Exceptions: Parameters: Return type: void

Function connect

Connect CyclicSupport data to input_pin. Exceptions: Parameters: Return type: void

Function connect

Connect TimeFreqSupport data to input_pin. Exceptions: Parameters: Return type: void

Function connect

Connect StringField data to input_pin. Exceptions: Parameters: Return type: void

Function connect

Connect CustomTypeField data to input_pin. Exceptions: Parameters: Return type: void

Function connect

Connect LabelSpace data to input_pin. Exceptions: Parameters: Return type: void

Function connect

Connect GenericDataContainer data to input_pin. Exceptions: Parameters:
  • dp_index input_pin: [in] Input pin.
  • GenericDataContainer const & data: [in] GenericDataContainer data to connect to pin.
Return type: void

Function connect

Connect CustomContainerBase data to input_pin. Exceptions: Parameters: Return type: void

Function connect

Connect Workflow data to input_pin. Exceptions: Parameters:
  • dp_index input_pin: [in] Input pin.
  • Workflow const & data: [in] Workflow data to connect to pin.
Return type: void

Function connect

Connect RemoteWorkflow data to input_pin. Exceptions: Parameters:
  • dp_index input_pin: [in] Input pin.
  • RemoteWorkflow const & data: [in] Workflow data to connect to pin.
Return type: void

Function connect

Connect ResultInfo data to input_pin. Exceptions: Parameters: Return type: void

Function connect

Connect CustomTypeFieldsContainer data to input_pin. Exceptions: Parameters: Return type: void

Function connect

Connect Location data to input_pin. Exceptions: Parameters: Return type: void

Function connect

Connect PropertyTypes data to input_pin. Exceptions: Parameters: Return type: void

Function connect

Connect Label data to input_pin. Exceptions: Parameters:
  • dp_index input_pin: [in] Input pin.
  • Label const & data: [in] Label data to connect to pin.
Return type: void

Function connect

Connect integer data to input_pin. Exceptions: Parameters:
  • dp_index input_pin: [in] Input pin.
  • dp_int data: [in] Integer data to connect to pin.
Return type: void

Function connect

Connect boolean data to input_pin. Exceptions: Parameters:
  • dp_index input_pin: [in] Input pin.
  • bool data: [in] Boolean data to connect to pin.
Return type: void

Function connect

Connect double data to input_pin. Exceptions: Parameters:
  • dp_index input_pin: [in] Input pin.
  • dp_double data: [in] Double data to connect to pin.
Return type: void

Function connect

Connect string data to input_pin. Exceptions: Parameters:
  • dp_index input_pin: [in] Input pin.
  • std::string const & data: [in] String data to connect to pin.
Return type: void

Function connect

Connect vector of integer data to input_pin. Exceptions: Parameters:
  • dp_index input_pin: [in] Input pin.
  • std::vector< dp_int > const & data: [in] Vector of integer data to connect to pin.
Return type: void

Function connect

Connect vector of double data to input_pin. Exceptions: Parameters:
  • dp_index input_pin: [in] Input pin.
  • std::vector< dp_double > const & data: [in] Vector of double data to connect to pin.
Return type: void

Function connect

Connect vecotr of string data to input_pin. Exceptions: Parameters:
  • dp_index input_pin: [in] Input pin.
  • std::vector< std::string > const & data: [in] Vector of string data to connect to pin.
Return type: void

Function connect

Connect IAnsDispatch data to input_pin. Exceptions: Parameters:
  • dp_index input_pin: [in] Input pin.
  • IAnsDispatch * data: [in] IAnsDispatch data to connect to pin.
Return type: void

Function connect

Connect Any data to input_pin. Exceptions: Parameters:
  • dp_index input_pin: [in] Input pin.
  • Any const & data: [in] Any data to connect to pin.
Return type: void

Function connect

Connect DataTree data to input_pin. Exceptions: Parameters: Return type: void

Function connect

Connect UnitSystem data to input_pin. Exceptions: Parameters: Return type: void

Function connect

Parameters: Return type: void

Function connectOperatorAsInput

Connect an Operator instance as an input to input_pin. Exceptions: Parameters:
  • dp_index input_pin: [in] Input pin.
  • Operator const & data: [in] Operator data to connect to pin.
Return type: void

Function connectCustom

Connect custom data to input_pin. Exceptions: Parameters: Return type: void

Function connect

Connect operators output_pin to input_pin. Parameters:
  • dp_index input_pin: [in] Input pin.
  • Operator const & op: [in] Operator to connect to input pin.
  • dp_index output_pin: [in] ouput pin of operator to connect to input_pin.
  • DpfError & error: [out] Status of call.
Return type: void

Function connect

Connect Field data to input_pin. Parameters:
  • dp_index input_pin: [in] Input pin.
  • Field const & data: [in] Field data to connect to pin.
  • DpfError & error: [out] Status of call.
Return type: void

Function connect

Connect FieldsContainer data to input_pin. Parameters: Return type: void

Function connect

Connect ScopingsContainer data to input_pin. Parameters: Return type: void

Function connect

Connect MeshesContainer output_pin to input_pin. Parameters: Return type: void

Function connect

Connect DataSources data to input_pin. Parameters: Return type: void

Function connect

Connect MeshedRegion data to input_pin. Parameters: Return type: void

Function connect

Connect Streams data to input_pin. Parameters: Return type: void

Function connect

Connect Scoping data to input_pin. Parameters: Return type: void

Function connect

Connect PropertyField data to input_pin. Parameters: Return type: void

Function connect

Connect Support data to input_pin. Parameters: Return type: void

Function connect

Connect CyclicSupport data to input_pin. Parameters: Return type: void

Function connect

Connect TimeFreqSupport data to input_pin. Parameters: Return type: void

Function connect

Connect StringField data to input_pin. Parameters: Return type: void

Function connect

Connect CustomTypeField data to input_pin. Parameters: Return type: void

Function connect

Connect TimeFreqSupport data to input_pin. Parameters: Return type: void

Function connect

Connect Workflow data to input_pin. Parameters:
  • dp_index input_pin: [in] Input pin.
  • Workflow const & data: [in] Workflow data to connect to pin.
  • DpfError & error: [out] Status of call.
Return type: void

Function connect

Connect RemoteWorkflow data to input_pin. Parameters:
  • dp_index input_pin: [in] Input pin.
  • RemoteWorkflow const & data: [in] RemoteWorkflow data to connect to pin.
  • DpfError & error: [out] Status of call.
Return type: void

Function connect

Connect CustomTypeFieldsContainer data to input_pin. Parameters: Return type: void

Function connect

Connect boolean data to input_pin. Parameters:
  • dp_index input_pin: [in] Input pin.
  • bool data: [in] Boolean data to connect to pin.
  • DpfError & error: [out] Status of call.
Return type: void

Function connect

Connect integer data to input_pin. Parameters:
  • dp_index input_pin: [in] Input pin.
  • dp_int data: [in] Integer data to connect to pin.
  • DpfError & error: [out] Status of call.
Return type: void

Function connect

Connect double data to input_pin. Parameters:
  • dp_index input_pin: [in] Input pin.
  • dp_double data: [in] Double data to connect to pin.
  • DpfError & error: [out] Status of call.
Return type: void

Function connect

Connect string data to input_pin. Parameters:
  • dp_index input_pin: [in] Input pin.
  • std::string const & data: [in] String data to connect to pin.
  • DpfError & error: [out] Status of call.
Return type: void

Function connect

Connect vector of integer data to input_pin. Parameters:
  • dp_index input_pin: [in] Input pin.
  • std::vector< dp_int > const & data: [in] Vector of integer data to connect to pin.
  • DpfError & error: [out] Status of call.
Return type: void

Function connect

Connect vector of double data to input_pin. Parameters:
  • dp_index input_pin: [in] Input pin.
  • std::vector< dp_double > const & data: [in] vector of double data to connect to pin.
  • DpfError & error: [out] Status of call.
Return type: void

Function connect

Connect vbector of string data to input_pin. Parameters:
  • dp_index input_pin: [in] Input pin.
  • std::vector< std::string > const & data: [in] Vector of string data to connect to pin.
  • DpfError & error: [out] Status of call.
Return type: void

Function connect

Connect IAnsDispatch data to input_pin. Parameters:
  • dp_index input_pin: [in] Input pin.
  • IAnsDispatch * data: [in] IAnsDispatch data to connect to pin.
  • DpfError & error: [out] Status of call.
Return type: void

Function connect

Connect Any data to input_pin. Parameters:
  • dp_index input_pin: [in] Input pin.
  • Any const & data: [in] Any data to connect to pin.
  • DpfError & error: [out] Status of call.
Return type: void

Function connect

Connect DataTree data to input_pin. Parameters: Return type: void

Function connect

Connect GenericDataContainer data to input_pin. Parameters:
  • dp_index input_pin: [in] Input pin.
  • GenericDataContainer const & data: [in] GenericDataContainer data to connect to pin.
  • DpfError & error: [out] Status of call.
Return type: void

Function connect

Connect CustomContainerBase data to input_pin. Parameters: Return type: void

Function connect

Connect Collection data to input_pin. Parameters: Return type: void

Function getOutputField

Returns: Field output on pin_index. Exceptions: Parameters:
  • dp_index pin_index: [in] Pin from which to get output.
Return type: Field

Function getOutputPropertyField

Returns: PropertyField output on pin_index. Exceptions: Parameters:
  • dp_index pin_index: [in] Pin from which to get output.
Return type: PropertyField

Function getOutputScoping

Returns: Scoping output on pin_index. Exceptions: Parameters:
  • dp_index pin_index: [in] Pin from which to get output.
Return type: Scoping

Function getOutputFieldsContainer

Returns: FieldsContainer output on pin_index. Exceptions: Parameters:
  • dp_index pin_index: [in] Pin from which to get output.
Return type: FieldsContainer

Function getOutputScopingsContainer

Returns: ScopingsContainer output on pin_index. Exceptions: Parameters:
  • dp_index pin_index: [in] Pin from which to get output.
Return type: ScopingsContainer

Function getOutputMeshesContainer

Returns: MeshesContainer output on pin_index. Exceptions: Parameters:
  • dp_index pin_index: [in] Pin from which to get output.
Return type: MeshesContainer

Function getOutputTimeFreqSupport

Returns: TimeFreqSupport output on pin_index. Exceptions: Parameters:
  • dp_index pin_index: [in] Pin from which to get output.
Return type: TimeFreqSupport

Function getOutputMeshedRegion

Returns: MeshedRegion output on pin_index. Exceptions: Parameters:
  • dp_index pin_index: [in] Pin from which to get output.
Return type: MeshedRegion

Function getOutputStreams

Returns: Streams output on pin_index. Exceptions: Parameters:
  • dp_index pin_index: [in] Pin from which to get output.
Return type: Streams

Function getOutputResultInfo

Returns: ResultInfo output on pin_index. Exceptions: Parameters:
  • dp_index pin_index: [in] Pin from which to get output.
Return type: ResultInfo

Function getOutputMapping

Returns: Mapping output on pin_index. Exceptions: Parameters:
  • dp_index pin_index: [in] Pin from which to get output.
Return type: Mapping

Function getOutputDataTree

Returns: DataTree output on pin_index. Exceptions: Parameters:
  • dp_index pin_index: [in] Pin from which to get output.
Return type: DataTree

Function getOutputWorkflow

Returns: Workflow output on pin_index. Exceptions: Parameters:
  • dp_index pin_index: [in] Pin from which to get output.
Return type: Workflow

Function getOutputOperator

Returns: Operator output on pin_index. Exceptions: Parameters:
  • dp_index pin_index: [in] Pin from which to get output.
Return type: Operator

Function getOutputSupport

Returns: Support output on pin_index. Exceptions: Parameters:
  • dp_index pin_index: [in] Pin from which to get output.
Return type: Support

Function getOutputCyclicSupport

Returns: CyclicSupport output on pin_index. Exceptions: Parameters:
  • dp_index pin_index: [in] Pin from which to get output.
Return type: CyclicSupport

Function getOutputDataSources

Returns: DataSources output on pin_index. Exceptions: Parameters:
  • dp_index pin_index: [in] Pin from which to get output.
Return type: DataSources

Function getOutputStringField

Returns: StringField output on pin_index. Exceptions: Parameters:
  • dp_index pin_index: [in] Pin from which to get output.
Return type: StringField

Function getOutputCustomTypeField

Returns: CustomTypeField output on pin_index. Exceptions: Parameters:
  • dp_index pin_index: [in] Pin from which to get output.
Return type: CustomTypeField

Function getOutputMeshInfo

Returns: MeshInfo output on pin_index. Exceptions: Parameters:
  • dp_index pin_index: [in] Pin from which to get output.
Return type: MeshInfo

Function getOutputGenericDataContainer

Returns: GenericDataContainer output on pin_index. Exceptions: Parameters:
  • dp_index pin_index: [in] Pin from which to get output.
Return type: GenericDataContainer

Function getOutputCustomTypeFieldsContainer

Returns: CustomTypeFieldsContainer output on pin_index. Exceptions: Parameters:
  • dp_index pin_index: [in] Pin from which to get output.
Return type: CustomTypeFieldsContainer

Function getOutputCustomContainer

Returns: CustomContainerBase output on pin_index. Exceptions: Parameters:
  • dp_index pin_index: [in] Pin from which to get output.
Return type: CustomContainerT

Function getOutputString

Returns: String output on pin_index. Exceptions: Parameters:
  • dp_index pin_index: [in] Pin from which to get output.
Return type: std::string

Function getOutputDouble

Returns: Double output on pin_index. Exceptions: Parameters:
  • dp_index pin_index: [in] Pin from which to get output.
Return type: dp_double

Function getOutputInt

Returns: Integer output on pin_index. Exceptions: Parameters:
  • dp_index pin_index: [in] Pin from which to get output.
Return type: dp_int

Function getOutputBool

Returns: Boolean output on pin_index. Exceptions: Parameters:
  • dp_index pin_index: [in] Pin from which to get output.
Return type: bool

Function getOutputIntVector

Returns: Integers vector result as DpfVector for given output pin. Parameters:
  • dp_index pin_index: [in] Pin from which to get output.
Return type: DpfVector< int >

Function getOutputDoubleVector

Returns: Doubles vector result as DpfVector for given output pin. Parameters:
  • dp_index pin_index: [in] Pin from which to get output.
Return type: DpfVector< double >

Function getOutputAsAny

Returns: Any result for given output pin. Parameters:
  • dp_index pin_index: [in] Pin from which to get output.
Return type: Any

Function getCustomOutput

Returns: Custom data output on index. Exceptions: Parameters:
  • dp_int index: [in] Pin from which to get output.
Return type: DataT

Function getOutput

Returns: Typed result for given output pin. Parameters:
  • dp_index pin_index: [in] Pin from which to get output.
Return type: DataT

Function getOutputField

Returns: Field output on pin_index. Parameters:
  • dp_index pin_index: [in] Pin from which to get output.
  • DpfError & error: [out] Status of call.
Return type: Field

Function getOutputPropertyField

Returns: PropertyField output on pin_index. Parameters:
  • dp_index pin_index: [in] Pin from which to get output.
  • DpfError & error: [out] Status of call.
Return type: PropertyField

Function getOutputScoping

Returns: Scoping output on pin_index. Parameters:
  • dp_index pin_index: [in] Pin from which to get output.
  • DpfError & error: [out] Status of call.
Return type: Scoping

Function getOutputFieldsContainer

Returns: FieldsContainer output on pin_index. Parameters:
  • dp_index pin_index: [in] Pin from which to get output.
  • DpfError & error: [out] Status of call.
Return type: FieldsContainer

Function getOutputScopingsContainer

Returns: ScopingsContainer output on pin_index. Parameters:
  • dp_index pin_index: [in] Pin from which to get output.
  • DpfError & error: [out] Status of call.
Return type: ScopingsContainer

Function getOutputMeshesContainer

Returns: MeshesContainer output on pin_index. Parameters:
  • dp_index pin_index: [in] Pin from which to get output.
  • DpfError & error: [out] Status of call.
Return type: MeshesContainer

Function getOutputTimeFreqSupport

Returns: TimeFreqSupport output on pin_index. Parameters:
  • dp_index pin_index: [in] Pin from which to get output.
  • DpfError & error: [out] Status of call.
Return type: TimeFreqSupport

Function getOutputMeshedRegion

Returns: MeshedRegion output on pin_index. Parameters:
  • dp_index pin_index: [in] Pin from which to get output.
  • DpfError & error: [out] Status of call.
Return type: MeshedRegion

Function getOutputStreams

Returns: Streams output on pin_index. Parameters:
  • dp_index pin_index: [in] Pin from which to get output.
  • DpfError & error: [out] Status of call.
Return type: Streams

Function getOutputResultInfo

Returns: ResultInfo output on pin_index. Parameters:
  • dp_index pin_index: [in] Pin from which to get output.
  • DpfError & error: [out] Status of call.
Return type: ResultInfo

Function getOutputMapping

Returns: Mapping output on pin_index. Parameters:
  • dp_index pin_index: [in] Pin from which to get output.
  • DpfError & error: [out] Status of call.
Return type: Mapping

Function getOutputDataTree

Returns: DataTree output on pin_index. Parameters:
  • dp_index pin_index: [in] Pin from which to get output.
  • DpfError & error: [out] Status of call.
Return type: DataTree

Function getOutputWorkflow

Returns: Workflow output on pin_index. Parameters:
  • dp_index pin_index: [in] Pin from which to get output.
  • DpfError & error: [out] Status of call.
Return type: Workflow

Function getOutputSupport

Returns: Support output on pin_index. Parameters:
  • dp_index pin_index: [in] Pin from which to get output.
  • DpfError & error: [out] Status of call.
Return type: Support

Function getOutputCyclicSupport

Returns: CyclicSupport output on pin_index. Parameters:
  • dp_index pin_index: [in] Pin from which to get output.
  • DpfError & error: [out] Status of call.
Return type: CyclicSupport

Function getOutputDataSources

Returns: DataSources output on pin_index. Parameters:
  • dp_index pin_index: [in] Pin from which to get output.
  • DpfError & error: [out] Status of call.
Return type: DataSources

Function getOutputStringField

Returns: StringField output on pin_index. Parameters:
  • dp_index pin_index: [in] Pin from which to get output.
  • DpfError & error: [out] Status of call.
Return type: StringField

Function getOutputCustomTypeField

Returns: CustomTypeField output on pin_index. Parameters:
  • dp_index pin_index: [in] Pin from which to get output.
  • DpfError & error: [out] Status of call.
Return type: CustomTypeField

Function getOutputMeshInfo

Returns: MeshInfo output on pin_index. Parameters:
  • dp_index pin_index: [in] Pin from which to get output.
  • DpfError & error: [out] Status of call.
Return type: MeshInfo

Function getOutputGenericDataContainer

Returns: GenericDataContainer output on pin_index. Parameters:
  • dp_index pin_index: [in] Pin from which to get output.
  • DpfError & error: [out] Status of call.
Return type: GenericDataContainer

Function getOutputCustomTypeFieldsContainer

Returns: CustomTypeFieldsContainer output on pin_index. Parameters:
  • dp_index pin_index: [in] Pin from which to get output.
  • DpfError & error: [out] Status of call.
Return type: CustomTypeFieldsContainer

Function getOutputString

Returns: String output on pin_index. Parameters:
  • dp_index pin_index: [in] Pin from which to get output.
  • DpfError & error: [out] Status of call.
Return type: std::string

Function getOutputDouble

Returns: Double output on pin_index. Parameters:
  • dp_index pin_index: [in] Pin from which to get output.
  • DpfError & error: [out] Status of call.
Return type: dp_double

Function getOutputBool

Returns: Boolean output on pin_index. Parameters:
  • dp_index pin_index: [in] Pin from which to get output.
  • DpfError & error: [out] Status of call.
Return type: bool

Function getOutputInt

Returns: int output on pin_index. Parameters:
  • dp_index pin_index: [in] Pin from which to get output.
  • DpfError & error: [out] Status of call.
Return type: int

Function getOutputIntVector

Returns: Integers vector result as DpfVector for given output pin. Parameters:
  • dp_index pin_index: [in] Pin from which to get output.
  • DpfError & error: [out] Status of call.
Return type: DpfVector< int >

Function getOutputDoubleVector

Returns: Doubles vector result as DpfVector for given output pin. Parameters:
  • dp_index pin_index: [in] Pin from which to get output.
  • DpfError & error: [out] Status of call.
Return type: DpfVector< double >

Function disconnect

Disconnect pin from operator. Parameters:
  • dp_index pin_index: [in] pin to disconnect.
Return type: void

Function hasOutputWhenEvaluated

Determines if output will be available on pin_index when operator evaluated. Returns: Indication of output available on pin. Parameters:
  • dp_index pin_index: [in] pin on which to check for output.
Return type: bool

Function config

Get configuration information for operator. Returns: OperatorConfig Return type: OperatorConfig

Function getRemoteId

Return type: dp_id

Public static functions

Function emptyOperator

Create an empty operator. Returns: Empty Operator Return type: Operator