Loading...
Searching...
No Matches
Public Types | Public Member Functions | Protected Attributes | List of all members
bitpit::ElementCacheCollection Interface Reference

The class ElementCacheCollection allows to store a collection of caches for the elements of a mesh. More...

Inheritance diagram for bitpit::ElementCacheCollection:
Inheritance graph
[legend]
Collaboration diagram for bitpit::ElementCacheCollection:
Collaboration graph
[legend]

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
 

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

Definition at line 673 of file levelSetCache.hpp.

◆ 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

template<typename value_t >
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
kernelis the kernel that will be used by the pierced caches

Definition at line 95 of file levelSetCache.cpp.

Member Function Documentation

◆ insert()

template<typename container_t , typename... Args, typename std::enable_if<!std::is_same< bitpit::PiercedStorage< typename container_t::value_type >, container_t >::value >::type * >
std::size_t bitpit::ElementCacheCollection::insert ( std::size_t index,
Args &&... args )

Insert a new cache.

Parameters
indexis the index that will be assigned to the cache
argsare 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

const PiercedKernel<long>* bitpit::ElementCacheCollection::m_kernel
protected

Definition at line 690 of file levelSetCache.hpp.


The documentation for this interface was generated from the following files:
--- layout: doxygen_footer ---