#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 65 of file contexts.hpp.
|
inline |
Definition at line 67 of file contexts.hpp.
References MAX_COUNTER_VALUE.
|
inline |
Get the current value of the recursion counter.
Definition at line 79 of file contexts.hpp.
References counter_.
Referenced by ai::stage::get_recursion_count(), ai::ai_composite::get_recursion_count(), ai::candidate_action::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(), and ai::readwrite_context_impl::get_recursion_count().
|
inline |
Check if more recursion is allowed.
Definition at line 92 of file contexts.hpp.
References counter_, and MAX_COUNTER_VALUE.
|
private |
Definition at line 99 of file contexts.hpp.
Referenced by get_count(), and is_ok().
|
static |
Definition at line 86 of file contexts.hpp.
Referenced by ai::formula_ai::execute_variant(), is_ok(), and recursion_counter().