ttx 0.1.0
Loading...
Searching...
No Matches
ttx::Params Class Reference

#include </home/runner/work/ttx/ttx/lib/include/ttx/params.h>

Public Member Functions

 Params ()=default
 
constexpr Params (std::initializer_list< std::initializer_list< Param > > params)
 
constexpr auto clone () const -> Params
 
constexpr auto get (usize index=0, u32 fallback=0) const -> u32
 
constexpr auto get_subparam (usize index=0, usize subindex=1, u32 fallback=0) const -> u32
 
constexpr auto empty () const
 
constexpr auto size () const
 
constexpr auto subparams (usize index=0) const -> Subparams
 
constexpr void add_empty_param ()
 
constexpr void add_param (u32 value)
 
constexpr void add_subparam (u32 value)
 
constexpr void add_empty_subparam ()
 
constexpr void add_subparams (di::Vector< Param > subparams)
 
auto to_string () const -> di::String
 
auto operator== (Params const &other) const -> bool=default
 

Static Public Member Functions

static auto from_string (di::StringView view) -> Params
 

Constructor & Destructor Documentation

◆ Params() [1/2]

ttx::Params::Params ( )
default

◆ Params() [2/2]

ttx::Params::Params ( std::initializer_list< std::initializer_list< Param > > params)
inlineconstexpr

Member Function Documentation

◆ add_empty_param()

void ttx::Params::add_empty_param ( )
inlineconstexpr

◆ add_empty_subparam()

void ttx::Params::add_empty_subparam ( )
inlineconstexpr

◆ add_param()

void ttx::Params::add_param ( u32 value)
inlineconstexpr

◆ add_subparam()

void ttx::Params::add_subparam ( u32 value)
inlineconstexpr

◆ add_subparams()

void ttx::Params::add_subparams ( di::Vector< Param > subparams)
inlineconstexpr

◆ clone()

auto ttx::Params::clone ( ) const -> Params
inlineconstexpr

◆ empty()

auto ttx::Params::empty ( ) const
inlineconstexpr

◆ from_string()

auto ttx::Params::from_string ( di::StringView view) -> Params
static

◆ get()

auto ttx::Params::get ( usize index = 0,
u32 fallback = 0 ) const -> u32
inlineconstexpr

◆ get_subparam()

auto ttx::Params::get_subparam ( usize index = 0,
usize subindex = 1,
u32 fallback = 0 ) const -> u32
inlineconstexpr

◆ operator==()

auto ttx::Params::operator== ( Params const & other) const -> bool=default
default

◆ size()

auto ttx::Params::size ( ) const
inlineconstexpr

◆ subparams()

auto ttx::Params::subparams ( usize index = 0) const -> Subparams
inlineconstexpr

◆ to_string()

auto ttx::Params::to_string ( ) const -> di::String

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