Main Page   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   File Members  

Polymorph< T > Class Template Reference

#include <polymorph.h>

Inheritance diagram for Polymorph< T >:

Inheritance graph
[legend]
Collaboration diagram for Polymorph< T >:

Collaboration graph
[legend]
List of all members.

Detailed Description

template<class T>
class Polymorph< T >

Generic implementation of a polymorphic object; no support for numericvalue().

Definition at line 176 of file polymorph.h.

Public Types

typedef T value_type
typedef Polymorph< value_type > self

Public Methods

 Polymorph (const value_type val)
 Polymorph (value_type *ptr)
virtual Typeless * clone () const
 Constructs an identical copy of self and returns it.

virtual Typeless * duplicate () const
 Same as clone except that the result is guaranteed to have an independent copy of the underlying value.


Member Function Documentation

template<class T>
virtual Typeless* Polymorph< T >::clone (    )  const [inline, virtual]
 

Constructs an identical copy of self and returns it.

Due to Cray C++'s variance from the C++ standard, cannot use actual type as the return value (or it wouldn't match the protype in Typeless.)

Reimplemented from PolymorphBase< T >.

Definition at line 183 of file polymorph.h.


The documentation for this class was generated from the following file:
Generated on Mon Jan 20 02:37:11 2003 for RF-LISSOM by doxygen1.3-rc2