Peano
Loading...
Searching...
No Matches
Event.h
Go to the documentation of this file.
1// This file is part of the Peano project. For conditions of distribution and
2// use, please see the copyright notice at www.peano-framework.org
3#pragma once
4
5#include "tarch/la/Vector.h"
6
7namespace toolbox {
8 namespace particles {
9 namespace assignmentchecks {
10 namespace internal {
11
20 struct Event {
30
32 bool isLocal;
36 int treeId;
37 std::string trace;
39
44 Type type_,
45 bool isLocal_,
49 int treeId_,
50 const std::string& trace_,
51 int meshSweepIndex_
52 );
53
54
60 Type type_,
61 bool isLocal_,
65 int treeId_,
66 const std::string& trace_
67 );
68
76 Type type_,
78 const tarch::la::Vector<Dimensions, double>& previousParticleX_,
80 int treeId_,
81 const std::string& trace_
82 );
83
89 Type type_,
90 bool isLocal_,
91 int treeId_,
92 const std::string& trace_
93 );
94
99 Event(Type type_);
100
101 std::string toString() const;
102 };
103 } // namespace internal
104 } // namespace assignmentchecks
105 } // namespace particles
106} // namespace toolbox
Simple vector class.
Definition Vector.h:159
Event(Type type_, bool isLocal_, int treeId_, const std::string &trace_)
Construct an event that identifies the association to the sieve set or an erase.
Event(Type type_)
Construct an invalid event.
Event(Type type_, bool isLocal_, const tarch::la::Vector< Dimensions, double > &vertexX_, const tarch::la::Vector< Dimensions, double > &particleX, const tarch::la::Vector< Dimensions, double > &vertexH_, int treeId_, const std::string &trace_)
Construct an event which identifies a vertex assignment or the removal from a vertex.
Event(Type type_, bool isLocal_, const tarch::la::Vector< Dimensions, double > &vertexX_, const tarch::la::Vector< Dimensions, double > &particleX, const tarch::la::Vector< Dimensions, double > &vertexH_, int treeId_, const std::string &trace_, int meshSweepIndex_)
Construct an event where you can specify all the fields.
tarch::la::Vector< Dimensions, double > previousParticleX
Definition Event.h:34
tarch::la::Vector< Dimensions, double > vertexH
Definition Event.h:35
tarch::la::Vector< Dimensions, double > vertexX
Definition Event.h:33
Event(Type type_, const tarch::la::Vector< Dimensions, double > &vertexX_, const tarch::la::Vector< Dimensions, double > &previousParticleX_, const tarch::la::Vector< Dimensions, double > &vertexH_, int treeId_, const std::string &trace_)
Construct a move event.