FreePOOMA  2.4.1
Public Member Functions
Attribute Class Reference

Attribute is an abstract base class used to implement an external polymorphism interface to DynamicArray objects. More...

#include <Attribute.h>

Inheritance diagram for Attribute:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 Attribute ()
 Default constructor.
 Attribute (const Attribute &)
 Copy constructor.
virtual ~Attribute ()
 Attribute needs a virtual destructor, since we will be deleting Attribute's from a base class pointer.
virtual void print (std::ostream &) const =0
 Print the contents of the Array to the given stream.

Detailed Description

Attribute is an abstract base class used to implement an external polymorphism interface to DynamicArray objects.

The AttributeWrapper subclass is templated on the type of Array (really, DynamicArray) that the user wants to provide an abstract interface to. This is used to let users create heterogenous collections of DynamicArray's, and to perform common tasks on all of them such as print.


Constructor & Destructor Documentation

Attribute::Attribute ( ) [inline]

Default constructor.

Attribute::Attribute ( const Attribute ) [inline]

Copy constructor.

virtual Attribute::~Attribute ( ) [inline, virtual]

Attribute needs a virtual destructor, since we will be deleting Attribute's from a base class pointer.


Member Function Documentation

virtual void Attribute::print ( std::ostream &  ) const [pure virtual]

Print the contents of the Array to the given stream.

Implemented in AttributeWrapper< T >.

Referenced by operator<<().


The documentation for this class was generated from the following file: