|
Yume
|
#include <substitution.hpp>
Public Member Functions | |
| Substitutions ()=delete | |
| Substitutions (vector< GenericKey > keys, const vector< unique_ptr< ty::Generic > > &generic_type_fallbacks, nullable< Substitutions * > parent=nullptr) | |
| Substitutions (vector< GenericKey > keys, vector< ty::Generic * > generic_type_fallbacks, nullable< Substitutions * > parent=nullptr) | |
| auto | empty () const -> bool |
| auto | size () const -> size_t |
| auto | fully_substituted () const -> bool |
| auto | mapping_ref_or_null (const GenericKey &generic) -> nullable< GenericValue * > |
| auto | mapping_ref_or_null (const GenericKey &generic) const -> nullable< const GenericValue * > |
| auto | mapping_ref (const GenericKey &generic) -> GenericValue & |
| auto | mapping_ref (const GenericKey &generic) const -> const GenericValue & |
| auto | find_type (string_view generic_name) const -> optional< ty::Type > |
| auto | type_mappings () const -> std::map< string, ty::Type > |
| void | associate (const GenericKey &key, GenericValue value) |
| auto | append_new_association (GenericKey key) -> GenericValue & |
| void | dump (llvm::raw_ostream &os) const |
| auto | all_keys () const -> vector< const GenericKey * > |
| auto | all_values () const -> vector< const GenericValue * > |
| auto | all_values () -> vector< GenericValue * > |
| auto | mapping () |
| auto | mapping () const |
| auto | get_generic_fallback (string_view generic_name) const -> ty::Generic * |
| auto | operator== (const Substitutions &other) const noexcept -> bool |
Definition at line 68 of file substitution.hpp.
|
delete |
|
inline |
Definition at line 76 of file substitution.hpp.
|
inline |
Definition at line 93 of file substitution.hpp.
|
inline |
Definition at line 161 of file substitution.hpp.
Referenced by mapping(), and operator==().
|
inline |
Definition at line 177 of file substitution.hpp.
|
inline |
Definition at line 169 of file substitution.hpp.
Referenced by mapping(), and operator==().
|
inline |
Definition at line 147 of file substitution.hpp.
|
inline |
Definition at line 145 of file substitution.hpp.
References mapping_ref().
|
inline |
Definition at line 152 of file substitution.hpp.
|
inline |
Definition at line 109 of file substitution.hpp.
Referenced by yume::semantic::Overload::dump(), and fully_substituted().
|
inline |
Definition at line 129 of file substitution.hpp.
References mapping(), mapping_ref_or_null(), and YUME_ASSERT.
|
inline |
Definition at line 111 of file substitution.hpp.
References empty(), and yume::GenericValue::unassigned_or_unsubstituted().
Referenced by yume::DeclLike::fully_substituted().
| auto yume::Substitutions::get_generic_fallback | ( | string_view | generic_name | ) | const -> ty::Generic* |
Definition at line 34 of file substitution.cpp.
References yume::ty::Generic::name().
|
inline |
Definition at line 186 of file substitution.hpp.
References all_keys(), and all_values().
Referenced by yume::semantic::Overload::dump(), find_type(), and type_mappings().
|
inline |
Definition at line 187 of file substitution.hpp.
References all_keys(), and all_values().
|
inline |
Definition at line 118 of file substitution.hpp.
References mapping_ref_or_null(), and YUME_ASSERT.
Referenced by associate().
|
inline |
Definition at line 123 of file substitution.hpp.
References mapping_ref_or_null(), and YUME_ASSERT.
| auto yume::Substitutions::mapping_ref_or_null | ( | const GenericKey & | generic | ) | -> nullable<GenericValue*> |
Definition at line 7 of file substitution.cpp.
Referenced by find_type(), and mapping_ref().
| auto yume::Substitutions::mapping_ref_or_null | ( | const GenericKey & | generic | ) | const -> nullable<const GenericValue*> |
Definition at line 16 of file substitution.cpp.
|
inlinenoexcept |
Definition at line 191 of file substitution.hpp.
References all_keys(), and all_values().
|
inline |
Definition at line 110 of file substitution.hpp.
| auto yume::Substitutions::type_mappings | ( | ) | const -> std::map<string, ty::Type> |
Definition at line 25 of file substitution.cpp.
References mapping().