#include <GhostTreePopulation.h>

Public Member Functions | |
| ~clGhostTreePopulation () | |
| Destructor. | |
| clGhostTreePopulation (clSimManager *p_oSimManager) | |
| Constructor. | |
| void | AddTree (clTree *p_oTree, deadCode iDeadReasonCode) |
| Creates a copy of a tree and adds it to this population. | |
| clDeadTree * | GetFirstTree () |
| Gets the first tree in the linked list. | |
| void | GetData (xercesc::DOMDocument *p_oDoc) |
| Not needed. | |
Protected Member Functions | |
| void | TimestepCleanup () |
| Deletes all trees. | |
Protected Attributes | |
| clDeadTree * | mp_oTrees |
| Linked list of dead trees. | |
Private Member Functions | |
| clGhostTreePopulation (const clGhostTreePopulation &oldPop) | |
| Copy constructor. | |
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.
| clGhostTreePopulation::clGhostTreePopulation | ( | const clGhostTreePopulation & | oldPop | ) | [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. |
| clDeadTree* clGhostTreePopulation::GetFirstTree | ( | ) | [inline] |
Gets the first tree in the linked list.
| void clGhostTreePopulation::GetData | ( | xercesc::DOMDocument * | p_oDoc | ) | [inline, virtual] |
| void clGhostTreePopulation::TimestepCleanup | ( | ) | [protected, virtual] |
clDeadTree* clGhostTreePopulation::mp_oTrees [protected] |
Linked list of dead trees.
1.5.6