Representation of a program variable. More...
#include <variable.h>
Public Member Functions | |
variable (string name, namespace_context ns, block *scope, scope_type st, qualifier_type qt, variable_declaration *decl, type *t, int i=-1) | |
bool | is_global () |
bool | is_local () |
bool | is_argument () |
void | set_declaration (variable_declaration *vd) |
virtual string | to_string () const |
void | set_scope (block *b) |
int | get_arg_num () |
variable_declaration * | get_declaration () |
block * | get_scope () |
scope_type | get_scope_type () |
type * | get_type () |
string | get_name () |
const namespace_context & | get_namespace () const |
void | print () |
bool | operator== (const variable &other) |
bool | is_extern () |
bool | is_volatile () |
bool | is_static () |
bool | is_register () |
bool | is_constant () |
bool | is_private () |
bool | is_protected () |
bool | is_public () |
Static Public Member Functions | |
static variable * | get_unmodeled_var () |
Friends | |
class | boost::serialization::access |
ostream & | operator<< (ostream &os, const variable &obj) |
Representation of a program variable.