NetDEM v1.0
|
A class that provides functions to convert bond entry data between a class and a struct format. More...
#include <bond_entry_parser.hpp>
Static Public Member Functions | |
static void | ClassToStruct (const BondEntry *const entry_class, BondEntryData *const entry_struct) |
Converts bond entry data from a class to a struct format. | |
static void | StructToClass (BondEntry *const entry_class, const BondEntryData *const entry_struct, const MiniMap< int, ContactModel * > &contact_model_map) |
Converts bond entry data from a struct to a class format. | |
static void | DefineMPIDataType (MPI_Datatype *const datatype) |
Defines an MPI datatype for a BondEntryData struct. | |
A class that provides functions to convert bond entry data between a class and a struct format.
The BondEntryParser
class is used to provide functionality for converting bond entry data between a class and a struct format.
|
static |
Converts bond entry data from a class to a struct format.
This function converts bond entry data from a BondEntry
class format to a BondEntryData
struct format.
entry_class | A pointer to the input BondEntry class instance. |
entry_struct | A pointer to the output BondEntryData struct instance. |
|
static |
Defines an MPI datatype for a BondEntryData
struct.
This function defines an MPI datatype for a BondEntryData
struct to be used in MPI communications.
datatype | A pointer to the output datatype. |
|
static |
Converts bond entry data from a struct to a class format.
This function converts bond entry data from a BondEntryData
struct format to a BondEntry
class format.
entry_class | A pointer to the output BondEntry class instance. |
entry_struct | A pointer to the input BondEntryData struct instance. |
contact_model_map | A map of ID-contact model pairs used for setting the correct contact model in the output BondEntry class instance. |