|
CBMC
|
#include <cpp_scope.h>
Inheritance diagram for cpp_scopet:
Collaboration diagram for cpp_scopet:Public Types | |
| enum | lookup_kindt { SCOPE_ONLY, QUALIFIED, RECURSIVE } |
| typedef std::set< cpp_idt * > | id_sett |
Public Types inherited from cpp_idt | |
| enum | id_classt { id_classt::UNKNOWN, id_classt::SYMBOL, id_classt::TYPEDEF, id_classt::CLASS, id_classt::ENUM, id_classt::TEMPLATE, id_classt::TEMPLATE_PARAMETER, id_classt::NAMESPACE, id_classt::BLOCK_SCOPE, id_classt::TEMPLATE_SCOPE, id_classt::ROOT_SCOPE } |
Public Member Functions | |
| cpp_scopet () | |
| id_sett | lookup (const irep_idt &base_name_to_lookup, lookup_kindt kind) |
| id_sett | lookup (const irep_idt &base_name_to_lookup, lookup_kindt kind, cpp_idt::id_classt identifier_class) |
| id_sett | lookup_identifier (const irep_idt &id, cpp_idt::id_classt identifier_class) |
| cpp_idt & | insert (const irep_idt &_base_name) |
| cpp_idt & | insert (const cpp_idt &cpp_id) |
| bool | contains (const irep_idt &base_name_to_lookup) |
| bool | is_root_scope () const |
| bool | is_global_scope () const |
| cpp_scopet & | get_parent () const |
| cpp_scopet & | get_global_scope () |
| void | add_secondary_scope (cpp_scopet &other) |
| void | add_using_scope (cpp_scopet &other) |
| class cpp_scopet & | new_scope (const irep_idt &new_scope_name) |
Public Member Functions inherited from cpp_idt | |
| cpp_idt () | |
| bool | is_class () const |
| bool | is_enum () const |
| bool | is_namespace () const |
| bool | is_typedef () const |
| bool | is_template_scope () const |
| cpp_idt & | get_parent () const |
| void | set_parent (cpp_idt &_parent) |
| void | clear () |
| void | print (std::ostream &out, unsigned indent=0) const |
| void | print_fields (std::ostream &out, unsigned indent=0) const |
Protected Member Functions | |
| void | lookup_rec (const irep_idt &base_name, lookup_kindt kind, id_sett &) |
| void | lookup_rec (const irep_idt &base_name, lookup_kindt kind, cpp_idt::id_classt id_class, id_sett &) |
Additional Inherited Members | |
Public Attributes inherited from cpp_idt | |
| bool | is_member |
| bool | is_method |
| bool | is_static_member |
| bool | is_scope |
| bool | is_constructor |
| id_classt | id_class |
| irep_idt | identifier |
| irep_idt | base_name |
| irep_idt | class_identifier |
| exprt | this_expr |
| std::string | prefix |
| std::string | suffix |
| unsigned | compound_counter |
Protected Types inherited from cpp_idt | |
| typedef std::multimap< irep_idt, cpp_idt > | cpp_id_mapt |
| typedef std::vector< cpp_idt * > | scope_listt |
Protected Attributes inherited from cpp_idt | |
| cpp_id_mapt | sub |
| scope_listt | using_scopes |
| scope_listt | secondary_scopes |
| cpp_idt * | parent |
Definition at line 20 of file cpp_scope.h.
| typedef std::set<cpp_idt *> cpp_scopet::id_sett |
Definition at line 28 of file cpp_scope.h.
| Enumerator | |
|---|---|
| SCOPE_ONLY | |
| QUALIFIED | |
| RECURSIVE | |
Definition at line 30 of file cpp_scope.h.
|
inline |
Definition at line 23 of file cpp_scope.h.
|
inline |
Definition at line 103 of file cpp_scope.h.
|
inline |
Definition at line 109 of file cpp_scope.h.
| bool cpp_scopet::contains | ( | const irep_idt & | base_name_to_lookup | ) |
Definition at line 201 of file cpp_scope.cpp.
|
inline |
Definition at line 93 of file cpp_scope.h.
|
inline |
Definition at line 88 of file cpp_scope.h.
Definition at line 64 of file cpp_scope.h.
Definition at line 52 of file cpp_scope.h.
|
inline |
Definition at line 82 of file cpp_scope.h.
|
inline |
Definition at line 77 of file cpp_scope.h.
|
inline |
Definition at line 32 of file cpp_scope.h.
|
inline |
Definition at line 39 of file cpp_scope.h.
| cpp_scopet::id_sett cpp_scopet::lookup_identifier | ( | const irep_idt & | id, |
| cpp_idt::id_classt | identifier_class | ||
| ) |
Definition at line 157 of file cpp_scope.cpp.
|
protected |
Definition at line 83 of file cpp_scope.cpp.
|
protected |
Definition at line 27 of file cpp_scope.cpp.
| cpp_scopet & cpp_scopet::new_scope | ( | const irep_idt & | new_scope_name | ) |
Definition at line 190 of file cpp_scope.cpp.