NetDEM v1.0
Loading...
Searching...
No Matches
collision_entry_parser.hpp
Go to the documentation of this file.
1#pragma once
2
3#include "collision_entry.hpp"
5#include "mini_map.hpp"
6#include <mpi.h>
7
8namespace netdem {
9
18public:
29 static void ClassToStruct(const CollisionEntry *const entry_class,
30 CollisionEntryData *const entry_struct);
31
44 static void
45 StructToClass(CollisionEntry *const entry_class,
46 const CollisionEntryData *const entry_struct,
47 const MiniMap<int, ContactModel *> &contact_model_map);
48
57 static void DefineMPIDataType(MPI_Datatype *const datatype);
58};
59
60} // namespace netdem
A class representing a collision entry.
Definition collision_entry.hpp:20
A class that provides functions to convert collision entry data between a class and a struct format.
Definition collision_entry_parser.hpp:17
static void ClassToStruct(const CollisionEntry *const entry_class, CollisionEntryData *const entry_struct)
Converts collision entry data from a class to a struct format.
Definition collision_entry_parser.cpp:6
static void DefineMPIDataType(MPI_Datatype *const datatype)
Defines an MPI datatype for a CollisionEntryData struct.
Definition collision_entry_parser.cpp:113
static void StructToClass(CollisionEntry *const entry_class, const CollisionEntryData *const entry_struct, const MiniMap< int, ContactModel * > &contact_model_map)
Converts collision entry data from a struct to a class format.
Definition collision_entry_parser.cpp:55
Definition mini_map.hpp:17
Definition bond_entry.hpp:7
A struct that represents data associated with a collision entry.
Definition collision_entry_data.hpp:13