Main Page | Namespace List | Class Hierarchy | Class List | Directories | File List | Class Members | File Members

DescentTree Class Reference

Each founding group forms a Descent Tree. More...

#include <DescentTree.h>

List of all members.

Public Member Functions

 DescentTree (unsigned id)
 DescentTree (unsigned id, std::vector< Individual * > foundingGroup)
 ~DescentTree ()
void setConsanguinity ()
void setOrder (unsigned order)
void setStartIndividual (Individual *startIndividual)
void setLeftWidth (unsigned left)
void setRightWidth (unsigned right)
void setTotalWidth (unsigned total)
void addIndividualToFoundingGroup (Individual *individual)
void setNumberOfExternalConnections (unsigned count)
unsigned getNumberOfFoundingGroupIndividuals () const
unsigned getId (void)
Individual * getStartIndividual (void)
Individual * getFoundingGroupIndividual (unsigned i)
unsigned getTotalWidth ()
unsigned getLeftWidth ()
unsigned getRightWidth ()
unsigned getNumberOfExternalConnections ()
Individual * getExternalConnector (unsigned index)
unsigned getNumberOfConnectionsWithDT (unsigned dtId)
bool hasConsanguinity (void) const
void addExternalConnectorPair (Individual *individual, Individual *spouse)
void incrementConnectionsWithDT (unsigned dtId)
void incrementNumberOfExternalConnections ()
void displayFoundingGroup ()

Private Attributes

unsigned _order
unsigned _id
unsigned _externalConnections
bool _hasConsanguinity
Individual * _startIndividual
std::vector< Individual * > _foundingGroup
std::map< unsigned, unsigned > _connectionsWithDT
std::vector< Individual * > _externalConnectorPair
Width _width


Detailed Description

Each founding group forms a Descent Tree.

Descent Tree keeps track of its width, external and internal connections.


Constructor & Destructor Documentation

DescentTree::DescentTree (  unsigned  id  )  [inline]
 

DescentTree::DescentTree (  unsigned  id,
std::vector< Individual * >  foundingGroup
)  [inline]
 

DescentTree::~DescentTree (   ) 
 


Member Function Documentation

void DescentTree::addExternalConnectorPair (  Individual *  individual,
Individual *  spouse
) 
 

void DescentTree::addIndividualToFoundingGroup (  Individual *  individual  )  [inline]
 

void DescentTree::displayFoundingGroup (   )  [inline]
 

Individual* DescentTree::getExternalConnector (  unsigned  index  )  [inline]
 

Individual* DescentTree::getFoundingGroupIndividual (  unsigned  i  )  [inline]
 

unsigned DescentTree::getId (  void   )  [inline]
 

unsigned DescentTree::getLeftWidth (   )  [inline]
 

unsigned DescentTree::getNumberOfConnectionsWithDT (  unsigned  dtId  ) 
 

unsigned DescentTree::getNumberOfExternalConnections (   )  [inline]
 

unsigned DescentTree::getNumberOfFoundingGroupIndividuals (   )  const [inline]
 

unsigned DescentTree::getRightWidth (   )  [inline]
 

Individual * DescentTree::getStartIndividual (  void   ) 
 

getStartIndividual(): Returns start individual of a founding group.

unsigned DescentTree::getTotalWidth (   )  [inline]
 

bool DescentTree::hasConsanguinity (  void   )  const [inline]
 

void DescentTree::incrementConnectionsWithDT (  unsigned  dtId  ) 
 

void DescentTree::incrementNumberOfExternalConnections (   )  [inline]
 

void DescentTree::setConsanguinity (   )  [inline]
 

void DescentTree::setLeftWidth (  unsigned  left  )  [inline]
 

void DescentTree::setNumberOfExternalConnections (  unsigned  count  )  [inline]
 

void DescentTree::setOrder (  unsigned  order  )  [inline]
 

void DescentTree::setRightWidth (  unsigned  right  )  [inline]
 

void DescentTree::setStartIndividual (  Individual *  startIndividual  )  [inline]
 

void DescentTree::setTotalWidth (  unsigned  total  )  [inline]
 


Member Data Documentation

std::map<unsigned,unsigned> DescentTree::_connectionsWithDT [private]
 

unsigned DescentTree::_externalConnections [private]
 

std::vector<Individual*> DescentTree::_externalConnectorPair [private]
 

std::vector<Individual*> DescentTree::_foundingGroup [private]
 

bool DescentTree::_hasConsanguinity [private]
 

unsigned DescentTree::_id [private]
 

unsigned DescentTree::_order [private]
 

Individual* DescentTree::_startIndividual [private]
 

Width DescentTree::_width [private]
 


The documentation for this class was generated from the following files:
Generated on Fri Nov 18 16:24:39 2011 for MADELINE by  doxygen 1.4.4