Mantid
Loading...
Searching...
No Matches
Framework
Kernel
inc
MantidKernel
SpinStateHelpers.h
Go to the documentation of this file.
1
// Mantid Repository : https://github.com/mantidproject/mantid
2
//
3
// Copyright © 2025 ISIS Rutherford Appleton Laboratory UKRI,
4
// NScD Oak Ridge National Laboratory, European Spallation Source,
5
// Institut Laue - Langevin & CSNS, Institute of High Energy Physics, CAS
6
// SPDX - License - Identifier: GPL - 3.0 +
7
8
#pragma once
9
10
#include "MantidKernel/DllConfig.h"
11
12
#include <optional>
13
#include <string>
14
#include <vector>
15
16
namespace
Mantid::Kernel
{
17
namespace
SpinStateHelpers {
18
MANTID_KERNEL_DLL std::optional<size_t>
indexOfWorkspaceForSpinState
(
const
std::vector<std::string> &spinStateOrder,
19
std::string targetSpinState);
20
MANTID_KERNEL_DLL std::vector<std::string>
splitSpinStateString
(
const
std::string &spinStates);
21
}
// namespace SpinStateHelpers
22
}
// namespace Mantid::Kernel
Mantid::Kernel::SpinStateHelpers::splitSpinStateString
MANTID_KERNEL_DLL std::vector< std::string > splitSpinStateString(const std::string &spinStates)
Definition
SpinStateHelpers.cpp:40
Mantid::Kernel::SpinStateHelpers::indexOfWorkspaceForSpinState
MANTID_KERNEL_DLL std::optional< size_t > indexOfWorkspaceForSpinState(const std::vector< std::string > &spinStateOrder, std::string targetSpinState)
Definition
SpinStateHelpers.cpp:24
Mantid::Kernel
Definition
AnnularRingAbsorption.h:15
Generated by
1.9.8