AXOM
Axom provides a robust, flexible software infrastructure for the development of multi-physics applications and computational tools.
|
ItemCollection is an abstract base class template for holding a collection of items of template parameter type T. Derived child classes can determine how to specifically store the items. More...
#include </home/docs/checkouts/readthedocs.org/user_builds/axom/checkouts/develop/src/axom/sidre/core/ItemCollection.hpp>
Classes | |
class | const_iterator |
An std-compliant forward iterator for a const ItemCollection. More... | |
class | const_iterator_adaptor |
Utility class to wrap a const ItemCollection in support of iteration. More... | |
class | iterator |
An std-compliant forward iterator for an ItemCollection. More... | |
class | iterator_adaptor |
Utility class to wrap an ItemCollection in support of iteration. More... | |
Public Types | |
using | value_type = T |
Public Member Functions | |
virtual | ~ItemCollection () |
virtual size_t | getNumItems () const =0 |
virtual IndexType | getFirstValidIndex () const =0 |
virtual IndexType | getNextValidIndex (IndexType idx) const =0 |
virtual bool | hasItem (IndexType idx) const =0 |
virtual T * | getItem (IndexType idx)=0 |
virtual T const * | getItem (IndexType idx) const =0 |
virtual IndexType | insertItem (T *item, const std::string &name="")=0 |
virtual T * | removeItem (IndexType idx)=0 |
virtual void | removeAllItems ()=0 |
virtual iterator | begin ()=0 |
virtual iterator | end ()=0 |
virtual const_iterator | cbegin () const =0 |
virtual const_iterator | cend () const =0 |
virtual const_iterator | begin () const =0 |
virtual const_iterator | end () const =0 |
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... | |
ItemCollection is an abstract base class template for holding a collection of items of template parameter type T. Derived child classes can determine how to specifically store the items.
using axom::sidre::ItemCollection< T >::value_type = T |
|
inlinevirtual |
|
pure virtual |
|
pure virtual |
|
pure virtual |
|
pure virtual |
|
pure virtual |
|
pure virtual |
|
pure virtual |
Implemented in axom::sidre::ListCollection< T >, and axom::sidre::MapCollection< T >.
|
pure virtual |
|
pure virtual |
|
pure virtual |
|
pure virtual |
|
pure virtual |
|
pure virtual |
|
pure virtual |
|
pure virtual |
|
inline |
Returns an adaptor wrapping this collection in support of iteration.
|
inline |
Returns a const adaptor wrapping this collection in support of iteration.