Vital
Loading...
Searching...
No Matches
vital::Input Struct Reference

Represents a connection to an Output from another Processor. More...

#include <processor.h>

Public Member Functions

 Input ()
 Default constructor, initializes source to nullptr.
 
force_inline poly_float at (int i) const
 Returns the sample at index i from the source buffer.
 
force_inline const poly_floatoperator[] (std::size_t i)
 Operator[] overload for read-access to the source buffer.
 

Public Attributes

const Outputsource
 The output from which this input reads samples.
 

Detailed Description

Represents a connection to an Output from another Processor.

Provides read-access to the source buffer (the output of another Processor).

Constructor & Destructor Documentation

◆ Input()

vital::Input::Input ( )
inline

Default constructor, initializes source to nullptr.

Member Function Documentation

◆ at()

force_inline poly_float vital::Input::at ( int i) const
inline

Returns the sample at index i from the source buffer.

Parameters
iThe sample index.
Returns
The sample as a poly_float.

◆ operator[]()

force_inline const poly_float & vital::Input::operator[] ( std::size_t i)
inline

Operator[] overload for read-access to the source buffer.

Parameters
iThe sample index.
Returns
Reference to the poly_float sample.

Member Data Documentation

◆ source

const Output* vital::Input::source

The output from which this input reads samples.


The documentation for this struct was generated from the following file: