SAMRAI::hier::PatchFactory< DIM > Class Template Reference

#include <source/hierarchy/patches/PatchFactory.h>

List of all members.

Public Member Functions

 PatchFactory ()
virtual ~PatchFactory ()
virtual tbox::Pointer< Patch<
DIM > > 
allocate (const Box< DIM > &box, tbox::Pointer< PatchDescriptor< DIM > > descriptor) const


Detailed Description

template<int DIM>
class SAMRAI::hier::PatchFactory< DIM >

Class PatchFactory<DIM> is a factory object used to create new patches. New types of patch objects can be introduced into the hierarchy through derivation and re-defining the allocate member function. There should be no direct calls to the patch constructor (other than through the patch factory).

See also:
hier::Patch


Constructor & Destructor Documentation

template<int DIM>
SAMRAI::hier::PatchFactory< DIM >::PatchFactory (  )  [inline]

Construct a patch factory object.

template<int DIM>
SAMRAI::hier::PatchFactory< DIM >::~PatchFactory (  )  [virtual]

Virtual destructor for patch factory objects.


Member Function Documentation

template<int DIM>
tbox::Pointer< Patch< DIM > > SAMRAI::hier::PatchFactory< DIM >::allocate ( const Box< DIM > &  box,
tbox::Pointer< PatchDescriptor< DIM > >  descriptor 
) const [virtual]

Allocate a patch with the specified domain and patch descriptor.


The documentation for this class was generated from the following files:
Generated on Thu Jun 18 11:28:29 2009 for SAMRAI by  doxygen 1.5.1