DivOperator Class


The DivOperator divides signal value by arguments. More...

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

Public Functions

DivOperator(const CDPPropertyBase &in)

Reimplemented Public Functions

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

Additional Inherited Members

Detailed Description

The DivOperator divides signal value by arguments.

This CDP operator can be used to divide the signal by an unlimited number of arguments.

NB! If any argument value is 0, the operator will not calculate output and will return STATUS_SIGNAL_FAULT instead.

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


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

See also Argument.

Member Function Documentation

DivOperator::DivOperator(const CDPPropertyBase &in)

Default constructs an instance of DivOperator.

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

Reimplemented from CDPNode::GetNodeTypeName().

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

Reimplemented from CDPOperatorBase::Process().

Returns STATUS_OK.