SAFR Windows SDK
All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Properties Events
RealNetworks.CameraKit.Range< T > Class Template Reference

Represents a inclusive range. More...

Public Member Functions

 Range (T lower, T upper)
 
override string ToString ()
 Presents the Range in readable format. More...
 
bool IsValid ()
 Determines if the range is valid. More...
 
bool ContainsValue (T value)
 Determines if the provided value is inside the range. More...
 
bool IsInsideRange (Range< T > range)
 Determines if this Range is inside the bounds of another range. More...
 
bool ContainsRange (Range< T > range)
 Determines if another range is inside the bounds of this range. More...
 

Properties

Minimum [get, set]
 Minimum value of the range. More...
 
Maximum [get, set]
 Maximum value of the range. More...
 

Detailed Description

Represents a inclusive range.

Template Parameters
Tthe range components type
Type Constraints
T :IComparable<T> 

Constructor & Destructor Documentation

◆ Range()

RealNetworks.CameraKit.Range< T >.Range ( lower,
upper 
)

Member Function Documentation

◆ ContainsRange()

bool RealNetworks.CameraKit.Range< T >.ContainsRange ( Range< T >  range)

Determines if another range is inside the bounds of this range.

Parameters
rangeThe child range to test
Returns
True if range is inside, else false

◆ ContainsValue()

bool RealNetworks.CameraKit.Range< T >.ContainsValue ( value)

Determines if the provided value is inside the range.

Parameters
valueThe value to test
Returns
True if the value is inside Range, else false

◆ IsInsideRange()

bool RealNetworks.CameraKit.Range< T >.IsInsideRange ( Range< T >  range)

Determines if this Range is inside the bounds of another range.

Parameters
rangeThe parent range to test on
Returns
True if range is inclusive, else false

◆ IsValid()

bool RealNetworks.CameraKit.Range< T >.IsValid ( )

Determines if the range is valid.

Returns
True if range is valid, else false

◆ ToString()

override string RealNetworks.CameraKit.Range< T >.ToString ( )

Presents the Range in readable format.

Returns
String representation of the Range

Property Documentation

◆ Maximum

T RealNetworks.CameraKit.Range< T >.Maximum
getset

Maximum value of the range.

◆ Minimum

T RealNetworks.CameraKit.Range< T >.Minimum
getset

Minimum value of the range.