|
PLearn 0.1
|


Public Member Functions | |
| Parent (int ipp=0, string spp="parent") | |
| void | print (ostream &out) |
| Parent (const Parent &other) | |
| Parent * | deepCopy (CopiesMap &copies) const |
Public Attributes | |
| int | i_par |
| integer in the hundreds | |
| string | s_par |
| string representing number in the hundreds | |
| PP< ChildA > | childAPP |
| PP< ChildB > | childBPP |
| PLearn::Parent::Parent | ( | int | ipp = 0, |
| string | spp = "parent" |
||
| ) | [inline] |
| PLearn::Parent::Parent | ( | const Parent & | other | ) | [inline] |
< a copy already exists, so return it
Otherwise call the copy constructor to obtain a copy
Put the copy in the map
Reimplemented in PLearn::ChildA, and PLearn::ChildB.
Definition at line 172 of file PPTest.cc.
References childAPP, childBPP, PLearn::deepCopy(), and PLearn::usage().
{
CopiesMap::iterator it = copies.find(this);
if(it!=copies.end())
return (Parent*) it->second;
Parent* dcopy = new Parent(*this);
dcopy->childAPP = PLearn::deepCopy( childAPP );
dcopy->childBPP = PLearn::deepCopy( childBPP );
if (usage() > 1)
copies[this] = dcopy;
return dcopy;
}

| void PLearn::Parent::print | ( | ostream & | out | ) | [inline] |
Reimplemented in PLearn::ChildA, and PLearn::ChildB.
Definition at line 167 of file PPTest.cc.
References PLearn::endl().

Reimplemented in PLearn::ChildB.
Definition at line 164 of file PPTest.cc.
Referenced by deepCopy().
Reimplemented in PLearn::ChildA.
Definition at line 165 of file PPTest.cc.
Referenced by deepCopy().
integer in the hundreds
Definition at line 161 of file PPTest.cc.
Referenced by PLearn::Test_PP::conversionOPchildA(), PLearn::Test_PP::conversionOPchildB(), PLearn::Test_PP::conversionOPparent(), and PLearn::Test_PP::copieConsOrdinaryPtr().
| string PLearn::Parent::s_par |
string representing number in the hundreds
Definition at line 163 of file PPTest.cc.
Referenced by PLearn::Test_PP::affectationFromOrdPtr(), PLearn::Test_PP::conversionOPchildA(), PLearn::Test_PP::conversionOPchildB(), PLearn::Test_PP::conversionOPparent(), and PLearn::Test_PP::copieConsOrdinaryPtr().
1.7.4