Main Page | Namespace List | Class Hierarchy | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

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

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

List of all members.

Public Member Functions

 PatchLevelFactory ()
virtual ~PatchLevelFactory ()
virtual tbox::Pointer< PatchLevel<
DIM > > 
allocate (const BoxArray< DIM > &boxes, const ProcessorMapping &mapping, const IntVector< DIM > &ratio_to_level_zero, const tbox::Pointer< GridGeometry< DIM > > grid_geometry, const tbox::Pointer< PatchDescriptor< DIM > > descriptor, tbox::Pointer< PatchFactory< DIM > > factory=(0)) const
virtual tbox::Pointer< PatchLevel<
DIM > > 
allocate (tbox::Pointer< tbox::Database > database, const tbox::Pointer< GridGeometry< DIM > > grid_geometry, const tbox::Pointer< PatchDescriptor< DIM > > descriptor, tbox::Pointer< PatchFactory< DIM > > factory=(0), const ComponentSelector component_selector=ComponentSelector(false)) const


Detailed Description

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

Class PatchLevelFactory<DIM> is a factory object used to create new patch levels. New types of patch level objects can be introduced into SAMRAI by deriving from PatchLevelFactory<DIM> and re-defining allocate.

See also:
hier::PatchLevel


Constructor & Destructor Documentation

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

Construct a patch level factory object.

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

Virtual destructor for patch level factory objects.


Member Function Documentation

template<int DIM>
tbox::Pointer< PatchLevel< DIM > > SAMRAI::hier::PatchLevelFactory< DIM >::allocate const BoxArray< DIM > &  boxes,
const ProcessorMapping mapping,
const IntVector< DIM > &  ratio_to_level_zero,
const tbox::Pointer< GridGeometry< DIM > >  grid_geometry,
const tbox::Pointer< PatchDescriptor< DIM > >  descriptor,
tbox::Pointer< PatchFactory< DIM > >  factory = (0)
const [virtual]
 

Allocate a patch level with the specified boxes and processor mappings. Redefine this function to change the method for creating patch levels.

template<int DIM>
tbox::Pointer< PatchLevel< DIM > > SAMRAI::hier::PatchLevelFactory< DIM >::allocate tbox::Pointer< tbox::Database database,
const tbox::Pointer< GridGeometry< DIM > >  grid_geometry,
const tbox::Pointer< PatchDescriptor< DIM > >  descriptor,
tbox::Pointer< PatchFactory< DIM > >  factory = (0),
const ComponentSelector  component_selector = ComponentSelector(false)
const [virtual]
 

Allocate a patch level using the data from the database to initialize it. The component_selector argument is used to specify which patch data components to allocate and read in from the database. By default, the component_selector has all its bits set to false so that no patch data components are allocated and read from the database.

Redefine this function to change the method for creating patch levels from a database.


The documentation for this class was generated from the following files:
Generated on Fri Dec 2 11:24:39 2005 for SAMRAI by  doxygen 1.4.2