Generates unique function symbols with a given prefix.
More...
#include <function_symbol_generator.h>
|
std::string | m_prefix |
|
std::size_t | m_initial_index |
| Cache the value that is set in the constructor.
|
|
std::string | m_string_buffer |
| A local string cache to prevent allocating new strings for every function symbol generated.
|
|
std::size_t | m_index |
| A reference to the index as present in the function symbol generator.
|
|
std::shared_ptr< std::size_t > | m_central_index |
| The address of the central index for this prefix.
|
|
Generates unique function symbols with a given prefix.
Definition at line 35 of file function_symbol_generator.h.
◆ function_symbol_generator()
atermpp::function_symbol_generator::function_symbol_generator |
( |
const std::string & |
prefix | ) |
|
|
inline |
Constructor.
- Parameters
-
[in] | prefix | The prefix of the generated generated strings. |
- Precondition
- The prefix may not be empty, and it may not have trailing digits
Definition at line 56 of file function_symbol_generator.h.
◆ ~function_symbol_generator()
atermpp::function_symbol_generator::~function_symbol_generator |
( |
| ) |
|
|
inline |
◆ clear()
void atermpp::function_symbol_generator::clear |
( |
| ) |
|
|
inline |
◆ operator()()
function_symbol atermpp::function_symbol_generator::operator() |
( |
std::size_t |
arity = 0 | ) |
|
|
inline |
◆ m_central_index
std::shared_ptr<std::size_t> atermpp::function_symbol_generator::m_central_index |
|
protected |
◆ m_index
std::size_t atermpp::function_symbol_generator::m_index |
|
protected |
◆ m_initial_index
std::size_t atermpp::function_symbol_generator::m_initial_index |
|
protected |
◆ m_prefix
std::string atermpp::function_symbol_generator::m_prefix |
|
protected |
◆ m_string_buffer
std::string atermpp::function_symbol_generator::m_string_buffer |
|
protected |
A local string cache to prevent allocating new strings for every function symbol generated.
Definition at line 44 of file function_symbol_generator.h.
The documentation for this class was generated from the following file: