OpenStructure
Public Types | Public Member Functions
PagedArray< T, P > Class Template Reference

#include <paged_array.hh>

Public Types

typedef T value_type
 

Public Member Functions

 PagedArray ()
 
T & operator[] (uint64_t i)
 
const T & operator[] (uint64_t i) const
 
void push_back (const T &t)
 
uint64_t size () const
 
bool empty () const
 
void clear ()
 
void ClearRange (uint64_t from, uint64_t to)
 
void Write (std::ofstream &out_stream, bool treat_as_pod=true) const
 
void Read (std::ifstream &in_stream, bool treat_as_pod=true)
 
template<typename DS >
void Serialize (DS &ds)
 
bool operator== (const PagedArray &rhs) const
 
bool operator!= (const PagedArray &rhs) const
 

Detailed Description

template<typename T, uint64_t P>
class ost::PagedArray< T, P >

Vector style container that splits content in pages, suited for large amounts of data. Comes with serialization functionality.

Definition at line 39 of file paged_array.hh.

Member Typedef Documentation

◆ value_type

typedef T value_type

Definition at line 43 of file paged_array.hh.

Constructor & Destructor Documentation

◆ PagedArray()

PagedArray ( )
inline

Definition at line 45 of file paged_array.hh.

Member Function Documentation

◆ clear()

void clear ( )
inline

Definition at line 83 of file paged_array.hh.

◆ ClearRange()

void ClearRange ( uint64_t  from,
uint64_t  to 
)
inline

Definition at line 90 of file paged_array.hh.

◆ empty()

bool empty ( ) const
inline

Definition at line 78 of file paged_array.hh.

◆ operator!=()

bool operator!= ( const PagedArray< T, P > &  rhs) const
inline

Definition at line 162 of file paged_array.hh.

◆ operator==()

bool operator== ( const PagedArray< T, P > &  rhs) const
inline

Definition at line 159 of file paged_array.hh.

◆ operator[]() [1/2]

T& operator[] ( uint64_t  i)
inline

Definition at line 47 of file paged_array.hh.

◆ operator[]() [2/2]

const T& operator[] ( uint64_t  i) const
inline

Definition at line 52 of file paged_array.hh.

◆ push_back()

void push_back ( const T &  t)
inline

Definition at line 57 of file paged_array.hh.

◆ Read()

void Read ( std::ifstream &  in_stream,
bool  treat_as_pod = true 
)
inline

Definition at line 128 of file paged_array.hh.

◆ Serialize()

void Serialize ( DS &  ds)
inline

Definition at line 154 of file paged_array.hh.

◆ size()

uint64_t size ( ) const
inline

Definition at line 69 of file paged_array.hh.

◆ Write()

void Write ( std::ofstream &  out_stream,
bool  treat_as_pod = true 
) const
inline

Definition at line 114 of file paged_array.hh.


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