Mantid
Loading...
Searching...
No Matches
Public Member Functions | Private Member Functions | List of all members
Mantid::Kernel::ArrayOrderedPairsValidator< TYPE > Class Template Reference

Kernel/ArrayOrderedPairsValidator.h. More...

#include <ArrayOrderedPairsValidator.h>

Inheritance diagram for Mantid::Kernel::ArrayOrderedPairsValidator< TYPE >:

Public Member Functions

IValidator_sptr clone () const override
 Clone the current state. More...
 

Private Member Functions

std::string checkValidity (const std::vector< TYPE > &value) const override
 Function that actually does the work of checking the validity of the array elements. More...
 

Detailed Description

template<typename TYPE>
class Mantid::Kernel::ArrayOrderedPairsValidator< TYPE >

Kernel/ArrayOrderedPairsValidator.h.

ArrayOrderedPairsValidator validates that an array contains a sequence of ordered pairs of numbers.

Definition at line 23 of file ArrayOrderedPairsValidator.h.

Member Function Documentation

◆ checkValidity()

template<typename TYPE >
std::string Mantid::Kernel::ArrayOrderedPairsValidator< TYPE >::checkValidity ( const std::vector< TYPE > &  value) const
overrideprivate

Function that actually does the work of checking the validity of the array elements.

Parameters
value:: The array to be checked.
Returns
An error message giving the values of wrong entries.

Definition at line 30 of file ArrayOrderedPairsValidator.cpp.

References error, std::to_string(), and value.

◆ clone()

template<typename TYPE >
IValidator_sptr Mantid::Kernel::ArrayOrderedPairsValidator< TYPE >::clone
override

Clone the current state.

Create a clone of the current ArrayOrderedPairsValidator.

Returns
The cloned object.

Definition at line 19 of file ArrayOrderedPairsValidator.cpp.


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