mCRL2
Loading...
Searching...
No Matches
function_symbol.cpp
Go to the documentation of this file.
1// Author(s): Maurice Laveaux
2// Copyright: see the accompanying file COPYING or copy at
3// https://github.com/mCRL2org/mCRL2/blob/master/COPYING
4//
5// Distributed under the Boost Software License, Version 1.0.
6// (See accompanying file LICENSE_1_0.txt or copy at
7// http://www.boost.org/LICENSE_1_0.txt)
8//
9
11
12using namespace atermpp;
13using namespace atermpp::detail;
14
15function_symbol detail::g_as_int(g_term_pool<true>().as_int());
16function_symbol detail::g_as_list(g_term_pool<true>().as_list());
17function_symbol detail::g_as_empty_list(g_term_pool<true>().as_empty_list());
18
19function_symbol::function_symbol(const std::string& name, const std::size_t arity, const bool check_for_registered_functions) :
20 function_symbol(g_thread_term_pool().create_function_symbol(name, arity, check_for_registered_functions))
21{}
22
23function_symbol::function_symbol(std::string&& name, const std::size_t arity, const bool check_for_registered_functions) :
24 function_symbol(g_thread_term_pool().create_function_symbol(std::forward<std::string>(name), arity, check_for_registered_functions))
25{}
26
27global_function_symbol::global_function_symbol(const std::string& name, const std::size_t arity) :
28 function_symbol(g_term_pool<true>().create_function_symbol(name, arity, true))
29{}
global_function_symbol(const std::string &name, const std::size_t arity)
Defines a function symbol from a name and arity combination.
aterm_pool & g_term_pool()
obtain a reference to the global aterm pool.
function_symbol g_as_empty_list
thread_aterm_pool & g_thread_term_pool()
A reference to the thread local term pool storage.
function_symbol g_as_list
function_symbol g_as_int
These function symbols are used to indicate integer, list and empty list terms.
The main namespace for the aterm++ library.
Definition algorithm.h:21
STL namespace.