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

Polymorph< string > Class Template Reference

#include <polymorph.h>

Inheritance diagram for Polymorph< string >:

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

Collaboration graph
[legend]
List of all members.

Detailed Description

template<>
class Polymorph< string >

Specialization for string types.

Definition at line 247 of file polymorph.h.

Public Types

typedef string value_type
typedef Polymorph< value_type > self

Public Methods

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

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

virtual string prettyprint (String::StreamFormat format=String::StreamFormat()) const\
 Returns a string representation of the current value of this object, with extra formatting suitable for user-visible values, if appropriate (e.g.


Member Function Documentation

virtual Typeless* Polymorph< string >::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< string >.

Definition at line 254 of file polymorph.h.

virtual string Polymorph< string >::prettyprint String::StreamFormat    format = String::StreamFormat() const [inline, virtual]
 

Returns a string representation of the current value of this object, with extra formatting suitable for user-visible values, if appropriate (e.g.

quotes around strings). Unless overridden by a particular class, this is the same as stringrep().

Reimplemented from Typeless.

Definition at line 256 of file polymorph.h.

References PolymorphBase< T >::stringrep().


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