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

Factory object to data members of a BoxLayoutData container. More...

#include <BoxLayoutData.H>

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

Public Member Functions

virtual T * create (const Box &box, int ncomps, const DataIndex &a_datInd) const
 factory function. creates a new 'T' object More...
 
template<>
BaseFab< int > * create (const Box &box, int ncomps, const DataIndex &a_datInd) const
 factory function. creates a new 'T' object More...
 
template<>
FArrayBoxcreate (const Box &box, int ncomps, const DataIndex &a_datInd) const
 factory function. creates a new 'T' object More...
 
- Public Member Functions inherited from DataFactory< T >
virtual ~DataFactory ()
 
virtual bool callDelete () const
 
virtual bool threadSafe () const
 

Detailed Description

template<class T>
class DefaultDataFactory< T >

Factory object to data members of a BoxLayoutData container.

creates new T object by invoking operator new

template <class T>
int ncomps,
const DataIndex& a_datInd) const
{
return new T(box, ncomps);
}

Member Function Documentation

template<class T >
T * DefaultDataFactory< T >::create ( const Box box,
int  ncomps,
const DataIndex a_datInd 
) const
virtual

factory function. creates a new 'T' object

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

Implements DataFactory< T >.

template<>
BaseFab< int > * DefaultDataFactory< BaseFab< int > >::create ( const Box box,
int  ncomps,
const DataIndex a_datInd 
) const
virtual

factory function. creates a new 'T' object

creates a new 'T' object and returns a pointer to it.

Implements DataFactory< T >.

template<>
FArrayBox * DefaultDataFactory< FArrayBox >::create ( const Box box,
int  ncomps,
const DataIndex a_datInd 
) const
virtual

factory function. creates a new 'T' object

creates a new 'T' object and returns a pointer to it.

Implements DataFactory< T >.


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