Nui
Public Types | Public Member Functions | Friends | List of all members
Nui::Detail::RangeStateInterval< ValueType, IntervalKind > Class Template Reference

#include <range_event_context.hpp>

Public Types

using value_type = ValueType
 
using interval_kind = IntervalKind
 

Public Member Functions

 RangeStateInterval (value_type low, value_type high)
 
void reset (value_type low, value_type high)
 
value_type low () const
 
value_type high () const
 
void low (value_type value)
 
void high (value_type value)
 
bool overlaps (value_type l, value_type h) const
 
bool overlaps_exclusive (value_type l, value_type h) const
 
bool overlaps (RangeStateInterval const &other) const
 
bool overlapsOrIsAdjacent (value_type l, value_type h) const
 
bool overlapsOrIsAdjacent (RangeStateInterval const &other) const
 
bool overlaps_exclusive (RangeStateInterval const &other) const
 
bool within (value_type value) const
 
bool within (RangeStateInterval const &other) const
 
void shiftRight (value_type offset)
 
void shiftLeft (value_type offset)
 
bool isLeftOf (RangeStateInterval const &other) const
 
value_type operator- (RangeStateInterval const &other) const
 
value_type size () const
 
RangeStateInterval expand (RangeStateInterval const &other) const
 
RangeStateInterval join (RangeStateInterval const &other) const
 

Friends

bool operator== (RangeStateInterval const &lhs, RangeStateInterval const &rhs)
 
bool operator!= (RangeStateInterval const &lhs, RangeStateInterval const &rhs)
 

Member Typedef Documentation

◆ interval_kind

template<typename ValueType , typename IntervalKind >
using Nui::Detail::RangeStateInterval< ValueType, IntervalKind >::interval_kind = IntervalKind

◆ value_type

template<typename ValueType , typename IntervalKind >
using Nui::Detail::RangeStateInterval< ValueType, IntervalKind >::value_type = ValueType

Constructor & Destructor Documentation

◆ RangeStateInterval()

template<typename ValueType , typename IntervalKind >
Nui::Detail::RangeStateInterval< ValueType, IntervalKind >::RangeStateInterval ( value_type  low,
value_type  high 
)
inline

Member Function Documentation

◆ expand()

template<typename ValueType , typename IntervalKind >
RangeStateInterval Nui::Detail::RangeStateInterval< ValueType, IntervalKind >::expand ( RangeStateInterval< ValueType, IntervalKind > const &  other) const
inline

◆ high() [1/2]

template<typename ValueType , typename IntervalKind >
value_type Nui::Detail::RangeStateInterval< ValueType, IntervalKind >::high ( ) const
inline

◆ high() [2/2]

template<typename ValueType , typename IntervalKind >
void Nui::Detail::RangeStateInterval< ValueType, IntervalKind >::high ( value_type  value)
inline

◆ isLeftOf()

template<typename ValueType , typename IntervalKind >
bool Nui::Detail::RangeStateInterval< ValueType, IntervalKind >::isLeftOf ( RangeStateInterval< ValueType, IntervalKind > const &  other) const
inline

◆ join()

template<typename ValueType , typename IntervalKind >
RangeStateInterval Nui::Detail::RangeStateInterval< ValueType, IntervalKind >::join ( RangeStateInterval< ValueType, IntervalKind > const &  other) const
inline

◆ low() [1/2]

template<typename ValueType , typename IntervalKind >
value_type Nui::Detail::RangeStateInterval< ValueType, IntervalKind >::low ( ) const
inline

◆ low() [2/2]

template<typename ValueType , typename IntervalKind >
void Nui::Detail::RangeStateInterval< ValueType, IntervalKind >::low ( value_type  value)
inline

◆ operator-()

template<typename ValueType , typename IntervalKind >
value_type Nui::Detail::RangeStateInterval< ValueType, IntervalKind >::operator- ( RangeStateInterval< ValueType, IntervalKind > const &  other) const
inline

◆ overlaps() [1/2]

template<typename ValueType , typename IntervalKind >
bool Nui::Detail::RangeStateInterval< ValueType, IntervalKind >::overlaps ( RangeStateInterval< ValueType, IntervalKind > const &  other) const
inline

◆ overlaps() [2/2]

template<typename ValueType , typename IntervalKind >
bool Nui::Detail::RangeStateInterval< ValueType, IntervalKind >::overlaps ( value_type  l,
value_type  h 
) const
inline

◆ overlaps_exclusive() [1/2]

template<typename ValueType , typename IntervalKind >
bool Nui::Detail::RangeStateInterval< ValueType, IntervalKind >::overlaps_exclusive ( RangeStateInterval< ValueType, IntervalKind > const &  other) const
inline

◆ overlaps_exclusive() [2/2]

template<typename ValueType , typename IntervalKind >
bool Nui::Detail::RangeStateInterval< ValueType, IntervalKind >::overlaps_exclusive ( value_type  l,
value_type  h 
) const
inline

◆ overlapsOrIsAdjacent() [1/2]

template<typename ValueType , typename IntervalKind >
bool Nui::Detail::RangeStateInterval< ValueType, IntervalKind >::overlapsOrIsAdjacent ( RangeStateInterval< ValueType, IntervalKind > const &  other) const
inline

◆ overlapsOrIsAdjacent() [2/2]

template<typename ValueType , typename IntervalKind >
bool Nui::Detail::RangeStateInterval< ValueType, IntervalKind >::overlapsOrIsAdjacent ( value_type  l,
value_type  h 
) const
inline

◆ reset()

template<typename ValueType , typename IntervalKind >
void Nui::Detail::RangeStateInterval< ValueType, IntervalKind >::reset ( value_type  low,
value_type  high 
)
inline

◆ shiftLeft()

template<typename ValueType , typename IntervalKind >
void Nui::Detail::RangeStateInterval< ValueType, IntervalKind >::shiftLeft ( value_type  offset)
inline

◆ shiftRight()

template<typename ValueType , typename IntervalKind >
void Nui::Detail::RangeStateInterval< ValueType, IntervalKind >::shiftRight ( value_type  offset)
inline

◆ size()

template<typename ValueType , typename IntervalKind >
value_type Nui::Detail::RangeStateInterval< ValueType, IntervalKind >::size ( ) const
inline

◆ within() [1/2]

template<typename ValueType , typename IntervalKind >
bool Nui::Detail::RangeStateInterval< ValueType, IntervalKind >::within ( RangeStateInterval< ValueType, IntervalKind > const &  other) const
inline

◆ within() [2/2]

template<typename ValueType , typename IntervalKind >
bool Nui::Detail::RangeStateInterval< ValueType, IntervalKind >::within ( value_type  value) const
inline

Friends And Related Function Documentation

◆ operator!=

template<typename ValueType , typename IntervalKind >
bool operator!= ( RangeStateInterval< ValueType, IntervalKind > const &  lhs,
RangeStateInterval< ValueType, IntervalKind > const &  rhs 
)
friend

◆ operator==

template<typename ValueType , typename IntervalKind >
bool operator== ( RangeStateInterval< ValueType, IntervalKind > const &  lhs,
RangeStateInterval< ValueType, IntervalKind > const &  rhs 
)
friend

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