Mantid
Loading...
Searching...
No Matches
Public Types | Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
MantidQt::MantidWidgets::IndexType< Class > Struct Template Reference

A struct to impliment strongly typed integers, without implicit conversion. More...

#include <IndexTypes.h>

Public Types

using IntImplementationType = size_t
 

Public Member Functions

 IndexType () noexcept
 
 IndexType (IntImplementationType data) noexcept
 
bool operator!= (IndexType index) const
 
IndexType operator+ (IndexType index) const
 
IndexTypeoperator++ ()
 
IndexType operator++ (int)
 
IndexTypeoperator+= (const IndexType &index)
 
IndexType operator- () const
 
IndexType operator- (IndexType index) const
 
bool operator< (IndexType index) const
 
bool operator<= (IndexType index) const
 
bool operator== (IndexType index) const
 
bool operator> (IndexType index) const
 

Static Public Member Functions

template<class T >
static IndexType cast (const T &i)
 

Public Attributes

IntImplementationType value = 0
 

Detailed Description

template<int Class>
struct MantidQt::MantidWidgets::IndexType< Class >

A struct to impliment strongly typed integers, without implicit conversion.

Currently operations and comparitors are only defined between instances of the same type.

Definition at line 24 of file IndexTypes.h.

Member Typedef Documentation

◆ IntImplementationType

template<int Class>
using MantidQt::MantidWidgets::IndexType< Class >::IntImplementationType = size_t

Definition at line 25 of file IndexTypes.h.

Constructor & Destructor Documentation

◆ IndexType() [1/2]

template<int Class>
MantidQt::MantidWidgets::IndexType< Class >::IndexType ( )
inlinenoexcept

Definition at line 27 of file IndexTypes.h.

◆ IndexType() [2/2]

template<int Class>
MantidQt::MantidWidgets::IndexType< Class >::IndexType ( IntImplementationType  data)
inlinenoexcept

Definition at line 28 of file IndexTypes.h.

Member Function Documentation

◆ cast()

template<int Class>
template<class T >
static IndexType MantidQt::MantidWidgets::IndexType< Class >::cast ( const T &  i)
inlinestatic

Definition at line 49 of file IndexTypes.h.

◆ operator!=()

template<int Class>
bool MantidQt::MantidWidgets::IndexType< Class >::operator!= ( IndexType< Class >  index) const
inline

Definition at line 35 of file IndexTypes.h.

References index, and MantidQt::MantidWidgets::IndexType< Class >::value.

◆ operator+()

template<int Class>
IndexType MantidQt::MantidWidgets::IndexType< Class >::operator+ ( IndexType< Class >  index) const
inline

Definition at line 29 of file IndexTypes.h.

References index, and MantidQt::MantidWidgets::IndexType< Class >::value.

◆ operator++() [1/2]

template<int Class>
IndexType & MantidQt::MantidWidgets::IndexType< Class >::operator++ ( )
inline

Definition at line 36 of file IndexTypes.h.

References MantidQt::MantidWidgets::IndexType< Class >::value.

◆ operator++() [2/2]

template<int Class>
IndexType MantidQt::MantidWidgets::IndexType< Class >::operator++ ( int  )
inline

Definition at line 40 of file IndexTypes.h.

References MantidQt::MantidWidgets::IndexType< Class >::value.

◆ operator+=()

template<int Class>
IndexType & MantidQt::MantidWidgets::IndexType< Class >::operator+= ( const IndexType< Class > &  index)
inline

Definition at line 44 of file IndexTypes.h.

References index, and MantidQt::MantidWidgets::IndexType< Class >::value.

◆ operator-() [1/2]

template<int Class>
IndexType MantidQt::MantidWidgets::IndexType< Class >::operator- ( ) const
inline

Definition at line 48 of file IndexTypes.h.

References MantidQt::MantidWidgets::IndexType< Class >::value.

◆ operator-() [2/2]

template<int Class>
IndexType MantidQt::MantidWidgets::IndexType< Class >::operator- ( IndexType< Class >  index) const
inline

Definition at line 30 of file IndexTypes.h.

References index, and MantidQt::MantidWidgets::IndexType< Class >::value.

◆ operator<()

template<int Class>
bool MantidQt::MantidWidgets::IndexType< Class >::operator< ( IndexType< Class >  index) const
inline

