Mantid
Loading...
Searching...
No Matches
Public Types | Public Member Functions | Private Attributes | List of all members
MantidQt::MantidWidgets::IndexCollectionType< CollectionIndexType, CollectionValueType > Class Template Reference

A class which wraps a vector so that you supply not only the value type but also the expected index type. More...

#include <IndexTypes.h>

Public Types

using CollectionImplementationType = std::vector< CollectionValueType >
 

Public Member Functions

CollectionValueType & back ()
 
const CollectionValueType & back () const
 
CollectionImplementationType::iterator begin ()
 
CollectionImplementationType::const_iterator begin () const
 
void clear ()
 
template<class... Args>
void emplace_back (Args &&...args)
 
bool empty () const
 
CollectionImplementationType::iterator end ()
 
CollectionImplementationType::const_iterator end () const
 
CollectionValueType & front ()
 
const CollectionValueType & front () const
 
CollectionIndexType last () const
 
CollectionValueType & operator[] (const CollectionIndexType &dataIndex)
 
const CollectionValueType & operator[] (const CollectionIndexType &dataIndex) const
 
void remove (const CollectionIndexType &dataIndex)
 
CollectionIndexType size () const
 
CollectionIndexType zero () const
 

Private Attributes

CollectionImplementationType m_collection
 

Detailed Description

template<class CollectionIndexType, class CollectionValueType>
class MantidQt::MantidWidgets::IndexCollectionType< CollectionIndexType, CollectionValueType >

A class which wraps a vector so that you supply not only the value type but also the expected index type.

Definition at line 68 of file IndexTypes.h.

Member Typedef Documentation

◆ CollectionImplementationType

template<class CollectionIndexType , class CollectionValueType >
using MantidQt::MantidWidgets::IndexCollectionType< CollectionIndexType, CollectionValueType >::CollectionImplementationType = std::vector<CollectionValueType>

Definition at line 70 of file IndexTypes.h.

Member Function Documentation

◆ back() [1/2]

template<class CollectionIndexType , class CollectionValueType >
CollectionValueType & MantidQt::MantidWidgets::IndexCollectionType< CollectionIndexType, CollectionValueType >::back ( )
inline

◆ back() [2/2]

template<class CollectionIndexType , class CollectionValueType >
const CollectionValueType & MantidQt::MantidWidgets::IndexCollectionType< CollectionIndexType, CollectionValueType >::back ( ) const
inline

◆ begin() [1/2]

template<class CollectionIndexType , class CollectionValueType >
CollectionImplementationType::iterator MantidQt::MantidWidgets::IndexCollectionType< CollectionIndexType, CollectionValueType >::begin ( )
inline

◆ begin() [2/2]

template<class CollectionIndexType , class CollectionValueType >
CollectionImplementationType::const_iterator MantidQt::MantidWidgets::IndexCollectionType< CollectionIndexType, CollectionValueType >::begin ( ) const
inline

◆ clear()

template<class CollectionIndexType , class CollectionValueType >
void MantidQt::MantidWidgets::IndexCollectionType< CollectionIndexType, CollectionValueType >::clear ( )
inline

◆ emplace_back()

template<class CollectionIndexType , class CollectionValueType >
template<class... Args>
void MantidQt::MantidWidgets::IndexCollectionType< CollectionIndexType, CollectionValueType >::emplace_back ( Args &&...  args)
inline

◆ empty()

template<class CollectionIndexType , class CollectionValueType >
bool MantidQt::MantidWidgets::IndexCollectionType< CollectionIndexType, CollectionValueType >::empty ( ) const
inline

◆ end() [1/2]

template<class CollectionIndexType , class CollectionValueType >
CollectionImplementationType::iterator MantidQt::MantidWidgets::IndexCollectionType< CollectionIndexType, CollectionValueType >::end ( )
inline

◆ end() [2/2]

template<class CollectionIndexType , class CollectionValueType >
CollectionImplementationType::const_iterator MantidQt::MantidWidgets::IndexCollectionType< CollectionIndexType, CollectionValueType >::end ( ) const
inline

◆ front() [1/2]

template<class CollectionIndexType , class CollectionValueType >
CollectionValueType & MantidQt::MantidWidgets::IndexCollectionType< CollectionIndexType, CollectionValueType >::front ( )
inline

◆ front() [2/2]

template<class CollectionIndexType , class CollectionValueType >
const CollectionValueType & MantidQt::MantidWidgets::IndexCollectionType< CollectionIndexType, CollectionValueType >::front ( ) const
inline

◆ last()

template<class CollectionIndexType , class CollectionValueType >
CollectionIndexType MantidQt::MantidWidgets::IndexCollectionType< CollectionIndexType, CollectionValueType >::last ( ) const
inline

◆ operator[]() [1/2]

template<class CollectionIndexType , class CollectionValueType >
CollectionValueType & MantidQt::MantidWidgets::IndexCollectionType< CollectionIndexType, CollectionValueType >::operator[] ( const CollectionIndexType &  dataIndex)
inline

◆ operator[]() [2/2]

template<class CollectionIndexType , class CollectionValueType >
const CollectionValueType & MantidQt::MantidWidgets::IndexCollectionType< CollectionIndexType, CollectionValueType >::operator[] ( const CollectionIndexType &  dataIndex) const
inline

◆ remove()

template<class CollectionIndexType , class CollectionValueType >
void MantidQt::MantidWidgets::IndexCollectionType< CollectionIndexType, CollectionValueType >::remove ( const CollectionIndexType &  dataIndex)
inline

◆ size()

template<class CollectionIndexType , class CollectionValueType >
CollectionIndexType MantidQt::MantidWidgets::IndexCollectionType< CollectionIndexType, CollectionValueType >::size ( ) const
inline

◆ zero()

template<class CollectionIndexType , class CollectionValueType >
CollectionIndexType MantidQt::MantidWidgets::IndexCollectionType< CollectionIndexType, CollectionValueType >::zero ( ) const
inline

Definition at line 78 of file IndexTypes.h.

Member Data Documentation

◆ m_collection

template<class CollectionIndexType , class CollectionValueType >
CollectionImplementationType MantidQt::MantidWidgets::IndexCollectionType< CollectionIndexType, CollectionValueType >::m_collection
private

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