#include <gnodederived.h>
Inheritance diagram for matvec::GenotypeNode:

GenotypeNode class has methods relevant to a genotype node
Definition at line 116 of file gnodederived.h.
|
|
Definition at line 119 of file gnodederived.h. References acceptedGenotypeVector, genotypeVector, and SafeSTLVector< MaternalPaternalAlleles >::name.
00119 {
00120 genotypeVector.name = "genotypeVector";
00121 acceptedGenotypeVector.name = "acceptedGenotypeVector";
00122 }
|
|
|
Definition at line 157 of file gnodederived.h.
00157 {;}
|
|
|
|
|
|
|
|
|
Reimplemented in matvec::AlleleStateNode. Definition at line 68 of file gnodestuff.h.
00068 {
00069 throw exception("GNode::getAcceptedAlleleState(): called for virtual function");
00070 };
|
|
|
Reimplemented from matvec::GNode. Definition at line 133 of file gnodederived.h. References acceptedGenotypeState.
00133 {
00134 return acceptedGenotypeVector[acceptedGenotypeState].maternal;
00135 };
|
|
|
Reimplemented from matvec::GNode. Definition at line 136 of file gnodederived.h. References acceptedGenotypeState.
00136 {
00137 return acceptedGenotypeVector[acceptedGenotypeState].paternal;
00138 };
|
|
|
|
|
|
Reimplemented from matvec::GNode. Definition at line 139 of file gnodederived.h. References genotypeState.
00139 {
00140 return genotypeVector[genotypeState].maternal;
00141 };
|
|
|
Reimplemented in matvec::AlleleOriginNode. Definition at line 74 of file gnodestuff.h.
00074 {
00075 throw exception("GNode::getmState(): called for virtual function");
00076 };
|
|
|
Reimplemented in matvec::AlleleStateNode. Definition at line 71 of file gnodestuff.h.
00071 {
00072 throw exception("GNode::getmState(): called for virtual function");
00073 };
|
|
|
Reimplemented from matvec::GNode. Definition at line 130 of file gnodederived.h. References acceptedGenotypeState.
00130 {
00131 return acceptedGenotypeState;
00132 };
|
|
|
Reimplemented from matvec::GNode. Definition at line 142 of file gnodederived.h. References genotypeState.
00142 {
00143 return genotypeVector[genotypeState].paternal;
00144 };
|
|
|
Reimplemented from matvec::GNode. Definition at line 127 of file gnodederived.h. References genotypeState.
00127 {
00128 return genotypeState;
00129 };
|
|
|
Reimplemented from matvec::GNode. Definition at line 145 of file gnodederived.h.
00145 {
00146 return genotypeVector.size();
00147 };
|
|
|
the method used to increment the genotypeState of a GenotypeNode
Reimplemented from matvec::GNode. Definition at line 335 of file gnodederived.cpp. References genotypeState, and genotypeVector.
00335 {
00336 // Authors: L. Radu Totir and Rohan L. Fernando
00337 // (based on the incr() of Bernt Guldbrantdsen)
00338 // (June, 2003)
00339 // Contributors:
00340 genotypeState++;
00341 if (genotypeState==genotypeVector.size()){
00342 genotypeState=0;
00343 return 0;
00344 }
00345 else {
00346 return 1;
00347 }
00348 }
|
|
|
|
|
|
|
|
|
|
|
|
Referenced by matvec::GNodeList::peelCutAndCompute(). |
|
|
Referenced by matvec::GNode::~GNode(). |
|
|
Reimplemented from matvec::GNode. Definition at line 148 of file gnodederived.h. References genotypeState.
00148 {
00149 genotypeState = i;
00150 };
|
|
|
Reimplemented from matvec::GNode. Definition at line 151 of file gnodederived.h. References acceptedGenotypeState, and genotypeState.
00151 {
00152 acceptedGenotypeState = genotypeState;
00153 acceptedGenotypeVector = genotypeVector;
00154 genotypeState = i;
00155 };
|
|
|
|
|
|
Referenced by matvec::GNodeList::peelCutAndSample(), and matvec::GNodeList::peelOrderCutAndSample(). |
|
|
|
|
|
Definition at line 118 of file gnodederived.h. Referenced by getAcceptedMatState(), getAcceptedPatState(), getOldState(), and resetAndSwitch(). |
|
|
Definition at line 125 of file gnodederived.h. Referenced by GenotypeNode(). |
|
|
Definition at line 118 of file gnodederived.h. |
|
|
Definition at line 48 of file gnodestuff.h. Referenced by matvec::GNodeList::calcDistancefrom(), matvec::Population::initAlleleNodeList(), matvec::Population::initGenotypeNodeList(), and matvec::Population::initJointAlleleNodeList(). |
|
|
Definition at line 44 of file gnodestuff.h. |
|
|
Definition at line 124 of file gnodederived.h. |
|
|
Definition at line 118 of file gnodederived.h. Referenced by getmState(), getpState(), getState(), incr(), reset(), and resetAndSwitch(). |
|
|
Definition at line 123 of file gnodederived.h. Referenced by GenotypeNode(), and incr(). |
|
|
Definition at line 41 of file gnodestuff.cpp. |
|
|
Definition at line 47 of file gnodestuff.h. Referenced by matvec::GNodeList::calcDistancefrom(), matvec::GNodeList::findSampleGNode(), matvec::Population::initAlleleNodeList(), matvec::Population::initGenotypeNodeList(), matvec::Population::initJointAlleleNodeList(), matvec::GNodeList::peelCutAndCompute(), matvec::GNodeList::peelCutAndSample(), and matvec::GNodeList::peelOrderCutAndSample(). |
|
|
Definition at line 45 of file gnodestuff.h. |
|
|
Definition at line 49 of file gnodestuff.h. Referenced by matvec::Population::initAlleleNodeList(), matvec::Population::initGenotypeNodeList(), and matvec::Population::initJointAlleleNodeList(). |
|
|
Definition at line 46 of file gnodestuff.h. Referenced by matvec::GNodeList::fill(), and matvec::compareGNodesPeelId::operator()(). |
|
|
Definition at line 41 of file gnodestuff.h. Referenced by matvec::compareGNodesWeight::operator()(). |
|
|
Definition at line 61 of file gnodestuff.h. |
|
|
Definition at line 43 of file gnodestuff.h. Referenced by matvec::GNodeList::calcDistancefrom(), and matvec::GNodeList::inputGNodeSets(). |
|
|
Definition at line 42 of file gnodestuff.h. Referenced by matvec::GNodeList::fill(). |
1.2.16