#include <BoxLayoutData.H>
creates new T object by invoking operator new
template <class T> T* DefaultDataFactory<T>::create(const Box& box, int ncomps, const DataIndex& a_datInd) const { return new T(box, ncomps); }
Public Member Functions | |
virtual T * | create (const Box &box, int ncomps, const DataIndex &a_datInd) const |
factory function. creates a new 'T' object | |
template<> | |
BaseFab< int > * | create (const Box &box, int ncomps, const DataIndex &a_datInd) const |
factory function. creates a new 'T' object | |
template<> | |
FArrayBox * | create (const Box &box, int ncomps, const DataIndex &a_datInd) const |
factory function. creates a new 'T' object |
T * DefaultDataFactory< T >::create | ( | const Box & | box, | |
int | ncomps, | |||
const DataIndex & | a_datInd | |||
) | const [inline, 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 >.
BaseFab< int > * DefaultDataFactory< BaseFab< int > >::create | ( | const Box & | box, | |
int | ncomps, | |||
const DataIndex & | a_datInd | |||
) | const [inline, virtual] |
factory function. creates a new 'T' object
creates a new 'T' object and returns a pointer to it.
Implements DataFactory< T >.
FArrayBox * DefaultDataFactory< FArrayBox >::create | ( | const Box & | box, | |
int | ncomps, | |||
const DataIndex & | a_datInd | |||
) | const [inline, virtual] |
factory function. creates a new 'T' object
creates a new 'T' object and returns a pointer to it.
Implements DataFactory< T >.