AnCH Framework 0.2
Another C++ Hack: C++23 utility libraries
Loading...
Searching...
No Matches
anch::json::DepthGuard Class Reference

Nesting depth guard. More...

#include <readerContext.hpp>

Collaboration diagram for anch::json::DepthGuard:

Public Member Functions

 DepthGuard (anch::json::ReaderContext &context)
 DepthGuard (const DepthGuard &guard)=delete
 ~DepthGuard () noexcept

Detailed Description

Nesting depth guard.

Enter object or array level on construction and leave it on destruction.

Author
Vincent Lachenal
Since
0.1

Constructor & Destructor Documentation

◆ DepthGuard() [1/2]

anch::json::DepthGuard::DepthGuard ( anch::json::ReaderContext & context)
explicit

DepthGuard constructor

Parameters
contextthe reader context
Exceptions
anch::json::MappingErrordepth is greater than max_depth option

◆ DepthGuard() [2/2]

anch::json::DepthGuard::DepthGuard ( const DepthGuard & guard)
delete

Forbids DepthGuard copy constructor

Parameters
guardthe guard not to copy
Here is the call graph for this function:

◆ ~DepthGuard()

anch::json::DepthGuard::~DepthGuard ( )
noexcept

DepthGuard destructor: leave level


The documentation for this class was generated from the following file: