iaux::iaRLE< TValue, TIndex > Class Template Reference

#include <iaRLE.h>

Public Member Functions

 iaRLE (TIndex size)
 
 iaRLE ()=default
 
void setSize (TIndex size, TValue clearValue=0)
 
TIndex getSize () const
 
void clear (TValue clearValue=0)
 
void setValue (TIndex index, TValue value)
 
void setValue (TIndex index, TIndex length, TValue value)
 
TValue getValue (TIndex index) const
 
iaRLE< TValue, TIndex > operator= (const iaRLE< TValue, TIndex > &data)
 

Detailed Description

template<typename TValue, typename TIndex>
class iaux::iaRLE< TValue, TIndex >

run length encoded buffer

Constructor & Destructor Documentation

◆ iaRLE() [1/2]

template<typename TValue , typename TIndex >
iaRLE::iaRLE ( TIndex  size)

init members

Parameters
sizethe size of this buffer

◆ iaRLE() [2/2]

template<typename TValue , typename TIndex >
iaux::iaRLE< TValue, TIndex >::iaRLE ( )
default

init members

Member Function Documentation

◆ clear()

template<typename TValue , typename TIndex >
void iaRLE::clear ( TValue  clearValue = 0)

resets the memory to 0

◆ getSize()

template<typename TValue , typename TIndex >
TIndex iaRLE::getSize ( ) const
Returns
size of RLE buffer

◆ getValue()

template<typename TValue , typename TIndex >
TValue iaRLE::getValue ( TIndex  index) const
Returns
value at given index
Parameters
indexindex position of value to return

◆ operator=()

template<typename TValue , typename TIndex >
iaRLE< TValue, TIndex > iaRLE::operator= ( const iaRLE< TValue, TIndex > &  data)

makes copy of RLE data

Parameters
datathe source data
Returns
the destination data

◆ setSize()

template<typename TValue , typename TIndex >
void iaRLE::setSize ( TIndex  size,
TValue  clearValue = 0 
)

sets size of rle buffer

Parameters
sizethe size of this buffer
clearValueoptional clear value

◆ setValue() [1/2]

template<typename TValue , typename TIndex >
void iaRLE::setValue ( TIndex  index,
TIndex  length,
TValue  value 
)

sets value in a range of indexes

Parameters
indexindex to start from
lengthamount of values to set
valuethe value to set

◆ setValue() [2/2]

template<typename TValue , typename TIndex >
void iaRLE::setValue ( TIndex  index,
TValue  value 
)

sets value at given index

Parameters
indexindex position in buffer
valuethe value to set

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