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

BinFabFactory< T > Class Template Reference

#include <BinFabFactory.H>

Inheritance diagram for BinFabFactory< T >:

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

Collaboration graph
[legend]
List of all members.

Detailed Description

template<class T>
class BinFabFactory< T >

Factory class to produce one or more instances of BinFab on the same level.

The mesh and ProblemDomain will be the same for all instances created by the factory. This is needed for LevelData construction.


Public Member Functions

virtual BinFab< T > * create (const Box &a_box, int a_ncomps, const DataIndex &a_dit) const
 Factory function.

 BinFabFactory (const RealVect &a_mesh_spacing, const RealVect &a_origin, const ProblemDomain &a_probdomain)
 Use these parameters for all manufactured BinFab instances.

virtual ~BinFabFactory ()
 Destructor.


Private Attributes

RealVect m_mesh_spacing
 cell size in physical space

RealVect m_origin
 location in physical space of the 0 index

ProblemDomain m_probdomain
 contains the Box on which this BinFab is defined


Constructor & Destructor Documentation

template<class T>
BinFabFactory< T >::BinFabFactory const RealVect a_mesh_spacing,
const RealVect a_origin,
const ProblemDomain a_probdomain
 

Use these parameters for all manufactured BinFab instances.

template<class T>
BinFabFactory< T >::~BinFabFactory  )  [virtual]
 

Destructor.


Member Function Documentation

template<class T>
BinFab< T > * BinFabFactory< T >::create const Box a_box,
int  a_ncomps,
const DataIndex a_dit
const [virtual]
 

Factory function.

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

Assumes a_ncomps is 1 and ignores a_dit.

Implements DataFactory< BinFab< T > >.


Member Data Documentation

template<class T>
RealVect BinFabFactory< T >::m_mesh_spacing [private]
 

cell size in physical space

template<class T>
RealVect BinFabFactory< T >::m_origin [private]
 

location in physical space of the 0 index

template<class T>
ProblemDomain BinFabFactory< T >::m_probdomain [private]
 

contains the Box on which this BinFab is defined


The documentation for this class was generated from the following files:
Generated on Fri Jul 2 17:55:42 2004 for Chombo by doxygen 1.3.2