ESPResSo
Extensible Simulation Package for Research on Soft Matter Systems
Loading...
Searching...
No Matches
CommBuf Class Reference

Class that stores marshalled data for ghost communications. More...

Public Member Functions

chardata ()
 Returns a pointer to the non-bond storage.
 
const chardata () const
 
std::size_t size () const
 Returns the number of elements in the non-bond storage.
 
void resize (std::size_t new_size)
 Resizes the underlying storage s.t.
 
autobonds ()
 Returns a reference to the bond storage.
 
const autobonds () const
 
auto make_span ()
 

Detailed Description

Class that stores marshalled data for ghost communications.

To store and retrieve data, use the adapter classes below.

Definition at line 64 of file ghosts.cpp.

Member Function Documentation

◆ bonds() [1/2]

auto & CommBuf::bonds ( )
inline

Returns a reference to the bond storage.

Definition at line 83 of file ghosts.cpp.

◆ bonds() [2/2]

const auto & CommBuf::bonds ( ) const
inline

Definition at line 84 of file ghosts.cpp.

◆ data() [1/2]

char * CommBuf::data ( )
inline

Returns a pointer to the non-bond storage.

Definition at line 68 of file ghosts.cpp.

◆ data() [2/2]

const char * CommBuf::data ( ) const
inline

Definition at line 69 of file ghosts.cpp.

◆ make_span()

auto CommBuf::make_span ( )
inline

Definition at line 86 of file ghosts.cpp.

Referenced by cell_cell_transfer().

◆ resize()

void CommBuf::resize ( std::size_t  new_size)
inline

Resizes the underlying storage s.t.

the object is capable of holding "new_size" chars.

Parameters
new_sizenew size

Definition at line 79 of file ghosts.cpp.

Referenced by cell_cell_transfer().

◆ size()

std::size_t CommBuf::size ( ) const
inline

Returns the number of elements in the non-bond storage.

Definition at line 73 of file ghosts.cpp.


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