Logo Search packages:      
Sourcecode: pwlib version File versions  Download package

PObject * PASN_Null::Clone (  ) const [virtual]

Create a copy of the class on the heap. The exact semantics of the descendent class determine what is required to make a duplicate of the instance. Not all classes can even { do} a clone operation.

The main user of the clone function is the PDictionary# class as it requires copies of the dictionary keys.

The default behaviour is for this function to assert.

pointer to new copy of the class instance.

Reimplemented from PObject.

Definition at line 501 of file asner.cxx.

References PObject::Class().

  PAssert(IsClass(PASN_Null::Class()), PInvalidCast);
  return new PASN_Null(*this);

Here is the call graph for this function:

Generated by  Doxygen 1.6.0   Back to index