45#ifndef PRIMITIVES_SHORTRANGEINTERACTION_HPP
46#define PRIMITIVES_SHORTRANGEINTERACTION_HPP
51#include "brains/Snapshot.hpp"
54#include "visitors/BaseVisitor.hpp"
138 virtual std::vector<Atom*> getAtoms() {
return atoms_; }
144 void addProperty(std::shared_ptr<GenericData> genData);
178 std::vector<Atom*> atoms_;
PropertyMap class maintains a list of GenericData.
A ShortRangeInteraction holds some bookeeping data for bonded interactions (e.g.
int getLocalIndex()
Returns the local index of this ShortRangeInteraction.
virtual RealType getValue()
Returns the current value of this ShortRangeInteraction.
void setLocalIndex(int index)
Sets the local index of this ShortRangeInteraction.
virtual RealType getPrevValue()
Returns the previous value of this ShortRangeInteraction.
virtual RealType getValue(int snapshotNo)=0
Returns the value of this ShortRangeInteraction in specified snapshot.
std::vector< std::shared_ptr< GenericData > > getProperties()
Returns all of the properties in PropertyMap.
virtual std::string getName()=0
Returns the name of this ShortRangeInteraction.
void setGlobalIndex(int index)
Sets the global index of this ShortRangeInteraction.
std::shared_ptr< GenericData > getPropertyByName(const std::string &propName)
Returns property.
virtual void accept(BaseVisitor *v)=0
void addProperty(std::shared_ptr< GenericData > genData)
Adds property into property map.
std::vector< std::string > getPropertyNames()
Returns all names of properties.
void setSnapshotManager(SnapshotManager *sman)
Sets the Snapshot Manager of this ShortRangeInteraction.
virtual void setName(const std::string &)
Sets the name of this ShortRangeInteraction.
void removeProperty(const std::string &propName)
Removes property from PropertyMap by name.
int getGlobalIndex()
Returns the global index of this ShortRangeInteraction.
SnapshotManager class is an abstract class which maintains a series of snapshots.
This basic Periodic Table class was originally taken from the data.cpp file in OpenBabel.