PLCnext API Documentation 25.0.2.69
|
This class is used to count sequenced operation calls, which are e.g. invoked during an exception throw. More...
#include <StackCounter.hpp>
Public Types | |
using | Value = size_t |
Public Member Functions | |
StackCounter (const StackCounter &arg) | |
Default copy constructor. | |
StackCounter (StackCounter &&arg) noexcept=delete | |
StackCounter & | operator= (const StackCounter &arg) |
Default copy-assignment operator. | |
StackCounter & | operator= (StackCounter &&arg) noexcept=delete |
~StackCounter (void) | |
Default destructor. | |
StackCounter (Value initialDepth=1) | |
Constructs an StackCounter instance. More... | |
size_t | GetDepth (void) const |
Gets the depth of the stack counter. More... | |
Impl & | GetImpl (void) |
For internal use only. | |
const Impl & | GetImpl (void) const |
This class is used to count sequenced operation calls, which are e.g. invoked during an exception throw.
This helper class determines the number of operation calls, which are invoked during an exception throw, so that the needless operations might be skipped, when creating the stacktrace information of the exception. The user is just interested in the stacktrace of its own code, but not any platform code, which is required to create the exception and its content.
|
explicit |
Constructs an StackCounter instance.
initialDepth | The inital depth of the stack counter. |
StackCounter::Value Arp::Base::Commons::Runtime::StackCounter::GetDepth | ( | void | ) | const |
Gets the depth of the stack counter.