Mantid
Loading...
Searching...
No Matches
RotCounter.h
Go to the documentation of this file.
1// Mantid Repository : https://github.com/mantidproject/mantid
2//
3// Copyright © 2018 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#pragma once
8
9#include <vector>
10
11#include "MantidGeometry/DllConfig.h"
12#include "MantidKernel/Logger.h"
13
14namespace Mantid {
15
16namespace Geometry {
28class MANTID_GEOMETRY_DLL RotaryCounter {
29 friend std::ostream &operator<<(std::ostream &, const RotaryCounter &);
30
31private:
32 int Rmax;
33 std::vector<int> RC;
34
35public:
36 RotaryCounter(const int S, const int N);
37
38 bool operator==(const RotaryCounter &) const;
39 bool operator<(const RotaryCounter &) const;
40 bool operator>(const RotaryCounter &) const;
42 int operator[](const int I) const { return RC[I]; }
43 int operator++();
44 int operator++(const int a);
45 int operator--();
46 int operator--(const int a);
47
48 void write(std::ostream &) const;
49};
50
51std::ostream &operator<<(std::ostream &, const RotaryCounter &);
52} // namespace Geometry
53} // namespace Mantid
std::ostream & operator<<(std::ostream &out, const MantidQt::MantidWidgets::IndexType< i > &index)
Definition: IndexTypes.h:103
Simple multilevel-cyclic counter.
Definition: RotCounter.h:28
int Rmax
Number to over cycle.
Definition: RotCounter.h:32
std::vector< int > RC
rotation list
Definition: RotCounter.h:33
int operator[](const int I) const
Accessor operator.
Definition: RotCounter.h:42
MANTID_GEOMETRY_DLL std::ostream & operator<<(std::ostream &stream, const PointGroup &self)
Returns a streamed representation of the PointGroup object.
Definition: PointGroup.cpp:312
Helper class which provides the Collimation Length for SANS instruments.
constexpr bool operator==(const wide_integer< Bits, Signed > &lhs, const wide_integer< Bits2, Signed2 > &rhs)
constexpr bool operator>(const wide_integer< Bits, Signed > &lhs, const wide_integer< Bits2, Signed2 > &rhs)
constexpr bool operator<(const wide_integer< Bits, Signed > &lhs, const wide_integer< Bits2, Signed2 > &rhs)