FreePOOMA
2.4.1
|
Attribute is an abstract base class used to implement an external polymorphism interface to DynamicArray objects. More...
#include <Attribute.h>
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. |
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.
Attribute::Attribute | ( | ) | [inline] |
Default constructor.
Attribute::Attribute | ( | const Attribute & | ) | [inline] |
Copy constructor.
virtual Attribute::~Attribute | ( | ) | [inline, virtual] |
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<<().