PhyStar  v0.0.0 thu24
gsmpi::SerializedBuffer Struct Reference

#include <SerializedSendRecvModel.h>

Public Member Functions

 SerializedBuffer ()
 
void SetBlockNum (int blockNum)
 
void Register (int block, int entrylen)
 
void ResetBuffer ()
 
void ResetPtr ()
 
SerializedBuffer & SetBuffer ()
 
void AllocateBuffer (int length)
 
void Add (int block, const int data)
 
void Add (int block, const unsigned int data)
 
void Add (int block, const double data)
 
template<typename T_real >
void AddArr (int block, const Array1< T_real > &arr)
 
template<typename T_real >
void AddVec (int block, const std::vector< T_real > &arr)
 
template<typename T_real , int N_dim>
void AddBlinVec (int block, const blin::Vec< T_real, N_dim > &arr)
 
void Get (int block, int &data)
 
void Get (int block, unsigned int &data)
 
void Get (int block, double &data)
 
template<typename T_real >
void GetArr (int block, Array1< T_real > &arr)
 
template<typename T_real >
void GetVec (int block, std::vector< T_real > &arr)
 
template<typename T_real , int N_dim>
void GetBlinVec (int block, blin::Vec< T_real, N_dim > &arr)
 

Public Attributes

Array1< SerializedData > buffer
 
int num_of_blocks
 
int len
 
Array1i counts
 
Array1i disps
 
Array1i block_len
 
Array1i _ptr
 

Constructor & Destructor Documentation

◆ SerializedBuffer()

gsmpi::SerializedBuffer::SerializedBuffer ( )
inline

Member Function Documentation

◆ Add() [1/3]

void gsmpi::SerializedBuffer::Add ( int  block,
const double  data 
)
inline

◆ Add() [2/3]

void gsmpi::SerializedBuffer::Add ( int  block,
const int  data 
)
inline
Here is the caller graph for this function:

◆ Add() [3/3]

void gsmpi::SerializedBuffer::Add ( int  block,
const unsigned int  data 
)
inline

◆ AddArr()

template<typename T_real >
void gsmpi::SerializedBuffer::AddArr ( int  block,
const Array1< T_real > &  arr 
)
inline
Here is the caller graph for this function:

◆ AddBlinVec()

template<typename T_real , int N_dim>
void gsmpi::SerializedBuffer::AddBlinVec ( int  block,
const blin::Vec< T_real, N_dim > &  arr 
)
inline
Here is the caller graph for this function:

◆ AddVec()

template<typename T_real >
void gsmpi::SerializedBuffer::AddVec ( int  block,
const std::vector< T_real > &  arr 
)
inline

◆ AllocateBuffer()

void gsmpi::SerializedBuffer::AllocateBuffer ( int  length)
inline
Here is the caller graph for this function:

◆ Get() [1/3]

void gsmpi::SerializedBuffer::Get ( int  block,
double &  data 
)
inline

◆ Get() [2/3]

void gsmpi::SerializedBuffer::Get ( int  block,
int &  data 
)
inline
Here is the caller graph for this function:

◆ Get() [3/3]

void gsmpi::SerializedBuffer::Get ( int  block,
unsigned int &  data 
)
inline

◆ GetArr()

template<typename T_real >
void gsmpi::SerializedBuffer::GetArr ( int  block,
Array1< T_real > &  arr 
)
inline
Here is the caller graph for this function:

◆ GetBlinVec()

template<typename T_real , int N_dim>
void gsmpi::SerializedBuffer::GetBlinVec ( int  block,
blin::Vec< T_real, N_dim > &  arr 
)
inline
Here is the caller graph for this function:

◆ GetVec()

template<typename T_real >
void gsmpi::SerializedBuffer::GetVec ( int  block,
std::vector< T_real > &  arr 
)
inline

◆ Register()

void gsmpi::SerializedBuffer::Register ( int  block,
int  entrylen 
)
inline

◆ ResetBuffer()

void gsmpi::SerializedBuffer::ResetBuffer ( )
inline

◆ ResetPtr()

void gsmpi::SerializedBuffer::ResetPtr ( )
inline

◆ SetBlockNum()

void gsmpi::SerializedBuffer::SetBlockNum ( int  blockNum)
inline

◆ SetBuffer()

SerializedBuffer& gsmpi::SerializedBuffer::SetBuffer ( )
inline

Member Data Documentation

◆ _ptr

Array1i gsmpi::SerializedBuffer::_ptr

◆ block_len

Array1i gsmpi::SerializedBuffer::block_len

◆ buffer

Array1<SerializedData> gsmpi::SerializedBuffer::buffer

◆ counts

Array1i gsmpi::SerializedBuffer::counts

◆ disps

Array1i gsmpi::SerializedBuffer::disps

◆ len

int gsmpi::SerializedBuffer::len

◆ num_of_blocks

int gsmpi::SerializedBuffer::num_of_blocks

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