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

DefaultDataFactory< T > Class Template Reference

Factory object to data members of a BoxLayoutData container. More...

#include <BoxLayoutData.H>

Inheritance diagram for DefaultDataFactory< T >:

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

Collaboration graph
[legend]
List of all members.

Public Methods

virtual T * create (const Box &box, int ncomps, const DataIndex &a_datInd) const
 factory function. creates a new 'T' object


Detailed Description

template<class T>
class DefaultDataFactory< T >

Factory object to data members of a BoxLayoutData container.

creates new T object by invoking operator new

 template <class T>
 T* DefaultDataFactory<T>::create(const Box& box,
                                  int ncomps,
                                  const DataIndex& a_datInd) const
 {
   return new T(box, ncomps);
 }


Member Function Documentation

template<class T>
T * DefaultDataFactory< T >::create const Box   box,
int    ncomps,
const DataIndex   a_datInd
const [virtual]
 

factory function. creates a new 'T' object

creates a new 'T' object and returns a pointer to it. Responsiblitly for calling operator 'delete' on this pointer is passed to the user.

Implements DataFactory< T >.


The documentation for this class was generated from the following file:
Generated on Wed Jan 19 17:55:53 2005 for Chombo&INSwithParticles by doxygen1.2.16