ESPResSo
Extensible Simulation Package for Research on Soft Matter Systems
Loading...
Searching...
No Matches
Utils::compact_vector< T > Class Template Reference

Custom vector container optimized for size. More...

#include <compact_vector.hpp>

+ Inheritance diagram for Utils::compact_vector< T >:
+ Collaboration diagram for Utils::compact_vector< T >:

Public Member Functions

template<class Archive >
void save (Archive &oa, unsigned int const) const
 
template<class Archive >
void load (Archive &ia, unsigned int const)
 
template<class Archive >
void serialize (Archive &ar, unsigned int const file_version)
 

Detailed Description

template<typename T>
class Utils::compact_vector< T >

Custom vector container optimized for size.

Allocate only 16 bits for the number of elements, and take only 16 + N * sizeof(T) bits during serialization in a binary archive.

Definition at line 44 of file compact_vector.hpp.

Member Function Documentation

◆ load()

template<typename T >
template<class Archive >
void Utils::compact_vector< T >::load ( Archive &  ia,
unsigned int const   
)
inline

Definition at line 56 of file compact_vector.hpp.

◆ save()

template<typename T >
template<class Archive >
void Utils::compact_vector< T >::save ( Archive &  oa,
unsigned int const   
) const
inline

Definition at line 51 of file compact_vector.hpp.

◆ serialize()

template<typename T >
template<class Archive >
void Utils::compact_vector< T >::serialize ( Archive &  ar,
unsigned int const  file_version 
)
inline

Definition at line 64 of file compact_vector.hpp.


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