type_equivalency.cpp
Go to the documentation of this file.
38 // Loop over all the default versions of BOSSed backends and replace any corresponding leading namespace. 39 for (auto it = Backends::backendInfo().default_safe_versions.begin(); it != Backends::backendInfo().default_safe_versions.end(); ++it) 64 // Iterate over the entries in the configuration file and add them to the set of equivalency classes 77 for (std::set<std::set<str> >::const_iterator it = equivalency_classes_copy.begin(); it != equivalency_classes_copy.end(); ++it) 111 void type_equivalency::add(str t1, str t2, str t3, str t4) { add(t1,t2); add(t1,t3); add(t1,t4); } 112 void type_equivalency::add(str t1, str t2, str t3, str t4, str t5) { add(t1,t2); add(t1,t3); add(t1,t4); add(t1,t5); } 113 void type_equivalency::add(str t1, str t2, str t3, str t4, str t5, str t6) { add(t1,t2); add(t1,t3); add(t1,t4); add(t1,t5); add(t1,t6); } 114 void type_equivalency::add(std::vector<str> v) { for (auto it = v.begin()+1; it != v.end(); ++it) { add(v[0],*it); } }
EXPORT_SYMBOLS str replace_leading_namespace(str s, str ns, str ns_new) Replaces a namespace at the start of a string, or after "const". Definition: util_functions.cpp:115 General small utility functions. std::set< std::set< str > > equivalency_classes }@ The total set of equivalency classes Definition: type_equivalency.hpp:49 EXPORT_SYMBOLS void strip_whitespace_except_after_const(str &) Strip all whitespace except that following "const", in which case the whitespace is replaced by a sin... Definition: util_functions.cpp:123 EXPORT_SYMBOLS str strip_leading_namespace(str s, str ns) Strips namespace from the start of a string, or after "const". Definition: util_functions.cpp:107 Simple container used for storing info about which types have been defined as equivalent for depencen... str fix_type(str) Clean out whitespace and strip Gambit and default BOSSed class namespaces. Definition: type_equivalency.cpp:34 |