neoGFX
Cross-platform C++ app/game engine
Loading...
Searching...
No Matches
neolib::recursion_limiter< Tag > Class Template Reference

#include <recursion.hpp>

Classes

struct  too_deep
 

Public Member Functions

 recursion_limiter ()
 
 recursion_limiter (std::size_t aMaxDepth)
 
 ~recursion_limiter ()
 
std::size_t max_depth () const
 

Static Public Member Functions

static std::size_t & depth ()
 

Detailed Description

template<typename Tag>
class neolib::recursion_limiter< Tag >

Definition at line 43 of file recursion.hpp.

Constructor & Destructor Documentation

◆ recursion_limiter() [1/2]

template<typename Tag >
neolib::recursion_limiter< Tag >::recursion_limiter ( )
inline

Definition at line 48 of file recursion.hpp.

◆ recursion_limiter() [2/2]

template<typename Tag >
neolib::recursion_limiter< Tag >::recursion_limiter ( std::size_t  aMaxDepth)
inline

Definition at line 54 of file recursion.hpp.

◆ ~recursion_limiter()

Definition at line 60 of file recursion.hpp.

Member Function Documentation

◆ depth()

template<typename Tag >
static std::size_t & neolib::recursion_limiter< Tag >::depth ( )
inlinestatic

Definition at line 69 of file recursion.hpp.

◆ max_depth()

template<typename Tag >
std::size_t neolib::recursion_limiter< Tag >::max_depth ( ) const
inline

Definition at line 65 of file recursion.hpp.


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