Control Surface main
MIDI Control Surface library for Arduino
Public Member Functions | Public Attributes | List of all members
MIDI_PipeFactory< N, Pipe > Struct Template Reference

#include <MIDI_Interfaces/MIDI_Pipes.hpp>

Detailed Description

template<size_t N, class Pipe = MIDI_Pipe>
struct MIDI_PipeFactory< N, Pipe >

Class that produces multiple MIDI_Pipes.

Template Parameters
NThe maximum number of pipes it can produce.
PipeThe type of pipes to produce.
Dual-MIDI-Interface.ino, and MIDI_Pipes-Routing.ino.

Definition at line 645 of file MIDI_Pipes.hpp.

+ Collaboration diagram for MIDI_PipeFactory< N, Pipe >:

Public Member Functions

Pipe & getNext ()
Pipe & operator[] (size_t i)
const Pipe & operator[] (size_t i) const

Public Attributes

Pipe pipes [N]
size_t index = 0

Member Function Documentation

◆ getNext()

Pipe & getNext ( )

Definition at line 649 of file MIDI_Pipes.hpp.

◆ operator[]() [1/2]

Pipe & operator[] ( size_t  i)

Definition at line 654 of file MIDI_Pipes.hpp.

◆ operator[]() [2/2]

const Pipe & operator[] ( size_t  i) const

Definition at line 655 of file MIDI_Pipes.hpp.

Member Data Documentation

◆ pipes

Pipe pipes[N]

Definition at line 646 of file MIDI_Pipes.hpp.

◆ index

size_t index = 0

Definition at line 647 of file MIDI_Pipes.hpp.

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