Include file:
#include "mcrl2/atermpp/function_symbol_generator.h
atermpp::
function_symbol_generator
¶Generates unique function symbols with a given prefix.
atermpp::function_symbol_generator::
m_central_index
¶The address of the central index for this prefix.
atermpp::function_symbol_generator::
m_index
¶A reference to the index as present in the function symbol generator.
atermpp::function_symbol_generator::
m_initial_index
¶Cache the value that is set in the constructor.
atermpp::function_symbol_generator::
m_prefix
¶atermpp::function_symbol_generator::
m_string_buffer
¶A local string cache to prevent allocating new strings for every function symbol generated.
clear
()Restores the index back to the value that was initially assigned in the constructor.
function_symbol_generator
(const std::string &prefix)¶Constructor.
Parameters:
Pre: The prefix may not be empty, and it may not have trailing digits
operator()
(std::size_t arity = 0)¶Generates a unique function symbol with the given prefix followed by a number.
~function_symbol_generator
()¶