#include <BoxLayoutData.H>
Inheritance diagram for DefaultDataFactory< T >:
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 |
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); }
|
factory function. creates a new 'T' object creates a new 'T' object and returns a pointer to it. Implements DataFactory< T >. |
|
factory function. creates a new 'T' object creates a new 'T' object and returns a pointer to it. Implements DataFactory< T >. |
|
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 >. |