The class ElementCacheCollection allows to store a collection of caches for the elements of a mesh. More...
Public Types | |
typedef LevelSetCacheCollection< long > | Base |
typedef LevelSetCache< key_type > | Cache |
typedef Base::key_type | key_type |
template<typename value_t > | |
using | ValueCache = LevelSetValueCache<key_type, value_t> |
Public Types inherited from bitpit::LevelSetCacheCollection< long > | |
typedef std::vector< Item > | Caches |
typedef Caches::const_iterator | const_iterator |
typedef Caches::iterator | iterator |
typedef long | key_type |
Public Member Functions | |
ElementCacheCollection (const PiercedKernel< key_type > *kernel) | |
template<typename container_t , typename... Args, typename std::enable_if< std::is_same< bitpit::PiercedStorage< typename container_t::value_type >, container_t >::value >::type * = nullptr> | |
std::size_t | insert (std::size_t index, Args &&... args) |
template<typename container_t , typename... Args, typename std::enable_if<!std::is_same< bitpit::PiercedStorage< typename container_t::value_type >, container_t >::value >::type * = nullptr> | |
std::size_t | insert (std::size_t index, Args &&... args) |
Public Member Functions inherited from bitpit::LevelSetCacheCollection< long > | |
LevelSetCacheCollection (const LevelSetCacheCollection &other) | |
LevelSetCacheCollection (LevelSetCacheCollection &&other)=default | |
Item & | at (std::size_t index) |
const Item & | at (std::size_t index) const |
iterator | begin () |
const_iterator | begin () const |
const_iterator | cbegin () const |
const_iterator | cend () const |
void | clear () |
virtual std::unique_ptr< LevelSetCacheCollection< long > > | clone () const |
iterator | end () |
const_iterator | end () const |
void | erase (std::size_t index) |
std::size_t | insert (std::size_t index, Args &&... args) |
Item & | operator[] (std::size_t index) |
const Item & | operator[] (std::size_t index) const |
std::size_t | size () const |
Protected Attributes | |
const PiercedKernel< long > * | m_kernel |
Protected Attributes inherited from bitpit::LevelSetCacheCollection< long > | |
Caches | m_caches |
Caches owned by the collection. | |
Additional Inherited Members | |
Static Public Attributes inherited from bitpit::LevelSetCacheCollection< long > | |
static const std::size_t | NULL_CACHE_ID |
The class ElementCacheCollection allows to store a collection of caches for the elements of a mesh.
Definition at line 670 of file levelSetCache.hpp.
typedef LevelSetCacheCollection<long> bitpit::ElementCacheCollection::Base |
Definition at line 673 of file levelSetCache.hpp.
typedef LevelSetCache<key_type> bitpit::ElementCacheCollection::Cache |
Definition at line 677 of file levelSetCache.hpp.
typedef Base::key_type bitpit::ElementCacheCollection::key_type |
Definition at line 675 of file levelSetCache.hpp.
using bitpit::ElementCacheCollection::ValueCache = LevelSetValueCache<key_type, value_t> |
Definition at line 680 of file levelSetCache.hpp.
bitpit::ElementCacheCollection::ElementCacheCollection | ( | const PiercedKernel< key_type > * | kernel | ) |
Constructor.
kernel | is the kernel that will be used by the pierced caches |
Definition at line 95 of file levelSetCache.cpp.
std::size_t bitpit::ElementCacheCollection::insert | ( | std::size_t | index, |
Args &&... | args ) |
Insert a new cache.
index | is the index that will be assigned to the cache |
args | are the arguments that will be used to create the cache factory |
Definition at line 1905 of file levelSetCache.tpp.
|
protected |
Definition at line 690 of file levelSetCache.hpp.