Mantid
|
VectorParameter is abstract type implementing curiously recurring template pattern to implement common code associated with vector storage. More...
#include <VectorParameter.h>
Public Types | |
using | ValueType = ElemType |
Public Member Functions | |
void | addValue (const size_t index, const ElemType &value) |
Derived & | assignFrom (const Derived &other) |
ElemType & | at (size_t index) |
const ElemType * | getPointerToStart () |
size_t | getSize () const |
bool | isValid () const override |
bool | operator!= (const Derived &other) const |
VectorParameter< Derived, ElemType > & | operator= (const VectorParameter< Derived, ElemType > &other) |
bool | operator== (const Derived &other) const |
ElemType & | operator[] (int index) |
std::string | toXMLString () const override |
VectorParameter () | |
Default constructor. More... | |
VectorParameter (const VectorParameter< Derived, ElemType > &other) | |
VectorParameter (size_t size) | |
~VectorParameter () override | |
Destructor. More... | |
Public Member Functions inherited from Mantid::API::ImplicitFunctionParameter | |
virtual ImplicitFunctionParameter * | clone () const =0 |
virtual std::string | getName () const =0 |
virtual bool | isValid () const =0 |
virtual std::string | toXMLString () const =0 |
virtual | ~ImplicitFunctionParameter ()=default |
Protected Attributes | |
ElemType * | m_arry |
bool | m_isValid |
size_t | m_size |
Protected Attributes inherited from Mantid::API::ImplicitFunctionParameter | |
bool | m_isValid {false} |
Private Member Functions | |
Derived & | operator= (const Derived &other) |
Additional Inherited Members | |
Protected Member Functions inherited from Mantid::API::ImplicitFunctionParameter | |
std::string | parameterXMLTemplate (const std::string &valueXMLtext) const |
VectorParameter is abstract type implementing curiously recurring template pattern to implement common code associated with vector storage.
Definition at line 23 of file VectorParameter.h.
using Mantid::API::VectorParameter< Derived, ElemType >::ValueType = ElemType |
Definition at line 25 of file VectorParameter.h.
Mantid::API::VectorParameter< Derived, ElemType >::VectorParameter |
Default constructor.
Definition at line 133 of file VectorParameter.h.
References Mantid::API::VectorParameter< Derived, ElemType >::m_isValid.
Mantid::API::VectorParameter< Derived, ElemType >::VectorParameter | ( | size_t | size | ) |
Definition at line 142 of file VectorParameter.h.
References Mantid::API::VectorParameter< Derived, ElemType >::m_arry, and Mantid::API::VectorParameter< Derived, ElemType >::m_isValid.
Mantid::API::VectorParameter< Derived, ElemType >::VectorParameter | ( | const VectorParameter< Derived, ElemType > & | other | ) |
Definition at line 115 of file VectorParameter.h.
|
override |
Destructor.
Definition at line 148 of file VectorParameter.h.
void Mantid::API::VectorParameter< Derived, ElemType >::addValue | ( | const size_t | index, |
const ElemType & | value | ||
) |
Definition at line 157 of file VectorParameter.h.
Derived & Mantid::API::VectorParameter< Derived, ElemType >::assignFrom | ( | const Derived & | other | ) |
Definition at line 65 of file VectorParameter.h.
ElemType & Mantid::API::VectorParameter< Derived, ElemType >::at | ( | size_t | index | ) |
Definition at line 210 of file VectorParameter.h.
References index.
const ElemType * Mantid::API::VectorParameter< Derived, ElemType >::getPointerToStart |
Definition at line 201 of file VectorParameter.h.
size_t Mantid::API::VectorParameter< Derived, ElemType >::getSize |
Definition at line 193 of file VectorParameter.h.
References m_size.
|
overridevirtual |
Implements Mantid::API::ImplicitFunctionParameter.
Definition at line 55 of file VectorParameter.h.
bool Mantid::API::VectorParameter< Derived, ElemType >::operator!= | ( | const Derived & | other | ) | const |
Definition at line 106 of file VectorParameter.h.
|
private |
VectorParameter< Derived, ElemType > & Mantid::API::VectorParameter< Derived, ElemType >::operator= | ( | const VectorParameter< Derived, ElemType > & | other | ) |
Definition at line 121 of file VectorParameter.h.
References m_size.
bool Mantid::API::VectorParameter< Derived, ElemType >::operator== | ( | const Derived & | other | ) | const |
Definition at line 85 of file VectorParameter.h.
ElemType & Mantid::API::VectorParameter< Derived, ElemType >::operator[] | ( | int | index | ) |
Definition at line 185 of file VectorParameter.h.
References index.
|
overridevirtual |
Implements Mantid::API::ImplicitFunctionParameter.
Definition at line 165 of file VectorParameter.h.
References m_size.
|
protected |
Definition at line 43 of file VectorParameter.h.
Referenced by Mantid::API::VectorParameter< Derived, ElemType >::VectorParameter().
|
protected |
Definition at line 45 of file VectorParameter.h.
Referenced by Mantid::API::VectorParameter< Derived, ElemType >::VectorParameter().
|
protected |
Definition at line 44 of file VectorParameter.h.