Gin
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
ModSrcId Struct Reference

Identifier for a modulation source in the ModMatrix system. More...

#include <gin_modmatrix.h>

Public Member Functions

 ModSrcId ()=default
 
 ModSrcId (int id_)
 
 ModSrcId (const ModSrcId &other)
 
ModSrcIdoperator= (const ModSrcId &other)
 
bool operator== (const ModSrcId &other) const
 
bool isValid () const
 

Public Attributes

int id = -1
 

Detailed Description

Identifier for a modulation source in the ModMatrix system.

Wraps an integer ID with type safety to distinguish modulation sources from other identifiers in the system. Use isValid() to check if the ID represents a valid modulation source.

See also
ModMatrix, ModDstId

Constructor & Destructor Documentation

◆ ModSrcId() [1/3]

ModSrcId::ModSrcId ( )
default

◆ ModSrcId() [2/3]

ModSrcId::ModSrcId ( int  id_)
explicit

◆ ModSrcId() [3/3]

ModSrcId::ModSrcId ( const ModSrcId other)

Member Function Documentation

◆ operator=()

ModSrcId & ModSrcId::operator= ( const ModSrcId other)

◆ operator==()

bool ModSrcId::operator== ( const ModSrcId other) const

References id.

◆ isValid()

bool ModSrcId::isValid ( ) const

Member Data Documentation

◆ id

int ModSrcId::id = -1

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