Castor3D 0.16.0
Multiplatform 3D engine
Public Types | Public Member Functions | List of all members
castor::RangeSequenceT< T > Class Template Reference

A contiguous ranges sequence. More...

#include <RangeSequence.hpp>

Inheritance diagram for castor::RangeSequenceT< T >:
Inheritance graph
[legend]
Collaboration diagram for castor::RangeSequenceT< T >:
Collaboration graph
[legend]

Public Types

using RangeType = IndexedRangeT< T >
 
using SequenceType = Vector< RangeType >
 

Public Member Functions

 RangeSequenceT (Vector< T > const &sequence)
 
RangeType const & getRange (T const &value) const
 
- Public Member Functions inherited from castor::Range< T >
 Range (T const &min, T const &max) noexcept
 Constructor.
 
T const & clamp (T const &value) const noexcept
 Puts a value in the range.
 
bool has (T const &value) const noexcept
 
float percent (T const &value) const noexcept
 Gives the percentage matching the given value.
 
float invPercent (T const &value) const noexcept
 Gives the percentage matching the given value.
 
value (float const &percent) const noexcept
 Gives the value matching the given percentage.
 
invValue (float const &percent) const noexcept
 Gives the value matching the given percentage.
 
T const & getMin () const noexcept
 
T const & getMax () const noexcept
 

Detailed Description

template<typename T>
class castor::RangeSequenceT< T >

A contiguous ranges sequence.

Member Typedef Documentation

◆ RangeType

template<typename T >
using castor::RangeSequenceT< T >::RangeType = IndexedRangeT< T >

◆ SequenceType

template<typename T >
using castor::RangeSequenceT< T >::SequenceType = Vector< RangeType >

Constructor & Destructor Documentation

◆ RangeSequenceT()

template<typename T >
castor::RangeSequenceT< T >::RangeSequenceT ( Vector< T > const & sequence)
inlineexplicit

Member Function Documentation

◆ getRange()

template<typename T >
RangeType const & castor::RangeSequenceT< T >::getRange ( T const & value) const
inline

References castor::Range< T >::value().

Here is the call graph for this function:

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