|
Nektar++
|
Generic object pool allocator/deallocator. More...
#include <ObjectPool.hpp>
Classes | |
| struct | UniquePtrDeleter |
Static Public Member Functions | |
| template<typename... Args> | |
| static DataType * | Allocate (const Args &...args) |
| static void | Deallocate (DataType *ptr) |
| template<typename... Args> | |
| static std::unique_ptr< DataType, UniquePtrDeleter > | AllocateUniquePtr (const Args &...args) |
Static Public Attributes | |
| static PoolAllocator< DataType > | m_alloc |
Generic object pool allocator/deallocator.
This class provides an allocator based on the boost::fast_pool_allocator for creating object pools.
Definition at line 60 of file ObjectPool.hpp.
|
inlinestatic |
Definition at line 63 of file ObjectPool.hpp.
References Nektar::ObjPoolManager< DataType >::m_alloc.
Referenced by Nektar::ObjPoolManager< DataType >::AllocateUniquePtr().
|
inlinestatic |
Definition at line 85 of file ObjectPool.hpp.
References Nektar::ObjPoolManager< DataType >::Allocate().
Referenced by Nektar::SpatialDomains::MeshGraph::CreateHexGeom(), Nektar::SpatialDomains::MeshGraph::CreatePointGeom(), Nektar::SpatialDomains::MeshGraph::CreatePrismGeom(), Nektar::SpatialDomains::MeshGraph::CreatePyrGeom(), Nektar::SpatialDomains::MeshGraph::CreateQuadGeom(), Nektar::MultiRegions::PreconditionerLowEnergy::CreateRefHexGeom(), Nektar::MultiRegions::PreconditionerLowEnergy::CreateRefPrismGeom(), Nektar::MultiRegions::PreconditionerLowEnergy::CreateRefPyrGeom(), Nektar::MultiRegions::PreconditionerLowEnergy::CreateRefTetGeom(), Nektar::SpatialDomains::MeshGraph::CreateSegGeom(), Nektar::SpatialDomains::MeshGraph::CreateTetGeom(), Nektar::SpatialDomains::MeshGraph::CreateTriGeom(), Nektar::MultiRegions::DisContField::FindPeriodicTraces(), Nektar::SpatialDomains::SegGeom::GenerateOneSpaceDimGeom(), Geometry_Init(), Geometry_Init_Curved(), main(), PointGeom_Init(), SegGeom_Init(), Nektar::GlobalMapping::UpdateGeometry(), Nektar::FilterElectrogram::v_Initialise(), Nektar::SpatialDomains::MeshGraphIOXml::v_ReadElements3D(), and Nektar::SpatialDomains::MeshGraphIOXmlCompressed::v_ReadElements3D().
|
inlinestatic |
Definition at line 70 of file ObjectPool.hpp.
References Nektar::ObjPoolManager< DataType >::m_alloc.
Referenced by Nektar::ObjPoolManager< DataType >::UniquePtrDeleter::operator()().
| PoolAllocator< SpatialDomains::GeomFactors > Nektar::ObjPoolManager< SpatialDomains::GeomFactors >::m_alloc |
Definition at line 43 of file GeomFactors.cpp.
| PoolAllocator< SpatialDomains::PointGeom > Nektar::ObjPoolManager< SpatialDomains::PointGeom >::m_alloc |
Definition at line 64 of file MeshGraph.h.
Definition at line 67 of file MeshGraph.h.
Definition at line 70 of file MeshGraph.h.
| PoolAllocator< SpatialDomains::QuadGeom > Nektar::ObjPoolManager< SpatialDomains::QuadGeom >::m_alloc |
Definition at line 73 of file MeshGraph.h.
Definition at line 76 of file MeshGraph.h.
Definition at line 79 of file MeshGraph.h.
| PoolAllocator< SpatialDomains::PrismGeom > Nektar::ObjPoolManager< SpatialDomains::PrismGeom >::m_alloc |
Definition at line 82 of file MeshGraph.h.
Definition at line 85 of file MeshGraph.h.
| PoolAllocator< SpatialDomains::PointGeom > Nektar::ObjPoolManager< SpatialDomains::PointGeom >::m_alloc |
Definition at line 50 of file SegGeom.cpp.
Definition at line 53 of file SegGeom.cpp.
|
static |
Definition at line 91 of file ObjectPool.hpp.
Referenced by Nektar::ObjPoolManager< DataType >::Allocate(), and Nektar::ObjPoolManager< DataType >::Deallocate().