Molecular Dynamics Simulation
1.0
src
io
xml_schemas
xsd_type_adaptors
InternalToXSDTypeAdapter.h
Go to the documentation of this file.
1
#pragma once
2
3
#include "io/xml_schemas/checkpoint/checkpoint_schema.h"
4
#include "
particles/Particle.h
"
5
6
class
InternalToXSDTypeAdapter
{
7
public
:
8
static
ParticleType
convertToParticle
(
const
Particle
& particle);
9
10
static
DoubleVec3Type
convertToVector
(
const
std::array<double, 3>& vector);
11
12
static
ConnectedParticlesType
convertToConnectedParticles
(
const
std::vector<std::tuple<long, double, double>>& connected_particles);
13
14
static
ConnectedParticleEntryType
convertToConnectedParticleEntry
(
const
std::tuple<long, double, double>& entry);
15
};
Particle.h
InternalToXSDTypeAdapter
Definition:
InternalToXSDTypeAdapter.h:6
InternalToXSDTypeAdapter::convertToConnectedParticles
static ConnectedParticlesType convertToConnectedParticles(const std::vector< std::tuple< long, double, double >> &connected_particles)
Definition:
InternalToXSDTypeAdapter.cpp:24
InternalToXSDTypeAdapter::convertToVector
static DoubleVec3Type convertToVector(const std::array< double, 3 > &vector)
Definition:
InternalToXSDTypeAdapter.cpp:20
InternalToXSDTypeAdapter::convertToConnectedParticleEntry
static ConnectedParticleEntryType convertToConnectedParticleEntry(const std::tuple< long, double, double > &entry)
Definition:
InternalToXSDTypeAdapter.cpp:35
InternalToXSDTypeAdapter::convertToParticle
static ParticleType convertToParticle(const Particle &particle)
Definition:
InternalToXSDTypeAdapter.cpp:3
Particle
Class to represent a particle.
Definition:
Particle.h:26
Generated by
1.9.1