Cogs.Core
Public Member Functions | Public Attributes | List of all members
Cogs::Core::PropertyRange Struct Reference

Public Member Functions

uint32_t getPropertyIndex (StringRef key) const
 
float getProperty (StringRef key, float defaultValue) const
 
int getProperty (StringRef key, int defaultValue) const
 
StringView getProperty (StringRef key, StringView defaultValue) const
 
std::span< const float > getProperty (StringRef key, std::span< const float > defaultValue) const
 
std::span< const uint32_t > getProperty (StringRef key, std::span< const uint32_t > defaultValue) const
 

Public Attributes

const PropertyStorestore = nullptr
 
uint32_t firstProperty = 0
 
uint32_t numProperties = 0
 

Detailed Description

Definition at line 166 of file PropertiesManager.h.

Member Function Documentation

◆ getProperty() [1/5]

float Cogs::Core::PropertyRange::getProperty ( StringRef  key,
float  defaultValue 
) const

Definition at line 581 of file PropertiesManager.cpp.

◆ getProperty() [2/5]

int Cogs::Core::PropertyRange::getProperty ( StringRef  key,
int  defaultValue 
) const

Definition at line 592 of file PropertiesManager.cpp.

◆ getProperty() [3/5]

std::span< const float > Cogs::Core::PropertyRange::getProperty ( StringRef  key,
std::span< const float >  defaultValue 
) const

Definition at line 614 of file PropertiesManager.cpp.

◆ getProperty() [4/5]

std::span< const uint32_t > Cogs::Core::PropertyRange::getProperty ( StringRef  key,
std::span< const uint32_t >  defaultValue 
) const

Definition at line 621 of file PropertiesManager.cpp.

◆ getProperty() [5/5]

Cogs::StringView Cogs::Core::PropertyRange::getProperty ( StringRef  key,
StringView  defaultValue 
) const

Definition at line 603 of file PropertiesManager.cpp.

◆ getPropertyIndex()

uint32_t Cogs::Core::PropertyRange::getPropertyIndex ( StringRef  key) const

Definition at line 576 of file PropertiesManager.cpp.

Member Data Documentation

◆ firstProperty

uint32_t Cogs::Core::PropertyRange::firstProperty = 0

Definition at line 176 of file PropertiesManager.h.

◆ numProperties

uint32_t Cogs::Core::PropertyRange::numProperties = 0

Definition at line 177 of file PropertiesManager.h.

◆ store

const PropertyStore* Cogs::Core::PropertyRange::store = nullptr

Definition at line 175 of file PropertiesManager.h.


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