|
SFCGAL
2.3.0
|
Guard to increment/decrement a recursion depth counter. More...
#include <RecursionGuard.h>
Public Member Functions | |
| RecursionGuard (int &depthRef) | |
| Increments the recursion depth counter. More... | |
| RecursionGuard (const RecursionGuard &)=delete | |
| RecursionGuard (RecursionGuard &&)=delete | |
| auto | operator= (const RecursionGuard &) -> RecursionGuard &=delete |
| auto | operator= (RecursionGuard &&) -> RecursionGuard &=delete |
| ~RecursionGuard () | |
Public Attributes | |
| int & | depth |
| Reference to the recursion depth counter being guarded. More... | |
Guard to increment/decrement a recursion depth counter.
Used in parsers and exporters (WKB, WKT, OBJ, STL, VTK) to guard against unbounded recursion depth. The depth counter is incremented on construction and decremented on destruction, even if an exception is thrown.
|
inlineexplicit |
Increments the recursion depth counter.
| depthRef | reference to the recursion depth counter |
|
delete |
|
delete |
|
inline |
|
delete |
|
delete |
| int& SFCGAL::detail::io::RecursionGuard::depth |
Reference to the recursion depth counter being guarded.
1.8.10