Chombo + EB + MF  3.2
Public Member Functions | Private Attributes | List of all members
BinFabFactory< T > Class Template Reference

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

#include <BinFabFactory.H>

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

Public Member Functions

virtual BinFab< T > * create (const Box &a_box, int a_numComps, const DataIndex &a_dit) const
 Factory function. More...
 
 BinFabFactory (const RealVect &a_meshSpacing, const RealVect &a_origin)
 Use these parameters for all manufactured BinFab instances. More...
 
 BinFabFactory (const Real &a_meshSpacing)
 Use these parameters for all manufactured BinFab instances, default the rest. More...
 
void define (const RealVect &a_meshSpacing, const RealVect &a_origin)
 Use these parameters for all manufactured BinFab instances. More...
 
virtual ~BinFabFactory ()
 Destructor. More...
 
- Public Member Functions inherited from DataFactory< BinFab< T > >
virtual ~DataFactory ()
 
virtual bool callDelete () const
 
virtual bool threadSafe () const
 

Private Attributes

RealVect m_mesh_spacing
 cell size in physical coordinates More...
 
RealVect m_origin
 location in physical space of the lower corner of the 0 cell More...
 

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.

Constructor & Destructor Documentation

◆ BinFabFactory() [1/2]

template<class T >
BinFabFactory< T >::BinFabFactory ( const RealVect a_meshSpacing,
const RealVect a_origin 
)
inline

Use these parameters for all manufactured BinFab instances.

Fills internal data with inputs

References BinFabFactory< T >::define().

◆ BinFabFactory() [2/2]

template<class T >
BinFabFactory< T >::BinFabFactory ( const Real a_meshSpacing)
inline

Use these parameters for all manufactured BinFab instances, default the rest.

Fills internal data with inputs, defaulting origin to 0 and promoting meshspacing from scalar to RealVect

References BinFabFactory< T >::define(), RealVect::Unit, RealVect::Zero, and BinFabFactory< T >::~BinFabFactory().

◆ ~BinFabFactory()

template<class T >
BinFabFactory< T >::~BinFabFactory ( )
virtual

Destructor.

Referenced by BinFabFactory< T >::BinFabFactory().

Member Function Documentation

◆ create()

template<class T >
BinFab< T > * BinFabFactory< T >::create ( const Box a_box,
int  a_numComps,
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 > >.

◆ define()

template<class T >
void BinFabFactory< T >::define ( const RealVect a_meshSpacing,
const RealVect a_origin 
)

Use these parameters for all manufactured BinFab instances.

Fills internal data with inputs

Referenced by BinFabFactory< T >::BinFabFactory().

Member Data Documentation

◆ m_mesh_spacing

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

cell size in physical coordinates

◆ m_origin

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

location in physical space of the lower corner of the 0 cell


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