FreePOOMA  2.4.1
Public Types | Public Member Functions
AttributeWrapper< T > Class Template Reference

AttributeWrapper<T> is a subclass of the abstract base class Attribute. More...

#include <AttributeWrapper.h>

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

List of all members.

Public Types

typedef Attribute Base_t
typedef AttributeWrapper< T > This_t
typedef T Wrapped_t

Public Member Functions

 AttributeWrapper (Wrapped_t &array)
virtual ~AttributeWrapper ()
Wrapped_tarray ()
const Wrapped_tarray () const
virtual void print (std::ostream &o) const
 Print the contents of the Array to the given stream.

Detailed Description

template<class T>
class AttributeWrapper< T >

AttributeWrapper<T> is a subclass of the abstract base class Attribute.

It is templated on a class T, where T should be some form of Array or DynamicArray that supports a dynamic data structure interface.

AttributeWrapper is meant to be used as an external polymorphism derived class. You create an AttributeWrapper and give it an object to wrap around; the abstract base class is used to provide an abstract interface to a heterogenous collection of AttributeWrappers from some other user, for example a Particles class. Particles actually uses an AttributeList object to hold a collection of Attributes.


Member Typedef Documentation

template<class T >
typedef Attribute AttributeWrapper< T >::Base_t
template<class T >
typedef AttributeWrapper<T> AttributeWrapper< T >::This_t
template<class T >
typedef T AttributeWrapper< T >::Wrapped_t

Constructor & Destructor Documentation

template<class T >
AttributeWrapper< T >::AttributeWrapper ( Wrapped_t array) [inline]
template<class T >
virtual AttributeWrapper< T >::~AttributeWrapper ( ) [inline, virtual]

Member Function Documentation

template<class T >
Wrapped_t& AttributeWrapper< T >::array ( ) [inline]
template<class T >
const Wrapped_t& AttributeWrapper< T >::array ( ) const [inline]
template<class T >
virtual void AttributeWrapper< T >::print ( std::ostream &  ) const [inline, virtual]

Print the contents of the Array to the given stream.

Implements Attribute.

References AttributeWrapper< T >::array(), and std::endl().


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