#include <rt-wdf.h>
§ wdfTerminatedAdapter() [1/2]
Base class for terminated 2 port adapters in WDF subtrees/branches.
This includes series and parallel adapters with one terminated upfacing port and 2 downfacing ports.
- Parameters
-
left | pointer to the adapter's left children |
right | pointer to the adapter's right children |
§ wdfTerminatedAdapter() [2/2]
wdfTerminatedAdapter::wdfTerminatedAdapter |
( |
std::vector< wdfTreeNode *> |
childrenIn | ) |
|
Base class for terminated n port adapters in WDF subtrees/branches.
This includes r-type adapters with one terminated upfacing port and n downfacing ports.
- Parameters
-
*childrenNodes | holds a vector of pointers to the n adapter's children |
§ ~wdfTerminatedAdapter()
wdfTerminatedAdapter::~wdfTerminatedAdapter |
( |
| ) |
|
§ 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()
virtual void wdfTreeNode::calculateScatterCoeffs |
( |
| ) |
|
|
pure virtualinherited |
§ 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: