35 for (
int i = 0; i < S; i++)
47 if (RC.size() != A.RC.size())
50 for (
size_t i = 0; i < RC.size(); i++) {
51 if (RC[i] != A.RC[i]) {
66 const size_t ourSize = RC.size();
67 const size_t theirSize = A.RC.size();
68 const size_t maxI = (theirSize > ourSize) ? ourSize : theirSize;
69 for (
size_t i = 0; i < maxI; i++) {
70 if (RC[i] != A.RC[i]) {
71 return RC[i] > A.RC[i];
74 if (theirSize != ourSize) {
75 return ourSize > theirSize;
88 const size_t ourSize = RC.size();
89 const size_t theirSize = A.RC.size();
90 const size_t maxI = (theirSize > ourSize) ? ourSize : theirSize;
91 for (
size_t i = 0; i < maxI; i++) {
92 if (RC[i] != A.RC[i]) {
93 return RC[i] < A.RC[i];
96 if (theirSize != ourSize)
97 return ourSize < theirSize;
122 int Npart =
Rmax - 1;
124 for (I =
static_cast<int>(
RC.size()) - 1; I >= 0 &&
RC[I] == Npart; I--, Npart--)
128 for (
int i = 0; i < static_cast<int>(
RC.size()); i++)
133 for (I++; I < static_cast<int>(
RC.size()); I++)
134 RC[I] =
RC[I - 1] + 1;
159 const auto Size(
static_cast<int>(
RC.size()));
161 for (I = Size - 1; I > 0 &&
RC[I] ==
RC[I - 1] + 1; I--)
166 for (
int i = 0; i < Size; i++) {
173 for (I++; I < Size; I++) {
186 copy(RC.begin(), RC.end() - 1, std::ostream_iterator<int>(OX,
":"));
187 OX << RC.back() <<
" ";
Simple multilevel-cyclic counter.
int operator++()
Carrys out a rotational addition.
RotaryCounter(const int S, const int N)
Size,Max.
int Rmax
Number to over cycle.
bool operator<(const RotaryCounter &) const
Determines the precidence of the RotaryCounters Operator works on the 0 to high index.
std::vector< int > RC
rotation list
bool operator==(const RotaryCounter &) const
Chec to find if Counters identical in ALL respects.
int operator--()
Carrys out a rotational addition.
bool operator>(const RotaryCounter &) const
Determines the precidence of the RotaryCounters Operator works on the 0 to high index.
void write(std::ostream &) const
Write out object to a stream.
MANTID_GEOMETRY_DLL std::ostream & operator<<(std::ostream &stream, const PointGroup &self)
Returns a streamed representation of the PointGroup object.