![]() |
Block-Structured AMR Software Framework
|
Default FabFactory that calls new / delete on the FAB type directly.
More...
#include <AMReX_FabFactory.H>
Public Member Functions | |
| FAB * | create (const Box &box, int ncomps, const FabInfo &info, int) const override |
Create a FAB covering box with ncomps components. | |
| FAB * | create_alias (FAB const &rhs, int scomp, int ncomp) const override |
Create an alias FAB that views components [scomp, scomp+ of rhs. | |
| void | destroy (FAB *fab) const override |
| Destroy a FAB previously created by this factory. | |
| DefaultFabFactory< FAB > * | clone () const override |
| Return a heap-allocated copy of this factory. | |
Public Member Functions inherited from amrex::FabFactory< FAB > | |
| FabFactory () noexcept=default | |
| FabFactory (FabFactory const &) noexcept=default | |
| FabFactory (FabFactory &&) noexcept=default | |
| FabFactory & | operator= (FabFactory const &) noexcept=default |
| FabFactory & | operator= (FabFactory &&) noexcept=default |
| virtual | ~FabFactory () noexcept=default |
| virtual Long | nBytes (const Box &box, int ncomps, int) const |
Return the storage size for ncomps components in box, or -1 if unavailable. | |
Default FabFactory that calls new / delete on the FAB type directly.
| FAB | FAB type to construct. |
|
inlineoverridevirtual |
Return a heap-allocated copy of this factory.
Implements amrex::FabFactory< FAB >.
|
inlineoverridevirtual |
Create a FAB covering box with ncomps components.
Storage allocation is controlled by info.
| box | Region represented by the FAB. |
| ncomps | Number of components per cell. |
| info | Allocation hints (arena, shared flag, etc.). |
| box_index | Global box index supplied by the owning container. |
Implements amrex::FabFactory< FAB >.
|
inlineoverridevirtual |
Create an alias FAB that views components [scomp, scomp+ of ncomp)rhs.
Default implementation returns nullptr, indicating aliasing is unsupported.
Reimplemented from amrex::FabFactory< FAB >.
|
inlineoverridevirtual |
Destroy a FAB previously created by this factory.
Implements amrex::FabFactory< FAB >.