Inventory Engine v4.2
Loading...
Searching...
No Matches
MoreMountains.Tools.MMInterval< T > Struct Template Reference

Public Types

enum  MMIntervalType { Inclusive , Exclusive }

Public Member Functions

 MMInterval (T lowerBound, T upperBound, MMIntervalType lowerboundIntervalType=MMIntervalType.Inclusive, MMIntervalType upperboundIntervalType=MMIntervalType.Inclusive)
 Creates an interval with the specified bounds.
bool Contains (T value)
 Returns true if the interval contains the specified value.

Public Attributes

LowerBound
 the lower bound of this interval
UpperBound
 the upper bound of this interval
MMIntervalType LowerBoundIntervalType
 whether to include or exclude the lower bound in the interval
MMIntervalType UpperBoundIntervalType
 whether to include or exclude the upper bound in the interval

Member Enumeration Documentation

◆ MMIntervalType

enum MoreMountains.Tools.MMInterval-1-g.MMIntervalType
Enumerator
Inclusive 
Exclusive 

Member Function Documentation

◆ Contains()

bool MoreMountains.Tools.MMInterval< T >.Contains ( T value)

Returns true if the interval contains the specified value.

Parameters
value
Returns

◆ MMInterval()

MoreMountains.Tools.MMInterval< T >.MMInterval ( T lowerBound,
T upperBound,
MMIntervalType lowerboundIntervalType = MMIntervalType::Inclusive,
MMIntervalType upperboundIntervalType = MMIntervalType::Inclusive )

Creates an interval with the specified bounds.

Parameters
lowerBound
upperBound
lowerboundIntervalType
upperboundIntervalType

Member Data Documentation

◆ LowerBound

T MoreMountains.Tools.MMInterval< T >.LowerBound

the lower bound of this interval

◆ LowerBoundIntervalType

MMIntervalType MoreMountains.Tools.MMInterval< T >.LowerBoundIntervalType

whether to include or exclude the lower bound in the interval

◆ UpperBound

T MoreMountains.Tools.MMInterval< T >.UpperBound

the upper bound of this interval

◆ UpperBoundIntervalType

MMIntervalType MoreMountains.Tools.MMInterval< T >.UpperBoundIntervalType

whether to include or exclude the upper bound in the interval


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