SubOperator Class

(Automation::SubOperator)

The SubOperator subtracts arguments from signal value. More...

Header: #include <SubOperator>
Inherits: ArgumentableOperator<T>

Public Functions

SubOperator(const CDPPropertyBase &in)

Reimplemented Public Functions

virtual std::string GetNodeTypeName() const override
virtual unsigned int Process() override

Additional Inherited Members

Detailed Description

The SubOperator subtracts arguments from signal value.

This CDP operator can be used to subtract an unlimited number of argument values from signal.

Argument values can be routed from another signal, parameter or property.

Example

Below is an example plot with Sine signal (cyan) and same signal with SubOperator(Argument=2.0) applied (orange):

See also Argument.

Member Function Documentation

SubOperator::SubOperator(const CDPPropertyBase &in)

Default constructs an instance of SubOperator.

[override virtual] std::string SubOperator::GetNodeTypeName() const

Reimplemented from CDPNode::GetNodeTypeName().

[override virtual] unsigned int SubOperator::Process()

Reimplemented from CDPOperatorBase::Process().

Returns STATUS_OK.