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 (const LevelSetCacheCollection &other) | |
| LevelSetCacheCollection (LevelSetCacheCollection &&other)=default | |
| LevelSetCacheCollection (LevelSetCacheCollection &&other)=default | |
| Item & | at (std::size_t index) |
| Item & | at (std::size_t index) |
| const Item & | at (std::size_t index) const |
| const Item & | at (std::size_t index) const |
| iterator | begin () |
| iterator | begin () |
| const_iterator | begin () const |
| const_iterator | begin () const |
| const_iterator | cbegin () const |
| const_iterator | cbegin () const |
| const_iterator | cend () const |
| const_iterator | cend () const |
| void | clear () |
| void | clear () |
| virtual std::unique_ptr< LevelSetCacheCollection< long > > | clone () const |
| virtual std::unique_ptr< LevelSetCacheCollection< long > > | clone () const |
| iterator | end () |
| iterator | end () |
| const_iterator | end () const |
| const_iterator | end () const |
| void | erase (std::size_t index) |
| void | erase (std::size_t index) |
| std::size_t | insert (std::size_t index, Args &&... args) |
| std::size_t | insert (std::size_t index, Args &&... args) |
| Item & | operator[] (std::size_t index) |
| Item & | operator[] (std::size_t index) |
| const Item & | operator[] (std::size_t index) const |
| const Item & | operator[] (std::size_t index) const |
| std::size_t | size () 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. | |
| 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 |
| static const std::size_t | NULL_CACHE_ID |
Detailed Description
The class ElementCacheCollection allows to store a collection of caches for the elements of a mesh.
Definition at line 670 of file levelSetCache.hpp.
Member Typedef Documentation
◆ Base
| typedef LevelSetCacheCollection<long> bitpit::ElementCacheCollection::Base |
Definition at line 673 of file levelSetCache.hpp.
◆ Cache
| typedef LevelSetCache<key_type> bitpit::ElementCacheCollection::Cache |
Definition at line 677 of file levelSetCache.hpp.
◆ key_type
| typedef Base::key_type bitpit::ElementCacheCollection::key_type |
Definition at line 675 of file levelSetCache.hpp.
◆ ValueCache
| using bitpit::ElementCacheCollection::ValueCache = LevelSetValueCache<key_type, value_t> |
Definition at line 680 of file levelSetCache.hpp.
Constructor & Destructor Documentation
◆ ElementCacheCollection()
| bitpit::ElementCacheCollection::ElementCacheCollection | ( | const PiercedKernel< key_type > * | kernel | ) |
Constructor.
- Parameters
-
kernel is the kernel that will be used by the pierced caches
Definition at line 95 of file levelSetCache.cpp.
Member Function Documentation
◆ insert()
| std::size_t bitpit::ElementCacheCollection::insert | ( | std::size_t | index, |
| Args &&... | args ) |
Insert a new cache.
- Parameters
-
index is the index that will be assigned to the cache args are the arguments that will be used to create the cache factory
- Returns
- The index associated with the newly created cache.
Definition at line 1905 of file levelSetCache.tpp.
Member Data Documentation
◆ m_kernel
|
protected |
Definition at line 690 of file levelSetCache.hpp.
The documentation for this interface was generated from the following files:
- src/levelset/levelSetCache.hpp
- src/levelset/levelSetCache.cpp
- src/levelset/levelSetCache.tpp
1.13.2
Public Types inherited from