Ion
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
ion::math::RangeBase< Dimension, T > Class Template Reference

The RangeBase class makes it possible to treat Ranges with Dimension=1 specially. More...

#include "range.h"

Inheritance diagram for ion::math::RangeBase< Dimension, T >:

Public Types

enum  { kDimension = Dimension }
 The dimension of the Range. More...
 
typedef Point< Dimension, TEndpoint
 Convenience typedef for a Range endpoint type. More...
 
typedef Vector< Dimension, TSize
 Convenience typedef for the size of a Range. More...
 

Detailed Description

template<int Dimension, typename T>
class ion::math::RangeBase< Dimension, T >

The RangeBase class makes it possible to treat Ranges with Dimension=1 specially.

For example, a Range<1, int> will store two ints instead of two Point<1, int> instances, which would then require callers to index (always with 0) into the points.

Definition at line 70 of file range.h.

Member Typedef Documentation

template<int Dimension, typename T >
typedef Point<Dimension, T> ion::math::RangeBase< Dimension, T >::Endpoint

Convenience typedef for a Range endpoint type.

Definition at line 76 of file range.h.

template<int Dimension, typename T >
typedef Vector<Dimension, T> ion::math::RangeBase< Dimension, T >::Size

Convenience typedef for the size of a Range.

Definition at line 79 of file range.h.

Member Enumeration Documentation

template<int Dimension, typename T >
anonymous enum

The dimension of the Range.

Enumerator
kDimension 

Definition at line 73 of file range.h.


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