WARPXM v1.10.0
Loading...
Searching...
No Matches
wmsequencedgroup.h
Go to the documentation of this file.
1#ifndef wxsequencedgroup_h
2#define wxsequencedgroup_h
3
4// WarpX includes
5#include "lib/wxobject.h"
6#include "lib/wxcryptset.h"
7
8// std includes
9#include <vector>
10#include <string>
11
16class WmSolverBase;
18
23{
24
25public:
31 virtual void setup(const WxCryptSet& wxc);
32
37 typedef std::vector<std::string>::const_iterator SequenceActionItr;
38
40 {
41 return hostActions.begin();
42 }
43
45 {
46 return hostActions.end();
47 }
48
54 const WmSolverBase& getParent() const;
55
56 // TODO: move this back to private once I straighten out the relationship with
57 // WmSolver
60
61protected:
67 WmSequencedGroup(const WmConstOpaquePtr& parent_solver);
68
70 std::vector<std::string> hostActions;
71
72private:
73 const WmSolverBase* _parent; // parent solver
74
79 real t0_offset;
80
82 WmSequencedGroup& operator=(const WmSequencedGroup& var);
84};
85
88#endif // wxsequencedgroup_h
Opaque Pointer object that carries the referenced data type, but does not expose this payload type as...
Definition: wmopaqueptr.h:81
Represents a set of events that must be executed serially in the specified sequence.
Definition: wmsequencedgroup.h:23
const WmSolverBase & getParent() const
Get parent solver object.
real dtFrac
Fraction of time-step to apply.
Definition: wmsequencedgroup.h:59
SequenceActionItr end() const
Definition: wmsequencedgroup.h:44
std::vector< std::string >::const_iterator SequenceActionItr
Iterator support funcions to access host actions.
Definition: wmsequencedgroup.h:37
std::vector< std::string > hostActions
host actions to apply
Definition: wmsequencedgroup.h:70
SequenceActionItr begin() const
Definition: wmsequencedgroup.h:39
WmSequencedGroup(const WmConstOpaquePtr &parent_solver)
Create new WmSequencedGroup.
virtual void setup(const WxCryptSet &wxc)
Setup the sequencedgroup using cryptset.
A base class for solvers in WARPM.
Definition: wmsolverbase.h:35
WxCryptSet extends WxCrypt by providing, in addition to name-value pairs, an set of named WxCryptSets...
Definition: wxcryptset.h:35
WxObject is a base class for WarpX classes which need to go through a creation/destruction cycle with...
Definition: wxobject.h:54
#define real
Definition: wmoclunstructuredreconstruction.h:11