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

PObject * PObject::Clone (  ) const [virtual, inherited]

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 in PASN_Null, PASN_Boolean, PASN_Integer, PASN_Enumeration, PASN_Real, PASN_ObjectId, PASN_BitString, PASN_OctetString, PASN_BMPString, PASN_Sequence, PASN_Set, PASNObject, PASNInteger, PASNString, PASNIPAddress, PASNTimeTicks, PASNCounter, PASNGauge, PASNObjectID, PASNNull, PSocks4Socket, PSocks5Socket, PSocksUDPSocket, POrdinalKey, PTime, PTCPSocket, PTimeInterval, and PIPCacheKey.

Definition at line 424 of file object.cxx.

Referenced by PAbstractDictionary::AbstractSetAt().

  return NULL;

Here is the caller graph for this function:

Generated by  Doxygen 1.6.0   Back to index