#include <rt-wdf.h>
§ wdfTerminatedLeaf()
wdfTerminatedLeaf::wdfTerminatedLeaf |
( |
| ) |
|
Base class for adapted leafs in WDF subtrees/branches.
This includes all linear one-port elements with one terminated upfacing port and non-implicit behaviour.
§ adaptPorts()
double wdfTreeNode::adaptPorts |
( |
double |
T | ) |
|
|
inherited |
Recursively adapts all ports in the tree.
This recursion should be initiated from the base of the tree. It sets port resistances of all upfacing ports according to component values and/or adaptation rules and copies it onto connected downfacing ports in the parent.
- Parameters
-
T | sample period as specified by setSamplerate() |
- Returns
- a double type up-facing port resistance of that WDF element
§ calculateDownB()
virtual void wdfTreeNode::calculateDownB |
( |
double |
descendingWave | ) |
|
|
pure virtualinherited |
§ calculateScatterCoeffs()
void wdfTerminatedLeaf::calculateScatterCoeffs |
( |
| ) |
|
|
virtual |
This variant of the base classes' calculateScatterCoeffs() function is an empty function to break the recursion that only applies to adapters and stops here at the leafs.
Implements wdfTreeNode.
§ calculateUpB()
virtual double wdfTreeNode::calculateUpB |
( |
| ) |
|
|
pure virtualinherited |
§ calculateUpRes()
virtual double wdfTreeNode::calculateUpRes |
( |
double |
T | ) |
|
|
pure virtualinherited |
§ createPorts()
void wdfTreeNode::createPorts |
( |
| ) |
|
|
inherited |
Recursively creates WDF ports in the tree.
This recursion should be initiated from the base of the tree. It creates downfacing ports for all children and an upfacing port in each child while setting the correct pointers to the nodes that these ports are connected to.
§ getType()
virtual std::string wdfTreeNode::getType |
( |
| ) |
const |
|
pure virtualinherited |
§ pullWaveUp()
double wdfTreeNode::pullWaveUp |
( |
| ) |
|
|
virtualinherited |
Recursively pulls the wave from the leafs towards the root.
This recursion should be initiated from the base of the tree. As all tree nodes are adapted, it basically just pulls up correctly scattered states of reactive elements and input values from adapted sources.
- Returns
- the upward traveling wave of a node
§ pushWaveDown()
void wdfTreeNode::pushWaveDown |
( |
double |
descendingWave | ) |
|
|
virtualinherited |
Recursively pushes the wave from the root towards the leafs.
This recursion should be initiated from the base of the tree. It pushes the respective wave component of a branch from the root to the leafs by scattering them correctly along the way.
- Parameters
-
descendingWave | descending wave component that shall be scattered to the downfacing ports of the node or processed in a leaf accordingly |
§ setParentInChildren()
void wdfTreeNode::setParentInChildren |
( |
| ) |
|
|
inherited |
Recursively sets pointers to parent node in children.
This recursion should be initiated from the base of the tree. It sets a pointer to *this parent node in all connected children.
§ childrenNodes
Vector of pointers to connected children nodes of this node.
§ downPorts
std::vector<wdfPort*> wdfTreeNode::downPorts |
|
protectedinherited |
Vector of pointers to downfacing port objects of this tree.
§ parentNode
Pointer to the connected parent node of this node.
§ upPort
std::unique_ptr<wdfPort> wdfTreeNode::upPort |
|
inherited |
Pointer to the upfacing port object of this node.
The documentation for this class was generated from the following files: