Gin
Loading...
Searching...
No Matches
ModSrcId Struct Reference

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

#include <gin_imodmatrix.h>

Public Member Functions

 ModSrcId ()=default
 ModSrcId (int id_)
 ModSrcId (const ModSrcId &other)
ModSrcId & operator= (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
IModMatrix, ModDstId

Constructor & Destructor Documentation

◆ ModSrcId() [1/3]

ModSrcId::ModSrcId ( )
default

Referenced by ModSrcId(), operator=(), and operator==().

◆ ModSrcId() [2/3]

ModSrcId::ModSrcId ( int id_)
explicit

References id.

◆ ModSrcId() [3/3]

ModSrcId::ModSrcId ( const ModSrcId & other)

References id, and ModSrcId().

Member Function Documentation

◆ operator=()

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

References id, and ModSrcId().

◆ operator==()

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

References id, and ModSrcId().

◆ isValid()

bool ModSrcId::isValid ( ) const

Member Data Documentation

◆ id


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