ConfigDB::EnumRange< T > Class Template Reference

Support random() for ranges of enumerated types. More...

#include <PropertyInfo.h>

Inheritance diagram for ConfigDB::EnumRange< T >:
Collaboration diagram for ConfigDB::EnumRange< T >:

Public Member Functions

random () const
 
- Public Member Functions inherited from TRange< T >
constexpr TRange ()=default
 
constexpr TRange (T min, T max)
 
constexpr TRange (T count)
 
template<typename V >
constexpr bool contains (V value) const
 Determine if range contains a value. More...
 
template<typename Q >
bool contains (const TRange< Q > &value) const
 Determine if range contains another range (subset) More...
 
template<typename V >
constexpr T clip (V value) const
 Clip values to within the range. More...
 
random () const
 Return a random value within the range. More...
 
Iterator begin () const
 
Iterator end () const
 
String toString () const
 
 operator String () const
 

Additional Inherited Members

- Public Attributes inherited from TRange< T >
min {}
 
max {}
 

Detailed Description

template<typename T>
class ConfigDB::EnumRange< T >

Support random() for ranges of enumerated types.

Member Function Documentation

◆ random()

template<typename T >
T ConfigDB::EnumRange< T >::random ( ) const
inline

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