|
OpenSDN source code
|
#include <t_scope.h>
Public Member Functions | |
| t_scope () | |
| void | add_type (std::string name, t_type *type) |
| t_type * | get_type (std::string name) |
| void | add_service (std::string name, t_service *service) |
| t_service * | get_service (std::string name) |
| void | add_constant (std::string name, t_const *constant) |
| t_const * | get_constant (std::string name) |
| void | print () |
| void | resolve_const_value (t_const_value *const_val, t_type *ttype) |
Private Attributes | |
| std::map< std::string, t_type * > | types_ |
| std::map< std::string, t_const * > | constants_ |
| std::map< std::string, t_service * > | services_ |
This represents a variable scope used for looking up predefined types and services. Typically, a scope is associated with a t_program. Scopes are not used to determine code generation, but rather to resolve identifiers at parse time.
|
inline |
|
inline |
|
inline |
|
inline |
|
private |
|
private |