Cogs.Core
Public Member Functions | Private Attributes | List of all members
Cogs::Binding< StateVariableType, Slots > Struct Template Reference

Public Member Functions

bool hasChanged () const
 
void setUnchanged ()
 
void setChanged ()
 
void setChanged (size_t slot, StateVariableType variable, bool force=false)
 
void setAnyChanged (StateVariableType &&variable)
 
bool getChanged (size_t slot) const
 
size_t size () const
 
const StateVariableType & operator[] (size_t index) const
 

Private Attributes

StateVariableType variables [Slots] = { 0 }
 
uint32_t changed = 0xFFFFFFFF
 
uint32_t numChanged = 0
 

Detailed Description

template<typename StateVariableType, size_t Slots>
struct Cogs::Binding< StateVariableType, Slots >

Definition at line 302 of file EffectsCommon.h.

Member Function Documentation

◆ getChanged()

template<typename StateVariableType , size_t Slots>
bool Cogs::Binding< StateVariableType, Slots >::getChanged ( size_t  slot) const
inline

Definition at line 339 of file EffectsCommon.h.

◆ hasChanged()

template<typename StateVariableType , size_t Slots>
bool Cogs::Binding< StateVariableType, Slots >::hasChanged ( ) const
inline

Definition at line 306 of file EffectsCommon.h.

◆ operator[]()

template<typename StateVariableType , size_t Slots>
const StateVariableType & Cogs::Binding< StateVariableType, Slots >::operator[] ( size_t  index) const
inline

Definition at line 346 of file EffectsCommon.h.

◆ setAnyChanged()

template<typename StateVariableType , size_t Slots>
void Cogs::Binding< StateVariableType, Slots >::setAnyChanged ( StateVariableType &&  variable)
inline

Definition at line 330 of file EffectsCommon.h.

◆ setChanged() [1/2]

template<typename StateVariableType , size_t Slots>
void Cogs::Binding< StateVariableType, Slots >::setChanged ( )
inline

Definition at line 316 of file EffectsCommon.h.

◆ setChanged() [2/2]

template<typename StateVariableType , size_t Slots>
void Cogs::Binding< StateVariableType, Slots >::setChanged ( size_t  slot,
StateVariableType  variable,
bool  force = false 
)
inline

Definition at line 321 of file EffectsCommon.h.

◆ setUnchanged()

template<typename StateVariableType , size_t Slots>
void Cogs::Binding< StateVariableType, Slots >::setUnchanged ( )
inline

Definition at line 311 of file EffectsCommon.h.

◆ size()

template<typename StateVariableType , size_t Slots>
size_t Cogs::Binding< StateVariableType, Slots >::size ( ) const
inline

Definition at line 344 of file EffectsCommon.h.

Member Data Documentation

◆ changed

template<typename StateVariableType , size_t Slots>
uint32_t Cogs::Binding< StateVariableType, Slots >::changed = 0xFFFFFFFF
private

Definition at line 353 of file EffectsCommon.h.

◆ numChanged

template<typename StateVariableType , size_t Slots>
uint32_t Cogs::Binding< StateVariableType, Slots >::numChanged = 0
private

Definition at line 354 of file EffectsCommon.h.

◆ variables

template<typename StateVariableType , size_t Slots>
StateVariableType Cogs::Binding< StateVariableType, Slots >::variables[Slots] = { 0 }
private

Definition at line 352 of file EffectsCommon.h.


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