Main Page   Class Hierarchy   Compound List   File List   Compound Members  

CopyAndAssign Class Reference

An interface with a copy constructor and assignment operator. More...

#include <CopyAndAssign.h>

Inheritance diagram for CopyAndAssign:

Inheritance graph
[legend]
List of all members.

Public Methods

 CopyAndAssign ()
 CopyAndAssign (const CopyAndAssign &rhs)
virtual CopyAndAssign& operator= (const CopyAndAssign &rhs)

Protected Methods

virtual CopyAndAssign& Copy (const CopyAndAssign &rhs)
virtual void NullifyPointers ()

Detailed Description

An interface with a copy constructor and assignment operator.

When a class implements this interface, Only the NullifyPointers() and Copy() functions need to be defined. Then, you get the copy constructor and assignment operator for free.


The documentation for this class was generated from the following file:
Generated at Wed May 2 00:24:42 2001 for API by doxygen1.2.6 written by Dimitri van Heesch, © 1997-2001