AXOM
Axom provides a robust, flexible software infrastructure for the development of multi-physics applications and computational tools.
axom::sidre::ListCollection< T > Class Template Reference

ListCollection is a container class template for holding a collection of items of template parameter type T, using a list container. More...

#include </home/docs/checkouts/readthedocs.org/user_builds/axom/checkouts/develop/src/axom/sidre/core/ListCollection.hpp>

Inheritance diagram for axom::sidre::ListCollection< T >:

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 (IndexType idx) const
 
T * getItem (IndexType idx)
 
T const * getItem (IndexType idx) const
 
IndexType insertItem (T *item, 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...
 

Detailed Description

template<typename T>
class axom::sidre::ListCollection< T >

ListCollection is a container class template for holding a collection of items of template parameter type T, using a list container.

Member Typedef Documentation

◆ value_type

template<typename T >
using axom::sidre::ListCollection< T >::value_type = T

◆ iterator

template<typename T >
using axom::sidre::ListCollection< T >::iterator = typename ItemCollection<T>::iterator

◆ const_iterator

template<typename T >
using axom::sidre::ListCollection< T >::const_iterator = typename ItemCollection<T>::const_iterator

Member Function Documentation

◆ getNumItems()

template<typename T >
size_t axom::sidre::ListCollection< T >::getNumItems ( ) const
inlinevirtual

◆ getFirstValidIndex()

template<typename T >
IndexType axom::sidre::ListCollection< T >::getFirstValidIndex
virtual

◆ getNextValidIndex()

template<typename T >
IndexType axom::sidre::ListCollection< T >::getNextValidIndex ( IndexType  idx) const
virtual

◆ hasItem()

template<typename T >
bool axom::sidre::ListCollection< T >::hasItem ( IndexType  idx) const
inlinevirtual

◆ getItem() [1/2]

template<typename T >
T* axom::sidre::ListCollection< T >::getItem ( IndexType  idx)
inlinevirtual

◆ getItem() [2/2]

template<typename T >
T const* axom::sidre::ListCollection< T >::getItem ( IndexType  idx) const
inlinevirtual

◆ insertItem()

template<typename T >
IndexType axom::sidre::ListCollection< T >::insertItem ( T *  item,
const std::string &  name = "" 
)
virtual

◆ removeItem()

template<typename T >
T * axom::sidre::ListCollection< T >::removeItem ( IndexType  idx)
virtual

◆ removeAllItems()

template<typename T >
void axom::sidre::ListCollection< T >::removeAllItems ( )
inlinevirtual

◆ begin() [1/2]

template<typename T >
iterator axom::sidre::ListCollection< T >::begin ( )
inlinevirtual

◆ end() [1/2]

template<typename T >
iterator axom::sidre::ListCollection< T >::end ( )
inlinevirtual

◆ cbegin()

template<typename T >
const_iterator axom::sidre::ListCollection< T >::cbegin ( ) const
inlinevirtual

◆ cend()

template<typename T >
const_iterator axom::sidre::ListCollection< T >::cend ( ) const
inlinevirtual

◆ begin() [2/2]

template<typename T >
const_iterator axom::sidre::ListCollection< T >::begin ( ) const
inlinevirtual

◆ end() [2/2]

template<typename T >
const_iterator axom::sidre::ListCollection< T >::end ( ) const
inlinevirtual

◆ getIteratorAdaptor() [1/2]

template<typename T >
iterator_adaptor axom::sidre::ItemCollection< T >::getIteratorAdaptor ( )
inlineinherited

Returns an adaptor wrapping this collection in support of iteration.

◆ getIteratorAdaptor() [2/2]

template<typename T >
const_iterator_adaptor axom::sidre::ItemCollection< T >::getIteratorAdaptor ( ) const
inlineinherited

Returns a const adaptor wrapping this collection in support of iteration.


The documentation for this class was generated from the following file: