libfaster API Documentation  Development Version
Super fast distributted computing
faster::fastCommBuffer Class Reference

Description

Definition at line 16 of file fastCommBuffer.h.

Public Member Functions

 fastCommBuffer (size_t s)
 
void setBuffer (void *buffer, size_t s)
 
void reset ()
 
char * data ()
 
char * pos ()
 
char * pos (size_t pos)
 
size_t size ()
 
size_t free ()
 
void advance (size_t pos)
 
void grow (size_t s)
 
void print ()
 
template<typename T >
void write (T &v, size_t s)
 
template<typename T >
void writePos (const T &v, size_t s, size_t pos)
 
template<typename T >
void writePos (const T &v, size_t pos)
 
template<typename T >
void writeSafe (T *v, size_t s)
 
template<typename T >
void write (T *v, size_t s)
 
template<typename T >
void write (T v)
 
void write (std::string i)
 
void write (std::vector< std::string > v)
 
template<typename T >
void write (std::vector< T > v)
 
template<typename K , typename T >
void write (std::pair< K, T > p)
 
template<typename K , typename T >
void write (std::tuple< K, T, size_t > t)
 
void write (procstat &s)
 
void writePos (procstat &s, size_t pos)
 
void read (procstat &s)
 
void advance (procstat &s)
 
template<typename T >
void read (T &v, size_t s)
 
template<typename T >
void read (T *v, size_t s)
 
template<typename T >
void read (T &v)
 
template<typename T >
void readVec (std::vector< T > &v, size_t s)
 
void read (std::vector< std::string > &v)
 
void readString (std::string &v, size_t s)
 
template<typename T >
void read (std::vector< T > &v)
 
void read (std::string &s)
 
template<typename K , typename T >
void read (std::pair< K, T > &p)
 
template<typename K , typename T >
void read (std::tuple< K, T, size_t > &t)
 
template<typename T >
fastCommBufferoperator<< (T v)
 
template<typename T >
fastCommBufferoperator>> (T &v)
 

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