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

SAMRAI::pdat::EdgeDataFactory< DIM, TYPE > Class Template Reference

#include <source/patchdata/edge/EdgeDataFactory.h>

Inheritance diagram for SAMRAI::pdat::EdgeDataFactory< DIM, TYPE >:

Inheritance graph
[legend]
List of all members.

Public Member Functions

 EdgeDataFactory (int depth, const hier::IntVector< DIM > &ghosts, bool fine_boundary_represents_var)
virtual ~EdgeDataFactory ()
virtual tbox::Pointer< hier::PatchDataFactory<
DIM > > 
cloneFactory ()
virtual tbox::Pointer< hier::PatchData<
DIM > > 
allocate (const hier::Box< DIM > &box, tbox::Pointer< tbox::Arena > pool=tbox::Pointer< tbox::Arena >((0))) const
virtual tbox::Pointer< hier::BoxGeometry<
DIM > > 
getBoxGeometry (const hier::Box< DIM > &box) const
virtual const hier::IntVector<
DIM > & 
getDefaultGhostCellWidth () const
virtual void setDefaultGhostCellWidth (const hier::IntVector< DIM > &ghosts)
int getDefaultDepth () const
void setDefaultDepth (const int depth)
virtual size_t getSizeOfMemory (const hier::Box< DIM > &box) const
bool fineBoundaryRepresentsVariable () const
bool dataLivesOnPatchBorder () const
bool validCopyTo (const tbox::Pointer< hier::PatchDataFactory< DIM > > &dst_pdf) const

Detailed Description

template<int DIM, class TYPE>
class SAMRAI::pdat::EdgeDataFactory< DIM, TYPE >

Class EdgeDataFactory is a factory class used to allocate new instances of EdgeData objects. It is a subclass of the patch data factory class and edge data is a subclass of patch data. Both the factory and data classes are templated on the type of the contained object (e.g., double or int).

See also:
pdat::EdgeData

pdat::PatchDataFactory


Constructor & Destructor Documentation

template<int DIM, class TYPE>
SAMRAI::pdat::EdgeDataFactory< DIM, TYPE >::EdgeDataFactory int  depth,
const hier::IntVector< DIM > &  ghosts,
bool  fine_boundary_represents_var
 

The constructor for the edge data factory class. The ghost cell width, depth (number of components), and fine boundary representation arguments give the defaults for all edge data objects created with this factory. See the EdgeVariable<DIM> class header file for more information.

template<int DIM, class TYPE>
SAMRAI::pdat::EdgeDataFactory< DIM, TYPE >::~EdgeDataFactory  )  [virtual]
 

Virtual destructor for the edge data factory class.


Member Function Documentation

template<int DIM, class TYPE>
tbox::Pointer< hier::PatchDataFactory< DIM > > SAMRAI::pdat::EdgeDataFactory< DIM, TYPE >::cloneFactory  )  [virtual]
 

Virtual function to clone the patch data factory . This will return a new instantiation of the factory with the same properties (e.g., same type and ghost cell width). The properties of the cloned factory can then be changed without modifying the original.

Implements SAMRAI::hier::PatchDataFactory< DIM >.

template<int DIM, class TYPE>
tbox::Pointer< hier::PatchData< DIM > > SAMRAI::pdat::EdgeDataFactory< DIM, TYPE >::allocate const hier::Box< DIM > &  box,
tbox::Pointer< tbox::Arena pool = tbox::Pointertbox::Arena >((0))
const [virtual]
 

Virtual factory function to allocate a concrete edge data object. The default information about the object (e.g., ghost cell width) is taken from the factory. If no memory pool is provided, then the allocation routine assumes some default memory pool.

template<int DIM, class TYPE>
tbox::Pointer< hier::BoxGeometry< DIM > > SAMRAI::pdat::EdgeDataFactory< DIM, TYPE >::getBoxGeometry const hier::Box< DIM > &  box  )  const [virtual]
 

Allocate the box geometry object associated with the patch data. This information will be used in the computation of intersections and data dependencies between objects.

template<int DIM, class TYPE>
const hier::IntVector< DIM > & SAMRAI::pdat::EdgeDataFactory< DIM, TYPE >::getDefaultGhostCellWidth  )  const [virtual]
 

Get the default ghost cell width. This is the ghost cell width that will be used in the instantiation of concrete edge data objects.

Implements SAMRAI::hier::PatchDataFactory< DIM >.

template<int DIM, class TYPE>
void SAMRAI::pdat::EdgeDataFactory< DIM, TYPE >::setDefaultGhostCellWidth const hier::IntVector< DIM > &  ghosts  )  [virtual]
 

Set the default ghost cell width. This is the ghost cell width that will be used in the instantiation of concrete edge data instances.

template<int DIM, class TYPE>
int SAMRAI::pdat::EdgeDataFactory< DIM, TYPE >::getDefaultDepth  )  const [inline]
 

Get the default depth (number of components). This is the default depth that will be used in the instantiation of edge data objects.

template<int DIM, class TYPE>
void SAMRAI::pdat::EdgeDataFactory< DIM, TYPE >::setDefaultDepth const int  depth  )  [inline]
 

Set the default depth (number of components). This is the default depth that will be used in the instantiation of edge data objects.

template<int DIM, class TYPE>
size_t SAMRAI::pdat::EdgeDataFactory< DIM, TYPE >::getSizeOfMemory const hier::Box< DIM > &  box  )  const [virtual]
 

Calculate the amount of memory needed to store the edge data object, including object data and dynamically allocated data.

template<int DIM, class TYPE>
bool SAMRAI::pdat::EdgeDataFactory< DIM, TYPE >::fineBoundaryRepresentsVariable  )  const [inline, virtual]
 

Return a boolean value indicating how data for the edge quantity will be treated on coarse-fine interfaces. This value is passed into the constructor. See the EdgeVariable<DIM> class header file for more information.

Implements SAMRAI::hier::PatchDataFactory< DIM >.

template<int DIM, class TYPE>
bool SAMRAI::pdat::EdgeDataFactory< DIM, TYPE >::dataLivesOnPatchBorder  )  const [inline, virtual]
 

Return true since the edge data index space extends beyond the interior of patches. That is, edge data lives on patch borders.

Implements SAMRAI::hier::PatchDataFactory< DIM >.

template<int DIM, class TYPE>
bool SAMRAI::pdat::EdgeDataFactory< DIM, TYPE >::validCopyTo const tbox::Pointer< hier::PatchDataFactory< DIM > > &  dst_pdf  )  const
 

Return whether it is valid to copy this EdgeDataFactory to the supplied destination patch data factory. It will return true if dst_pdf is EdgeDataFactory or OuteredgeDataFactory, false otherwise.


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