|
mCRL2
|
Classes | |
| struct | atomic_wrapper |
| struct | Block |
| A fixed-size block of N entries linked in a singly-linked list. More... | |
| union | BlockEntry |
Union entry: active as value while live, as next while on a freelist. More... | |
| struct | BlockList |
| The shared block list and free chunks. Protected by the allocator mutex. More... | |
| class | bucket_list |
| This essentially implements the std::forward_list, with the difference that it does not own the nodes in the list. It just keeps track of the list next pointers. More... | |
| struct | command |
| struct | Entry |
| Entry in the thread-local bucket. More... | |
| class | free_list |
| This essentially implements the std::forward_list, with the difference that it does not own the nodes in the list. It just keeps track of the list next pointers. Furthermore this assumes that the objects in the list will not be accessed, so it stores the next pointer within the Element. More... | |
| struct | is_transparent |
| struct | is_transparent< X, void_t< typename X::is_transparent > > |
| struct | no_op_mutex |
| No-op mutex used when ThreadSafe=false. More... | |
| struct | position_counter |
| struct | Sentinel |
| struct | ThreadBucket |
| Information about a thread's position in the bucket structure. More... | |
| struct | ThreadLocalAllocState |
| Per-thread allocation state: current bump block and thread-local freelist. More... | |
| class | transform_tool |
Concepts | |
| concept | IsLockable |
| The Cpp17Lockable named requirement; the standard library provides no concept for it. | |
| concept | IsSharedLockable |
| The Cpp17SharedLockable named requirement; the standard library provides no concept for it. | |
| concept | IsBasicLockable |
| The Cpp17BasicLockable named requirement; the standard library provides no concept for it. | |
Typedefs | |
| template<typename... > | |
| using | void_t = void |
Functions | |
| template<typename Key , bool ThreadSafe, typename Hash , typename Equals , typename Allocator , typename KeyTable > | |
| bool | contains (const atermpp::indexed_set< Key, ThreadSafe, Hash, Equals, Allocator, KeyTable > &c, const typename atermpp::indexed_set< Key, ThreadSafe, Hash, Equals, Allocator, KeyTable >::key_type &v, const std::size_t thread_index=0) |
| std::size_t | add_single_number (const std::size_t n1, const std::size_t n2, std::size_t &carry) |
| std::size_t | subtract_single_number (const std::size_t n1, const std::size_t n2, std::size_t &carry) |
| std::size_t | multiply_single_number (const std::size_t n1, const std::size_t n2, std::size_t &multiplication_carry) |
| std::size_t | divide_single_number (const std::size_t p, const std::size_t q, std::size_t &remainder) |
| std::size_t | greatest_common_divisor (std::size_t p, std::size_t q) |
| void | remove_common_divisor (std::size_t &p, std::size_t &q) |
| template<typename Allocator , typename ... Args> | |
| auto | allocate (Allocator &allocator, const Args &... args) -> decltype(allocator.allocate_args(args...)) |
| A compile time check for allocate_args in the given allocator, calls allocate(1) otherwise. | |
| template<typename Allocator , typename ... Args> | |
| auto | allocate (Allocator &allocator, const Args &...) -> decltype(allocator.allocate(1)) |
| template<typename Map > | |
| Map::mapped_type | map_element (const Map &m, const typename Map::key_type &key) |
| Returns the value corresponding to the given key in the map m. If the key is not present, an exception is thrown. | |
| template<typename Map > | |
| Map::mapped_type | mapped_value (const Map &m, const typename Map::key_type &key, const typename Map::mapped_type &undefined_value) |
| template<typename Container > | |
| bool | contains (const Container &c, const typename Container::value_type &v) |
| Returns the value corresponding to the given key in the set m. If the key is not present, an exception is thrown. | |
| template<typename T , typename Compare > | |
| bool | contains (const std::set< T, Compare > &c, const typename std::set< T, Compare >::value_type &v) |
| template<typename T , typename Compare > | |
| bool | contains (const std::multiset< T, Compare > &c, const typename std::multiset< T >::value_type &v) |
| template<typename T > | |
| bool | contains (const std::unordered_set< T > &c, const typename std::set< T >::value_type &v) |
| template<typename Key , typename T > | |
| bool | has_key (const std::map< Key, T > &c, const Key &v) |
| Returns the value corresponding to the given key in the set m. If the key is not present, an exception is thrown. | |
| template<typename Key , typename T > | |
| bool | has_key (const std::multimap< Key, T > &c, const Key &v) |
| Returns the value corresponding to the given key in the set m. If the key is not present, an exception is thrown. | |
| template<typename Container > | |
| Container::value_type | pick_element (Container &v) |
| template<typename T , typename Compare , typename Container > | |
| void | set_insert (std::set< T, Compare > &s, const Container &c) |
| template<typename T , typename Compare , typename Container > | |
| void | set_remove (std::set< T, Compare > &s, const Container &c) |
| template<typename ContainerT , typename PredicateT > | |
| void | remove_if (ContainerT &items, const PredicateT &predicate) |
| template<typename InputIterator1 , typename InputIterator2 , typename Compare = std::less<typename InputIterator1::value_type>> | |
| bool | has_empty_intersection (InputIterator1 first1, InputIterator1 last1, InputIterator2 first2, InputIterator2 last2, Compare comp) |
| Returns true if the sorted ranges [first1, ..., last1) and [first2, ..., last2) have an empty intersection. | |
| template<typename SetContainer1 , typename SetContainer2 > | |
| bool | has_empty_intersection (const SetContainer1 &s1, const SetContainer2 &s2) |
| template<typename T , typename Compare > | |
| std::set< T, Compare > | set_union (const std::set< T, Compare > &x, const std::set< T, Compare > &y) |
| Returns the union of two sets that are sorted in the same way. | |
| template<typename T , typename Compare > | |
| std::set< T, Compare > | set_difference (const std::set< T, Compare > &x, const std::set< T, Compare > &y) |
| Returns the difference of two sets that are sorted in the same way. | |
| template<typename T , typename Compare > | |
| std::set< T, Compare > | set_intersection (const std::set< T, Compare > &x, const std::set< T, Compare > &y) |
| Returns the intersection of two sets that are sorted in the same way. | |
| template<typename T , typename Compare > | |
| bool | set_includes (const std::set< T, Compare > &x, const std::set< T, Compare > &y) |
| Returns if y is included in x. | |
| template<typename T , typename Compare > | |
| std::vector< T > | as_vector (const std::set< T, Compare > &x) |
| template<typename T , typename Compare = std::less<T>> | |
| std::set< T, Compare > | as_set (const std::vector< T > &x) |
| std::string | read_text (const std::string &filename) |
| Reads text from the file filename, or from stdin if filename equals "-". | |
| void | write_text (const std::string &filename, const std::string &text) |
| Saves text to the file filename, or to stdout if filename equals "-". | |
| template<class Iter , class T > | |
| void | iota (Iter first, Iter last, T value) |
| Generates the sequence value, value + 1, ... and writes it to the sequence [first, last) | |
| template<typename T , typename OutputIterator , typename MatchFunction , typename AccessorFunction1 , typename AccessorFunction2 > | |
| void | split (const T &t, OutputIterator i, MatchFunction match, AccessorFunction1 lhs, AccessorFunction2 rhs) |
| Splits a binary tree T into a sequence, and writes the result to the output range given by an output iterator. | |
| template<typename T , typename FwdIt , typename BinaryOperation > | |
| T | join (FwdIt first, FwdIt last, BinaryOperation op, T empty_sequence_result) |
| Given a sequence [t1, t2, ..., tn] of elements of type T, returns op(t1, op(t2, ...), tn)))). | |
| template<typename T , typename RndIt , typename BinaryOperation > | |
| T | join_balanced (RndIt first, RndIt last, BinaryOperation op) |
| Given a non-empty sequence [t1, t2, ..., tn] of elements of type T, returns op(op(t1, op(t2, ...), tn)))). The height of the resulting expression tree is minimal. | |
| std::pair< std::string, std::string > | separate_keyword_section (const std::string &text1, const std::string &keyword, const std::vector< std::string > &all_keywords, bool repeat_keyword=false) |
| std::vector< std::string > | split_text (const std::string &text, const std::string &keyword) |
| std::map< std::string, std::string > | split_text_using_keywords (const std::string &text, const std::vector< std::string > &keywords) |
| std::vector< std::string > | nonempty_lines (const std::string &text) |
| template<typename T > | |
| T | identity (T t) |
| template<typename Parser , typename Operation1 , typename Operation2 , typename Compare > | |
| bool | test_operation (const std::string &expr1, const std::string &expr2, Parser parse, Compare comp, Operation1 op1, const std::string &opname1, Operation2 op2, const std::string &opname2) |
| Generic function that applies two operations to two objects, and compares the results. | |
| template<typename Parser , typename Operation , typename Compare > | |
| bool | test_operation (const std::string &expr1, const std::string &expr2, Parser parse, Compare comp, Operation op, const std::string &opname) |
| Generic function that applies an operation to an object, and compares it with another object. | |
| std::size_t | hash_combine (const std::size_t h1, const std::size_t h2) |
| std::size_t | hash_combine_cheap (const std::size_t seed, const std::size_t hash_number) |
| Auxiliary function to combine seed with a hash number. | |
| template<typename Iterator > | |
| Iterator | parse_next_natural_number (Iterator first, Iterator last, std::size_t &result) |
| std::size_t | get_thread_id () |
| Get a unique identifier for the current thread. | |
Variables | |
| static constexpr uintptr_t | BlockAllocSentinel = std::numeric_limits<uintptr_t>::max() |
Sentinel written to next to identify freed entries during consolidation. | |
| static constexpr std::size_t | FreeChunkSize = 1000 |
| Number of entries per shared free chunk handed between threads. | |
| static constexpr bool | GlobalThreadSafe |
| Enables thread safety for the whole toolset. | |
| static constexpr Sentinel | EndIterator = {} |
| A end of the iterator sentinel. | |
| static const std::size_t | STEP = 1 |
| The position on which the next hash entry is searched. | |
| static constexpr std::size_t | EMPTY = std::numeric_limits<std::size_t>::max() |
| in the hashtable we use the following constant to indicate free positions. | |
| static constexpr std::size_t | RESERVED = std::numeric_limits<std::size_t>::max() - 1 |
| static constexpr float | max_load_factor = 0.6f |
| The load factor before the hash table is resized. | |
| static constexpr std::size_t | PRIME_NUMBER = 999953 |
| static constexpr std::size_t | minimal_hashtable_size = 16 |
| static constexpr std::size_t | RESERVATION_FRACTION = 8 |
| using mcrl2::utilities::detail::void_t = typedef void |
Definition at line 46 of file unordered_set.h.
|
inline |
Definition at line 45 of file big_numbers.h.
|
inline |
A compile time check for allocate_args in the given allocator, calls allocate(1) otherwise.
Definition at line 28 of file bucket_list.h.
|
inline |
Definition at line 34 of file bucket_list.h.
| std::set< T, Compare > mcrl2::utilities::detail::as_set | ( | const std::vector< T > & | x | ) |
Definition at line 222 of file container_utility.h.
| std::vector< T > mcrl2::utilities::detail::as_vector | ( | const std::set< T, Compare > & | x | ) |
Definition at line 216 of file container_utility.h.
| bool mcrl2::utilities::detail::contains | ( | const atermpp::indexed_set< Key, ThreadSafe, Hash, Equals, Allocator, KeyTable > & | c, |
| const typename atermpp::indexed_set< Key, ThreadSafe, Hash, Equals, Allocator, KeyTable >::key_type & | v, | ||
| const std::size_t | thread_index = 0 |
||
| ) |
Definition at line 160 of file indexed_set.h.
| bool mcrl2::utilities::detail::contains | ( | const Container & | c, |
| const typename Container::value_type & | v | ||
| ) |
Returns the value corresponding to the given key in the set m. If the key is not present, an exception is thrown.
Definition at line 53 of file container_utility.h.
| bool mcrl2::utilities::detail::contains | ( | const std::multiset< T, Compare > & | c, |
| const typename std::multiset< T >::value_type & | v | ||
| ) |
Definition at line 67 of file container_utility.h.
| bool mcrl2::utilities::detail::contains | ( | const std::set< T, Compare > & | c, |
| const typename std::set< T, Compare >::value_type & | v | ||
| ) |
Definition at line 60 of file container_utility.h.
| bool mcrl2::utilities::detail::contains | ( | const std::unordered_set< T > & | c, |
| const typename std::set< T >::value_type & | v | ||
| ) |
Definition at line 74 of file container_utility.h.
|
inline |
Definition at line 124 of file big_numbers.h.
|
inline |
Get a unique identifier for the current thread.
Definition at line 35 of file thread_local.h.
|
inline |
Definition at line 150 of file big_numbers.h.
| bool mcrl2::utilities::detail::has_empty_intersection | ( | const SetContainer1 & | s1, |
| const SetContainer2 & | s2 | ||
| ) |
Definition at line 163 of file container_utility.h.
| bool mcrl2::utilities::detail::has_empty_intersection | ( | InputIterator1 | first1, |
| InputIterator1 | last1, | ||
| InputIterator2 | first2, | ||
| InputIterator2 | last2, | ||
| Compare | comp | ||
| ) |
Returns true if the sorted ranges [first1, ..., last1) and [first2, ..., last2) have an empty intersection.
Definition at line 142 of file container_utility.h.
| bool mcrl2::utilities::detail::has_key | ( | const std::map< Key, T > & | c, |
| const Key & | v | ||
| ) |
Returns the value corresponding to the given key in the set m. If the key is not present, an exception is thrown.
Definition at line 82 of file container_utility.h.
| bool mcrl2::utilities::detail::has_key | ( | const std::multimap< Key, T > & | c, |
| const Key & | v | ||
| ) |
Returns the value corresponding to the given key in the set m. If the key is not present, an exception is thrown.
Definition at line 90 of file container_utility.h.
|
inline |
Definition at line 28 of file hash_utility.h.
|
inline |
Auxiliary function to combine seed with a hash number.
Definition at line 35 of file hash_utility.h.
| T mcrl2::utilities::detail::identity | ( | T | t | ) |
Definition at line 23 of file test_operation.h.
| void mcrl2::utilities::detail::iota | ( | Iter | first, |
| Iter | last, | ||
| T | value | ||
| ) |
| T mcrl2::utilities::detail::join | ( | FwdIt | first, |
| FwdIt | last, | ||
| BinaryOperation | op, | ||
| T | empty_sequence_result | ||
| ) |
Given a sequence [t1, t2, ..., tn] of elements of type T, returns op(t1, op(t2, ...), tn)))).
| empty_sequence_result | The value that is returned when the sequence is empty. |
| first | [first, last) is the range of elements. |
| last | |
| op | An operator |
| T mcrl2::utilities::detail::join_balanced | ( | RndIt | first, |
| RndIt | last, | ||
| BinaryOperation | op | ||
| ) |
Given a non-empty sequence [t1, t2, ..., tn] of elements of type T, returns op(op(t1, op(t2, ...), tn)))). The height of the resulting expression tree is minimal.
| first | [first, last) is the range of elements. |
| last | |
| op | An operator |
| Map::mapped_type mcrl2::utilities::detail::map_element | ( | const Map & | m, |
| const typename Map::key_type & | key | ||
| ) |
Returns the value corresponding to the given key in the map m. If the key is not present, an exception is thrown.
Definition at line 26 of file container_utility.h.
| Map::mapped_type mcrl2::utilities::detail::mapped_value | ( | const Map & | m, |
| const typename Map::key_type & | key, | ||
| const typename Map::mapped_type & | undefined_value | ||
| ) |
Definition at line 40 of file container_utility.h.
|
inline |
Definition at line 91 of file big_numbers.h.
|
inline |
| Iterator mcrl2::utilities::detail::parse_next_natural_number | ( | Iterator | first, |
| Iterator | last, | ||
| std::size_t & | result | ||
| ) |
Definition at line 31 of file parse_numbers.h.
| Container::value_type mcrl2::utilities::detail::pick_element | ( | Container & | v | ) |
Definition at line 97 of file container_utility.h.
|
inline |
|
inline |
Definition at line 169 of file big_numbers.h.
| void mcrl2::utilities::detail::remove_if | ( | ContainerT & | items, |
| const PredicateT & | predicate | ||
| ) |
Definition at line 125 of file container_utility.h.
|
inline |
Definition at line 25 of file separate_keyword_section.h.
| std::set< T, Compare > mcrl2::utilities::detail::set_difference | ( | const std::set< T, Compare > & | x, |
| const std::set< T, Compare > & | y | ||
| ) |
Returns the difference of two sets that are sorted in the same way.
| x | A set |
| y | A set |
Definition at line 185 of file container_utility.h.
| bool mcrl2::utilities::detail::set_includes | ( | const std::set< T, Compare > & | x, |
| const std::set< T, Compare > & | y | ||
| ) |
Returns if y is included in x.
| x | A set |
| y | A set |
Definition at line 209 of file container_utility.h.
| void mcrl2::utilities::detail::set_insert | ( | std::set< T, Compare > & | s, |
| const Container & | c | ||
| ) |
Definition at line 107 of file container_utility.h.
| std::set< T, Compare > mcrl2::utilities::detail::set_intersection | ( | const std::set< T, Compare > & | x, |
| const std::set< T, Compare > & | y | ||
| ) |
Returns the intersection of two sets that are sorted in the same way.
| x | A set |
| y | A set |
Definition at line 197 of file container_utility.h.
| void mcrl2::utilities::detail::set_remove | ( | std::set< T, Compare > & | s, |
| const Container & | c | ||
| ) |
Definition at line 114 of file container_utility.h.
| std::set< T, Compare > mcrl2::utilities::detail::set_union | ( | const std::set< T, Compare > & | x, |
| const std::set< T, Compare > & | y | ||
| ) |
Returns the union of two sets that are sorted in the same way.
| x | A set |
| y | A set |
Definition at line 173 of file container_utility.h.
| void mcrl2::utilities::detail::split | ( | const T & | t, |
| OutputIterator | i, | ||
| MatchFunction | match, | ||
| AccessorFunction1 | lhs, | ||
| AccessorFunction2 | rhs | ||
| ) |
Splits a binary tree T into a sequence, and writes the result to the output range given by an output iterator.
| t | The tree that has to be split. |
| i | The output iterator. |
| match | If this functions returns true in a node, the node will be split. |
| lhs | Function for getting the left subtree of a node. |
| rhs | Function for getting the right subtree of a node. |
|
inline |
|
inline |
|
inline |
Definition at line 68 of file big_numbers.h.
| bool mcrl2::utilities::detail::test_operation | ( | const std::string & | expr1, |
| const std::string & | expr2, | ||
| Parser | parse, | ||
| Compare | comp, | ||
| Operation | op, | ||
| const std::string & | opname | ||
| ) |
Generic function that applies an operation to an object, and compares it with another object.
Definition at line 70 of file test_operation.h.
| bool mcrl2::utilities::detail::test_operation | ( | const std::string & | expr1, |
| const std::string & | expr2, | ||
| Parser | parse, | ||
| Compare | comp, | ||
| Operation1 | op1, | ||
| const std::string & | opname1, | ||
| Operation2 | op2, | ||
| const std::string & | opname2 | ||
| ) |
Generic function that applies two operations to two objects, and compares the results.
Definition at line 30 of file test_operation.h.
|
inline |
|
staticconstexpr |
Sentinel written to next to identify freed entries during consolidation.
Definition at line 35 of file block_allocator.h.
|
staticconstexpr |
in the hashtable we use the following constant to indicate free positions.
Definition at line 26 of file indexed_set.h.
|
staticconstexpr |
A end of the iterator sentinel.
Definition at line 24 of file bucket_list.h.
|
staticconstexpr |
Number of entries per shared free chunk handed between threads.
Definition at line 38 of file block_allocator.h.
|
staticconstexpr |
Enables thread safety for the whole toolset.
Definition at line 17 of file configuration.h.
|
staticconstexpr |
The load factor before the hash table is resized.
Definition at line 30 of file indexed_set.h.
|
staticconstexpr |
Definition at line 35 of file indexed_set.h.
|
staticconstexpr |
Definition at line 32 of file indexed_set.h.
|
staticconstexpr |
Definition at line 39 of file indexed_set.h.
|
staticconstexpr |
Definition at line 28 of file indexed_set.h.
|
static |
The position on which the next hash entry is searched.
Definition at line 23 of file indexed_set.h.