|
PLCnext API Documentation 26.6.0.38
|
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 (void) | |
| Constructs an StackCounter instance. More... | |
| StackCounter (Value skipDepth) | |
| Constructs an StackCounter instance. More... | |
| 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. | |
| 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.
|
default |
Constructs an StackCounter instance.
The default constructor initializes the initial skip depth to 2, because this is the most common use case.
|
explicit |
Constructs an StackCounter instance.
| skipDepth | The inital skip depth of the stack counter. |
| StackCounter::Value Arp::Base::Commons::Runtime::StackCounter::GetDepth | ( | void | ) | const |
Gets the depth of the stack counter.