Definition at line 32 of file IndexTypes.h.

References index, and MantidQt::MantidWidgets::IndexType< Class >::value.

◆ operator<=()

template<int Class>
bool MantidQt::MantidWidgets::IndexType< Class >::operator<= ( IndexType< Class >  index) const
inline

Definition at line 33 of file IndexTypes.h.

References index, and MantidQt::MantidWidgets::IndexType< Class >::value.

◆ operator==()

template<int Class>
bool MantidQt::MantidWidgets::IndexType< Class >::operator== ( IndexType< Class >  index) const
inline

Definition at line 34 of file IndexTypes.h.

References index, and MantidQt::MantidWidgets::IndexType< Class >::value.

◆ operator>()

template<int Class>
bool MantidQt::MantidWidgets::IndexType< Class >::operator> ( IndexType< Class >  index) const
inline

Definition at line 31 of file IndexTypes.h.

References index, and MantidQt::MantidWidgets::IndexType< Class >::value.

Member Data Documentation

◆ value

template<int Class>
IntImplementationType MantidQt::MantidWidgets::IndexType< Class >::value = 0

Definition at line 26 of file IndexTypes.h.

Referenced by MantidQt::MantidWidgets::FitScriptGeneratorDataTable::addDomain(), MantidQt::MantidWidgets::FitScriptGeneratorModel::addWorkspaceDomain(), MantidQt::MantidWidgets::FitDomain::domainName(), MantidQt::MantidWidgets::FunctionModelDataset::domainNames(), MantidQt::MantidWidgets::FitScriptGeneratorModel::findDomainIndex(), MantidQt::MantidWidgets::FunctionModelSpectra::FunctionModelSpectra(), MantidQt::MantidWidgets::FitScriptGeneratorModel::getDomainName(), MantidQt::MantidWidgets::FitScriptGeneratorModel::getEquivalentFunctionIndexForDomain(), MantidQt::MantidWidgets::FitScriptGeneratorModel::getEquivalentParameterTieForDomain(), MantidQt::MantidWidgets::FitScriptGeneratorModel::getFullParameter(), MantidQt::MantidWidgets::FitScriptGeneratorModel::getParameterProperty(), MantidQt::MantidWidgets::FitScriptGeneratorDataTable::getText(), MantidQt::MantidWidgets::FunctionModelSpectra::indexOf(), MantidQt::MantidWidgets::FitScriptGeneratorModel::isParameterValueWithinConstraints(), MantidQt::MantidWidgets::IndexType< Class >::operator!=(), MantidQt::MantidWidgets::IndexType< Class >::operator+(), MantidQt::MantidWidgets::IndexType< Class >::operator++(), MantidQt::MantidWidgets::IndexType< Class >::operator+=(), MantidQt::MantidWidgets::IndexType< Class >::operator-(), MantidQt::MantidWidgets::IndexType< Class >::operator<(), MantidQt::MantidWidgets::IndexType< Class >::operator<=(), MantidQt::MantidWidgets::IndexType< Class >::operator==(), MantidQt::MantidWidgets::IndexType< Class >::operator>(), MantidQt::MantidWidgets::FitScriptGeneratorModel::removeDomain(), MantidQt::MantidWidgets::FitScriptGeneratorDataTable::removeDomain(), MantidQt::MantidWidgets::FitScriptGeneratorModel::setParameterConstraint(), MantidQt::MantidWidgets::FitScriptGeneratorModel::setParameterFixed(), MantidQt::MantidWidgets::FitScriptGeneratorModel::setParameterTie(), MantidQt::MantidWidgets::FitScriptGeneratorModel::setParameterValue(), MantidQt::MantidWidgets::FitScriptGeneratorModel::updateGlobalParameterTie(), MantidQt::MantidWidgets::FitScriptGeneratorModel::updateLocalParameterTie(), MantidQt::MantidWidgets::FitScriptGeneratorModel::updateParameterTie(), MantidQt::MantidWidgets::FitScriptGeneratorModel::updateParameterValuesWithLocalTieTo(), MantidQt::MantidWidgets::FitScriptGeneratorModel::validParameter(), and MantidQt::MantidWidgets::FitDomain::xLimits().


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