Bacterium Class Documentation
-
class Bacterium : public Host
Public Functions
-
inline Bacterium(emp::Ptr<emp::Random> _random, emp::Ptr<LysisWorld> _world, emp::Ptr<SymConfigLysis> _config, double _intval = 0.0, emp::vector<emp::Ptr<Organism>> _syms = {}, emp::vector<emp::Ptr<Organism>> _repro_syms = {}, double _points = 0.0)
The constructor for the bacterium class
-
Bacterium(const Bacterium&) = default
Input: None
Output: None
Purpose: To force a copy constructor to be generated by the compiler.
-
Bacterium(Bacterium&&) = default
Input: None
Output: None
Purpose: To force a move constructor to be generated by the compiler
-
Bacterium() = default
Input: None
Output: None
Purpose: To tell the compiler to use its default generated variants of the constructor
-
inline std::string const GetName()
Input: None
Output: Name of class as string, Bacterium
Purpose: To know which subclass the object is
-
inline double GetIncVal()
Input: None
Output: The double representing a genome’s value.
Purpose: To determine a genome’s value.
-
inline void SetIncVal(double _in)
Input: The double to be set as the bacterium’s genome value
Output: None
Purpose: To set a bacterium’s genome value
-
inline emp::Ptr<Organism> MakeNew()
Input: None.
Output: A new bacterium with same properties as this bacterium.
Purpose: To avoid creating an organism via constructor in other methods.
-
inline Bacterium(emp::Ptr<emp::Random> _random, emp::Ptr<LysisWorld> _world, emp::Ptr<SymConfigLysis> _config, double _intval = 0.0, emp::vector<emp::Ptr<Organism>> _syms = {}, emp::vector<emp::Ptr<Organism>> _repro_syms = {}, double _points = 0.0)