39 #ifdef DEBUG_CONSTRUCTOR
40 std::cout <<
"BaseSpecies::BaseSpecies() finished" << std::endl;
51 #ifdef DEBUG_CONSTRUCTOR
52 std::cout <<
"BaseSpecies::BaseSpecies(const BaseSpecies &p) finished" << std::endl;
58 #ifdef DEBUG_DESTRUCTOR
59 std::cout <<
"BaseSpecies::~BaseSpecies() finished" << std::endl;
89 return (a + b) != 0.0 ? (2./(1.0/a+1.0/b)) : 0.0;
Container to store all ParticleSpecies.
BaseSpecies is the class from which all other species are derived.
virtual ~BaseSpecies()
The default destructor.
It is an abstract base class due to the purely virtual functions declared below. Even if the function...
SpeciesHandler * getHandler() const
Returns the pointer to the handler to which this species belongs.
SpeciesHandler * handler_
A pointer to the handler to which this species belongs. It is initialized to nullptr and gets set whe...
Mdouble average(Mdouble a, Mdouble b)
defines the average of two variables by the harmonic mean.
void setHandler(SpeciesHandler *handler)
Sets the pointer to the handler to which this species belongs.
BaseSpecies()
The default constructor.
Defines the basic properties that a interactable object can have.