VOX
A little voxel engine
Loading...
Searching...
No Matches
RLE_TEST< T > Class Template Reference

#include <RLE_TEST.hpp>

Collaboration diagram for RLE_TEST< T >:
Collaboration graph

Public Types

typedef std::pair< T, uint16_t > RLEPair
 

Public Member Functions

 RLE_TEST ()
 
void compressData (const T *data, const size_t &size)
 
void setContent (const void *data, const size_t &size)
 
std::vector< T > getData () const
 
void resize (size_t new_raw_size)
 
std::size_t getSize () const
 
std::size_t getRawSize () const
 Get the size in bytes of the underlying compressed data. More...
 
const std::vector< RLEPair > & getRaw () const
 
std::vector< RLEPair > & getRaw ()
 

Static Public Member Functions

static size_t sizeOfPair ()
 

Member Typedef Documentation

◆ RLEPair

template<typename T >
typedef std::pair<T, uint16_t> RLE_TEST< T >::RLEPair

Constructor & Destructor Documentation

◆ RLE_TEST()

template<typename T >
RLE_TEST< T >::RLE_TEST ( )
inline

Member Function Documentation

◆ compressData()

template<typename T >
void RLE_TEST< T >::compressData ( const T *  data,
const size_t &  size 
)
inline

◆ getData()

template<typename T >
std::vector< T > RLE_TEST< T >::getData ( ) const
inline

◆ getRaw() [1/2]

template<typename T >
std::vector< RLEPair > & RLE_TEST< T >::getRaw ( )
inline

◆ getRaw() [2/2]

template<typename T >
const std::vector< RLEPair > & RLE_TEST< T >::getRaw ( ) const
inline

◆ getRawSize()

template<typename T >
std::size_t RLE_TEST< T >::getRawSize ( ) const
inline

Get the size in bytes of the underlying compressed data.

Returns
std::size_t

◆ getSize()

template<typename T >
std::size_t RLE_TEST< T >::getSize ( ) const
inline

◆ resize()

template<typename T >
void RLE_TEST< T >::resize ( size_t  new_raw_size)
inline

◆ setContent()

template<typename T >
void RLE_TEST< T >::setContent ( const void *  data,
const size_t &  size 
)
inline

◆ sizeOfPair()

template<typename T >
static size_t RLE_TEST< T >::sizeOfPair ( )
inlinestatic

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