AXOM
Axom provides a robust, flexible software infrastructure for the development of multi-physics applications and computational tools.
|
MapCollection is a container class template for holding a collection of items of template parameter type T. More...
#include </home/docs/checkouts/readthedocs.org/user_builds/axom/checkouts/latest/src/axom/sidre/core/MapCollection.hpp>
Public Types | |
using | value_type = T |
using | iterator = typename ItemCollection< T >::iterator |
using | const_iterator = typename ItemCollection< T >::const_iterator |
Public Member Functions | |
size_t | getNumItems () const |
IndexType | getFirstValidIndex () const |
IndexType | getNextValidIndex (IndexType idx) const |
bool | hasItem (const std::string &name) const |
bool | hasItem (IndexType idx) const |
T * | getItem (const std::string &name) |
T const * | getItem (const std::string &name) const |
T * | getItem (IndexType idx) |
T const * | getItem (IndexType idx) const |
const std::string & | getItemName (IndexType idx) const |
IndexType | getItemIndex (const std::string &name) const |
IndexType | insertItem (T *item, const std::string &name) |
T * | removeItem (const std::string &name) |
T * | removeItem (IndexType idx) |
void | removeAllItems () |
iterator | begin () |
iterator | end () |
const_iterator | cbegin () const |
const_iterator | cend () const |
const_iterator | begin () const |
const_iterator | end () const |
iterator_adaptor | getIteratorAdaptor () |
Returns an adaptor wrapping this collection in support of iteration. More... | |
const_iterator_adaptor | getIteratorAdaptor () const |
Returns a const adaptor wrapping this collection in support of iteration. More... | |
MapCollection is a container class template for holding a collection of items of template parameter type T.
using axom::sidre::MapCollection< T >::value_type = T |
using axom::sidre::MapCollection< T >::iterator = typename ItemCollection<T>::iterator |
using axom::sidre::MapCollection< T >::const_iterator = typename ItemCollection<T>::const_iterator |
|
inlinevirtual |
Implements axom::sidre::ItemCollection< T >.
|
virtual |
Implements axom::sidre::ItemCollection< T >.
References axom::sidre::InvalidIndex.
|
virtual |
Implements axom::sidre::ItemCollection< T >.
References axom::sidre::InvalidIndex.
|
inline |
|
inlinevirtual |
Implements axom::sidre::ItemCollection< T >.
|
inline |
|
inline |
|
inlinevirtual |
Implements axom::sidre::ItemCollection< T >.
References axom::sidre::MapCollection< T >::hasItem().
|
inlinevirtual |
Implements axom::sidre::ItemCollection< T >.
References axom::sidre::MapCollection< T >::hasItem().
|
inline |
References axom::sidre::MapCollection< T >::hasItem(), and axom::sidre::InvalidName.
|
inline |
References axom::sidre::InvalidIndex.
|
virtual |
Implements axom::sidre::ItemCollection< T >.
References axom::sidre::InvalidIndex.
T * axom::sidre::MapCollection< T >::removeItem | ( | const std::string & | name | ) |
|
virtual |
Implements axom::sidre::ItemCollection< T >.
|
inlinevirtual |
Implements axom::sidre::ItemCollection< T >.
|
inlinevirtual |
Implements axom::sidre::ItemCollection< T >.
|
inlinevirtual |
Implements axom::sidre::ItemCollection< T >.
|
inlinevirtual |
Implements axom::sidre::ItemCollection< T >.
|
inlinevirtual |
Implements axom::sidre::ItemCollection< T >.
|
inlinevirtual |
Implements axom::sidre::ItemCollection< T >.
|
inlinevirtual |
Implements axom::sidre::ItemCollection< T >.
|
inlineinherited |
Returns an adaptor wrapping this collection in support of iteration.
|
inlineinherited |
Returns a const adaptor wrapping this collection in support of iteration.