neoGFX
Cross-platform C++ app/game engine
Loading...
Searching...
No Matches
neolib::setting_constraints< T > Class Template Reference

#include <setting_constraints.hpp>

Inheritance diagram for neolib::setting_constraints< T >:
neolib::i_setting_constraints

Public Types

typedef T value_type
 
typedef setting_value< value_typesetting_value_type
 

Public Member Functions

 setting_constraints (bool aOptional=false, bool aInitiallyDisabled=false, setting_value_type const &aMinimumValue=setting_value_type{}, setting_value_type const &aMaximumValue=setting_value_type{}, setting_value_type const &aStepValue=setting_value_type{}, i_vector< i_setting_value > const &aAllowableValues=vector< setting_value_type >{})
 
 setting_constraints (i_setting_constraints const &aOther)
 
bool optional () const override
 
bool initially_disabled () const override
 
bool has_minimum_value () const override
 
bool has_maximum_value () const override
 
bool has_step_value () const override
 
bool has_allowable_values () const override
 
setting_value_type constminimum_value () const override
 
setting_value_type constmaximum_value () const override
 
setting_value_type conststep_value () const override
 
vector< setting_value_type > constallowable_values () const override
 
- Public Member Functions inherited from neolib::i_setting_constraints
virtual ~i_setting_constraints ()=default
 
template<typename T >
abstract_return_t< const Tminimum_value () const
 
template<typename T >
abstract_return_t< const Tmaximum_value () const
 
template<typename T >
abstract_return_t< const Tstep_value () const
 

Detailed Description

template<typename T>
class neolib::setting_constraints< T >

Definition at line 46 of file setting_constraints.hpp.

Member Typedef Documentation

◆ setting_value_type

Definition at line 50 of file setting_constraints.hpp.

◆ value_type

template<typename T >
typedef T neolib::setting_constraints< T >::value_type

Definition at line 49 of file setting_constraints.hpp.

Constructor & Destructor Documentation

◆ setting_constraints() [1/2]

template<typename T >
neolib::setting_constraints< T >::setting_constraints ( bool  aOptional = false,
bool  aInitiallyDisabled = false,
setting_value_type const aMinimumValue = setting_value_type{},
setting_value_type const aMaximumValue = setting_value_type{},
setting_value_type const aStepValue = setting_value_type{},
i_vector< i_setting_value > const aAllowableValues = vector<setting_value_type>{} 
)
inline

Definition at line 52 of file setting_constraints.hpp.

◆ setting_constraints() [2/2]

template<typename T >
neolib::setting_constraints< T >::setting_constraints ( i_setting_constraints< T > const aOther)
inline

Definition at line 66 of file setting_constraints.hpp.

Member Function Documentation

◆ allowable_values()

template<typename T >
vector< setting_value_type > const & neolib::setting_constraints< T >::allowable_values ( ) const
inlineoverridevirtual

Implements neolib::i_setting_constraints.

Definition at line 111 of file setting_constraints.hpp.

◆ has_allowable_values()

template<typename T >
bool neolib::setting_constraints< T >::has_allowable_values ( ) const
inlineoverridevirtual

Implements neolib::i_setting_constraints.

Definition at line 95 of file setting_constraints.hpp.

◆ has_maximum_value()

template<typename T >
bool neolib::setting_constraints< T >::has_maximum_value ( ) const
inlineoverridevirtual

Implements neolib::i_setting_constraints.

Definition at line 87 of file setting_constraints.hpp.

◆ has_minimum_value()

template<typename T >
bool neolib::setting_constraints< T >::has_minimum_value ( ) const
inlineoverridevirtual

Implements neolib::i_setting_constraints.

Definition at line 83 of file setting_constraints.hpp.

◆ has_step_value()

template<typename T >
bool neolib::setting_constraints< T >::has_step_value ( ) const
inlineoverridevirtual

Implements neolib::i_setting_constraints.

Definition at line 91 of file setting_constraints.hpp.

◆ initially_disabled()

template<typename T >
bool neolib::setting_constraints< T >::initially_disabled ( ) const
inlineoverridevirtual

Implements neolib::i_setting_constraints.

Definition at line 79 of file setting_constraints.hpp.

◆ maximum_value()

template<typename T >
setting_value_type const & neolib::setting_constraints< T >::maximum_value ( ) const
inlineoverridevirtual

Implements neolib::i_setting_constraints.

Definition at line 103 of file setting_constraints.hpp.

◆ minimum_value()

template<typename T >
setting_value_type const & neolib::setting_constraints< T >::minimum_value ( ) const
inlineoverridevirtual

Implements neolib::i_setting_constraints.

Definition at line 99 of file setting_constraints.hpp.

◆ optional()

template<typename T >
bool neolib::setting_constraints< T >::optional ( ) const
inlineoverridevirtual

Implements neolib::i_setting_constraints.

Definition at line 75 of file setting_constraints.hpp.

◆ step_value()

template<typename T >
setting_value_type const & neolib::setting_constraints< T >::step_value ( ) const
inlineoverridevirtual

Implements neolib::i_setting_constraints.

Definition at line 107 of file setting_constraints.hpp.


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