aimstil  5.0.5
til::rle_array< T, TCount >::Segment Class Reference

A Segment is composed of a value and a length. More...

#include <til/rle_array.h>

Public Types

typedef TCount count_type
 

Public Member Functions

 Segment ()
 
 Segment (TCount r, const T &v)
 
const TCount & length () const
 
TCount & length ()
 
const T & value () const
 
T & value ()
 

Detailed Description

template<typename T, typename TCount = unsigned int>
class til::rle_array< T, TCount >::Segment

A Segment is composed of a value and a length.

The RLE array is simply a collection of those segments.

Definition at line 110 of file rle_array.h.

Member Typedef Documentation

◆ count_type

template<typename T, typename TCount = unsigned int>
typedef TCount til::rle_array< T, TCount >::Segment::count_type

Definition at line 113 of file rle_array.h.

Constructor & Destructor Documentation

◆ Segment() [1/2]

template<typename T, typename TCount = unsigned int>
til::rle_array< T, TCount >::Segment::Segment ( )
inline

Definition at line 116 of file rle_array.h.

◆ Segment() [2/2]

template<typename T, typename TCount = unsigned int>
til::rle_array< T, TCount >::Segment::Segment ( TCount  r,
const T &  v 
)
inline

Definition at line 118 of file rle_array.h.

Member Function Documentation

◆ length() [1/2]

template<typename T, typename TCount = unsigned int>
const TCount& til::rle_array< T, TCount >::Segment::length ( ) const
inline

Definition at line 124 of file rle_array.h.

◆ length() [2/2]

template<typename T, typename TCount = unsigned int>
TCount& til::rle_array< T, TCount >::Segment::length ( )
inline

Definition at line 125 of file rle_array.h.

◆ value() [1/2]

template<typename T, typename TCount = unsigned int>
const T& til::rle_array< T, TCount >::Segment::value ( ) const
inline

Definition at line 126 of file rle_array.h.

◆ value() [2/2]

template<typename T, typename TCount = unsigned int>
T& til::rle_array< T, TCount >::Segment::value ( )
inline

Definition at line 127 of file rle_array.h.


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