#include <contexts.hpp>
Public Member Functions | |
recursion_counter (int counter) | |
int | get_count () const |
Get the current value of the recursion counter. More... | |
bool | is_ok () const |
Check if more recursion is allowed. More... | |
Static Public Attributes | |
static const int | MAX_COUNTER_VALUE = 100 |
Private Attributes | |
int | counter_ |
Definition at line 53 of file contexts.hpp.
|
inline |
Definition at line 55 of file contexts.hpp.
References MAX_COUNTER_VALUE.
|
inline |
Get the current value of the recursion counter.
Definition at line 66 of file contexts.hpp.
References counter_.
Referenced by ai::ai_composite::get_recursion_count(), ai::candidate_action::get_recursion_count(), ai::stage::get_recursion_count(), ai::default_ai_context_impl::get_recursion_count(), ai::side_context_impl::get_recursion_count(), ai::readonly_context_impl::get_recursion_count(), ai::readwrite_context_impl::get_recursion_count(), and ai::formula_ai::get_recursion_count().
|
inline |
Check if more recursion is allowed.
Definition at line 77 of file contexts.hpp.
References counter_, and MAX_COUNTER_VALUE.
|
private |
Definition at line 84 of file contexts.hpp.
Referenced by get_count(), and is_ok().
|
static |
Definition at line 72 of file contexts.hpp.
Referenced by is_ok(), and recursion_counter().