ChimeraTK-ApplicationCore 04.06.00
Loading...
Searching...
No Matches
CircularDependencyDetectionRecursionStopper.h
Go to the documentation of this file.
1// SPDX-FileCopyrightText: Deutsches Elektronen-Synchrotron DESY, MSK, ChimeraTK Project <chimeratk-support@desy.de>
2// SPDX-License-Identifier: LGPL-3.0-or-later
3#pragma once
4
5#include <cstddef>
6
7namespace ChimeraTK::detail {
8
26 class CircularDependencyDetectionRecursionStopper {
27 static size_t _globalScanCounter;
28 size_t _localScanCounter{0};
29
30 public:
31 static void startNewScan();
32 void setRecursionDetected();
33 [[nodiscard]] bool recursionDetected() const;
34 };
35
36} // namespace ChimeraTK::detail