Class for ranges of types, such as minimum/maximum.
More...
#include <Range.hpp>
List of all members.
Public Member Functions
-
DataRange ()
- Default constructor, no initializiation.
-
const Type & Min () const
- The minimum.
-
const Type & Max () const
- The maximum.
-
template<class OtherType > DataRange (const DataRange< OtherType > &DR)
- Initialize the range by a given type, which must be convertible.
-
template<class OtherType > void expand (const DataRange< OtherType > &DR)
- Expand the range by a given type, which must be convertible.
-
override void expandRange (const RefPtr< DataRangeBase > &DRB)
- Expand range by same type.
-
template<class CompareType > bool contains (const CompareType &Value) const
- Check if certain value is contained here.
Static Public Member Functions
-
static RefPtr< DataRange > get (CreativeArrayBase &CAB)
- Get a cached range from the creative array if the data are older or than the range.
-
static RefPtr< DataRange > get (Field &F)
- Get a cached range from the Field if the data are older or than the range.
-
static RefPtr< DataRange > compute (CreativeArrayBase &CAB)
- Perform an actual computation of the range.
-
static RefPtr< DataRange > retrieve (CreativeArrayBase &CAB)
Public Attributes
-
Type Minimum
-
Type Maximum
Detailed Description
template<class Type>
struct Fiber::DataRange< Type >
Class for ranges of types, such as minimum/maximum.
- Examples:
-
TransparentColoredSurface.cpp.