PLearn 0.1
Public Member Functions | Public Attributes
PLearn::ChildB Class Reference
Inheritance diagram for PLearn::ChildB:
Inheritance graph
[legend]
Collaboration diagram for PLearn::ChildB:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 ChildB (string schildb="childB")
void print (ostream &out)
 ChildB (const ChildB &other)
ChildBdeepCopy (CopiesMap &copies) const

Public Attributes

string s_child_b
 string representing number
PP< ChildAchildAPP

Detailed Description

Definition at line 226 of file PPTest.cc.


Constructor & Destructor Documentation

PLearn::ChildB::ChildB ( string  schildb = "childB") [inline]

Definition at line 232 of file PPTest.cc.

: s_child_b(schildb) {}
PLearn::ChildB::ChildB ( const ChildB other) [inline]

Definition at line 235 of file PPTest.cc.

: Parent(other.i_par, other.s_par), childAPP(other.childAPP){}

Member Function Documentation

ChildB* PLearn::ChildB::deepCopy ( CopiesMap copies) const [inline]

< a copy already exists, so return it

Otherwise call the copy constructor to obtain a copy

Put the copy in the map

Reimplemented from PLearn::Parent.

Definition at line 237 of file PPTest.cc.

References childAPP, PLearn::deepCopy(), and PLearn::usage().

  {
        CopiesMap::iterator it = copies.find(this);
        if(it!=copies.end())  
      return (ChildB*) it->second;

    ChildB* dcopy = new ChildB(*this);
        dcopy->childAPP = PLearn::deepCopy( childAPP );
        
    if (usage() > 1)
      copies[this] = dcopy;
        
    return dcopy;
  }

Here is the call graph for this function:

void PLearn::ChildB::print ( ostream &  out) [inline]

Reimplemented from PLearn::Parent.

Definition at line 233 of file PPTest.cc.

References PLearn::flush(), and PLearn::print().

{ out << "* ChildB:\ts_child_b= " << s_child_b << "\t\t" << flush; Parent::print(out); }

Here is the call graph for this function:


Member Data Documentation

Reimplemented from PLearn::Parent.

Definition at line 231 of file PPTest.cc.

Referenced by deepCopy().

string representing number

Definition at line 230 of file PPTest.cc.

Referenced by PLearn::Test_PP::conversionOPchildB(), and PLearn::Test_PP::copieConsOrdinaryPtr().


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines