SORTIE Core C++ Documentation
|
GHOST TREE POPULATION CLASS - Version 1. More...
#include <GhostTreePopulation.h>
Public Member Functions | |
~clGhostTreePopulation () | |
Destructor. More... | |
clGhostTreePopulation (clSimManager *p_oSimManager) | |
Constructor. More... | |
void | AddTree (clTree *p_oTree, deadCode iDeadReasonCode) |
Creates a copy of a tree and adds it to this population. More... | |
clDeadTree * | GetFirstTree () |
Gets the first tree in the linked list. More... | |
void | GetData (xercesc::DOMDocument *p_oDoc) |
Not needed. More... | |
Public Member Functions inherited from clPopulationBase | |
virtual void | DoDataUpdates () |
Performs cleanup between behavior action calls. More... | |
virtual | ~clPopulationBase () |
Destructor. More... | |
clPopulationBase (clSimManager *p_oSimManager) | |
Constructor. More... | |
Public Member Functions inherited from clWorkerBase | |
clWorkerBase (clSimManager *p_oSimManager) | |
Constructor. More... | |
virtual | ~clWorkerBase () |
Destructor. More... | |
std::string | GetName () |
Gets the object's namestring. More... | |
clSimManager * | GetSimManager () |
void | DoObjectSetup (xercesc::DOMDocument *p_oDoc, fileType iFileType) |
Triggers the setup process. More... | |
virtual void | EndOfRunCleanup () |
Performs any necessary cleanup operations at the end of a run. More... | |
Protected Member Functions | |
void | TimestepCleanup () |
Deletes all trees. More... | |
Protected Member Functions inherited from clWorkerBase | |
void | AssembleFileCode (int iFileType, int iFileVersion, char *cCode) |
Creates the proper identifying filecode for an XML file. More... | |
Protected Attributes | |
clDeadTree * | mp_oTrees |
Linked list of dead trees. More... | |
Protected Attributes inherited from clWorkerBase | |
std::string | m_sNameString |
If a behavior has registered a command line command with the sim manager, this allows it to be called. More... | |
clSimManager * | mp_oSimManager |
Pointer to the simulation manager object. More... | |
int * | mp_iAllowedFileTypes |
List of the input file types this object can handle. More... | |
int | m_iNumAllowedTypes |
Number of input file types this object can handle. More... | |
Private Member Functions | |
clGhostTreePopulation (const clGhostTreePopulation &oldPop) | |
Copy constructor. More... | |
GHOST TREE POPULATION CLASS - Version 1.
This holds dead trees. They are held for a single timestep then eliminated at the end of the timestep. This holds seedlings through snags. Stumps are not kept.
The trees are not sorted, just held in a simple linked list.
Copyright 2010 Charles D. Canham.
Edit history:
--------------—
December 21, 2010 - Created (LEM)
|
private |
Copy constructor.
Off limits! It's too much to try to copy all the trees, and too dangerous to allow two objects running around with pointers to the same trees.
clGhostTreePopulation::~clGhostTreePopulation | ( | ) |
Destructor.
clGhostTreePopulation::clGhostTreePopulation | ( | clSimManager * | p_oSimManager | ) |
Constructor.
p_oSimManager | Sim Manager object. |
Creates a copy of a tree and adds it to this population.
The original tree is not touched or removed from the old population.
p_oTree | tree to copy and add. |
iDeadReasonCode | Why the tree died. |
|
inlinevirtual |
|
inline |
Gets the first tree in the linked list.
|
protectedvirtual |
Deletes all trees.
Reimplemented from clWorkerBase.
|
protected |
Linked list of dead trees.