LMMS
Loading...
Searching...
No Matches
dsp::keystack Class Reference

#include <synth.h>

Public Member Functions

 keystack ()
void clear ()
bool push (int key)
bool pop (int key)
bool has (int key)
int count ()
bool empty ()
int nth (int n)

Private Attributes

int dcount
uint8_t active [128]
uint8_t states [128]

Detailed Description

A kind of set with fast non-ordered iteration, used for storing lists of pressed keys.

Constructor & Destructor Documentation

◆ keystack()

dsp::keystack::keystack ( )
inline

Member Function Documentation

◆ clear()

void dsp::keystack::clear ( )
inline

◆ count()

int dsp::keystack::count ( )
inline

◆ empty()

bool dsp::keystack::empty ( )
inline

◆ has()

bool dsp::keystack::has ( int key)
inline

◆ nth()

int dsp::keystack::nth ( int n)
inline

◆ pop()

bool dsp::keystack::pop ( int key)
inline

◆ push()

bool dsp::keystack::push ( int key)
inline

Member Data Documentation

◆ active

uint8_t dsp::keystack::active[128]
private

◆ dcount

int dsp::keystack::dcount
private

◆ states

uint8_t dsp::keystack::states[128]
private

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