25 #ifndef INTERACTIONHANDLER_H
26 #define INTERACTIONHANDLER_H
94 void write(std::ostream& os)
const;
Container to store all ParticleSpecies.
void write(std::ostream &os) const
Writes the InteractionHandler to an output stream, for example a restart file.
BaseInteraction * getInteraction(BaseInteractable *P, BaseInteractable *I, Mdouble timeStamp)
Returns the Interaction between the BaseInteractable's P and I.
InteractionHandler()
Default constructor, it creates an empty InteractionHandler.
~InteractionHandler()
Destructor, it destructs the InteractionHandler and all BaseInteraction it contains.
Stores information about interactions between two interactable objects; often particles but could be ...
void eraseOldInteractions(Mdouble lastTimeStep)
erases interactions which have an old timestamp.
BaseInteraction * getExistingInteraction(BaseInteractable *P, BaseInteractable *I)
Returns the Interaction between the BaseInteractable's P and I if it exists, otherwise returns a null...
void removeObjectKeepingPeriodics(unsigned const int id)
Removes interactions of periodic particles when the periodic particles get deleted (see DPMBase::remo...
InteractionHandler operator=(const InteractionHandler &rhs)
Assignment operator.
Container to store Interaction objects.
std::string getName() const
Returns the name of the object.
Container to store the pointers to all objects that one creates in a simulation.
Defines the basic properties that a interactable object can have.
void readObject(std::istream &is)
Reads an Interaction into the InteractionHandler from restart data.
void addObject(BaseInteraction *I)
Adds an Interaction to the InteractionHandler.