#include <SpinStateValidator.h>
|
| Kernel::IValidator_sptr | clone () const override |
| |
| | SpinStateValidator (std::unordered_set< int > allowedNumbersOfSpins, const bool acceptSingleStates=false, const std::string ¶Indicator="0", const std::string &antiIndicator="1", const bool optional=false, const std::string &extraIndicator="") |
| |
|
| static bool | anyOfIsInSet (const std::vector< std::string > &anyOf, const std::unordered_set< std::string > &set) |
| |
| static bool | setContains (const std::unordered_set< std::string > &set, const std::string &s) |
| |
Definition at line 23 of file SpinStateValidator.h.
◆ SpinStateValidator()
| Mantid::Kernel::SpinStateValidator::SpinStateValidator |
( |
std::unordered_set< int > |
allowedNumbersOfSpins, |
|
|
const bool |
acceptSingleStates = false, |
|
|
const std::string & |
paraIndicator = "0", |
|
|
const std::string & |
antiIndicator = "1", |
|
|
const bool |
optional = false, |
|
|
const std::string & |
extraIndicator = "" |
|
) |
| |
◆ anyOfIsInSet()
| bool Mantid::Kernel::SpinStateValidator::anyOfIsInSet |
( |
const std::vector< std::string > & |
anyOf, |
|
|
const std::unordered_set< std::string > & |
set |
|
) |
| |
|
static |
◆ checkValidity()
| std::string Mantid::Kernel::SpinStateValidator::checkValidity |
( |
const std::string & |
input | ) |
const |
|
overrideprivate |
◆ clone()
◆ getAllowedPairStates()
| const std::unordered_set< std::string > Mantid::Kernel::SpinStateValidator::getAllowedPairStates |
( |
| ) |
const |
|
private |
◆ getAllowedSingleStates()
| const std::unordered_set< std::string > Mantid::Kernel::SpinStateValidator::getAllowedSingleStates |
( |
| ) |
const |
|
private |
◆ setContains()
| static bool Mantid::Kernel::SpinStateValidator::setContains |
( |
const std::unordered_set< std::string > & |
set, |
|
|
const std::string & |
s |
|
) |
| |
|
inlinestatic |
◆ m_acceptSingleStates
| bool Mantid::Kernel::SpinStateValidator::m_acceptSingleStates = false |
|
private |
◆ m_allowedNumbersOfSpins
| std::unordered_set<int> Mantid::Kernel::SpinStateValidator::m_allowedNumbersOfSpins = {1, 2, 3, 4} |
|
private |
◆ m_anti
| const std::string Mantid::Kernel::SpinStateValidator::m_anti |
|
private |
◆ m_extra
| const std::string Mantid::Kernel::SpinStateValidator::m_extra |
|
private |
◆ m_optional
| bool Mantid::Kernel::SpinStateValidator::m_optional = false |
|
private |
◆ m_para
| const std::string Mantid::Kernel::SpinStateValidator::m_para |
|
private |
The documentation for this class was generated from the following files: