Anklang 0.3.0-460-gc4ef46ba
ASE — Anklang Sound Engine (C++)

« « « Anklang Documentation
Loading...
Searching...
No Matches
Public Member Functions | Protected Member Functions | List of all members
Ase::FastMemArray< T, ALIGNMENT > Class Template Reference

Array with cache-line-alignment containing a fixed numer of PODs. More...

#include "memory.hh"

Public Member Functions

 FastMemArray (size_t n_elements)
 
 FastMemArray (const std::vector< T > &elements)
 
T * begin ()
 
T * end ()
 
size_t size () const
 
T & operator[] (size_t n)
 
const T & operator[] (size_t n) const
 
T & at (size_t n)
 
const T & at (size_t n) const
 

Protected Member Functions

void range_check (size_t n) const
 

Detailed Description

template<typename T, size_t ALIGNMENT = FastMemory::cache_line_size>
class Ase::FastMemArray< T, ALIGNMENT >

Array with cache-line-alignment containing a fixed numer of PODs.

Definition at line 24 of file memory.hh.

Constructor & Destructor Documentation

◆ FastMemArray() [1/2]

template<typename T , size_t ALIGNMENT = FastMemory::cache_line_size>
Ase::FastMemArray< T, ALIGNMENT >::FastMemArray ( size_t  n_elements)

Definition at line 39 of file memory.hh.

◆ FastMemArray() [2/2]

template<typename T , size_t ALIGNMENT = FastMemory::cache_line_size>
Ase::FastMemArray< T, ALIGNMENT >::FastMemArray ( const std::vector< T > &  elements)

Definition at line 45 of file memory.hh.

◆ ~FastMemArray()

template<typename T , size_t ALIGNMENT = FastMemory::cache_line_size>
Ase::FastMemArray< T, ALIGNMENT >::~FastMemArray ( )

Definition at line 51 of file memory.hh.

Member Function Documentation

◆ at() [1/2]

template<typename T , size_t ALIGNMENT = FastMemory::cache_line_size>
T & Ase::FastMemArray< T, ALIGNMENT >::at ( size_t  n)

Definition at line 61 of file memory.hh.

◆ at() [2/2]

template<typename T , size_t ALIGNMENT = FastMemory::cache_line_size>
const T & Ase::FastMemArray< T, ALIGNMENT >::at ( size_t  n) const

Definition at line 62 of file memory.hh.

◆ begin()

template<typename T , size_t ALIGNMENT = FastMemory::cache_line_size>
T * Ase::FastMemArray< T, ALIGNMENT >::begin ( )

Definition at line 56 of file memory.hh.

◆ end()

template<typename T , size_t ALIGNMENT = FastMemory::cache_line_size>
T * Ase::FastMemArray< T, ALIGNMENT >::end ( )

Definition at line 57 of file memory.hh.

◆ operator[]() [1/2]

template<typename T , size_t ALIGNMENT = FastMemory::cache_line_size>
T & Ase::FastMemArray< T, ALIGNMENT >::operator[] ( size_t  n)

Definition at line 59 of file memory.hh.

◆ operator[]() [2/2]

template<typename T , size_t ALIGNMENT = FastMemory::cache_line_size>
const T & Ase::FastMemArray< T, ALIGNMENT >::operator[] ( size_t  n) const

Definition at line 60 of file memory.hh.

◆ range_check()

template<typename T , size_t ALIGNMENT = FastMemory::cache_line_size>
void Ase::FastMemArray< T, ALIGNMENT >::range_check ( size_t  n) const
protected

Definition at line 33 of file memory.hh.

◆ size()

template<typename T , size_t ALIGNMENT = FastMemory::cache_line_size>
size_t Ase::FastMemArray< T, ALIGNMENT >::size ( ) const

Definition at line 58 of file memory.hh.


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