#include <SymbolEntry.h>
Inheritance diagram for SymbolEntry:

Public Types | |
| enum | category_t { c_unspec = 0, c_global, c_module, c_variable, c_reference, c_function, c_builtin, c_typedef, c_const, c_namespace, c_self, c_predefined, c_filename } |
Public Member Functions | |
| SymbolEntry (const Y2Namespace *name_space, unsigned int position, const char *name, category_t cat, constTypePtr type) | |
| virtual | ~SymbolEntry () |
| const Y2Namespace * | nameSpace () const |
| void | setNamespace (const Y2Namespace *name_space) |
| virtual bool | onlyDeclared () const |
| unsigned int | position () const |
| void | setPosition (unsigned int position) |
| bool | isGlobal () const |
| void | setGlobal (bool global) |
| bool | isModule () const |
| bool | isVariable () const |
| bool | isReference () const |
| bool | isFunction () const |
| bool | isBuiltin () const |
| bool | isNamespace () const |
| bool | isSelf () const |
| bool | isFilename () const |
| bool | isPredefined () const |
| bool | likeNamespace () const |
| const char * | name () const |
| category_t | category () const |
| void | setCategory (category_t cat) |
| constTypePtr | type () const |
| string | catString () const |
| void | setType (constTypePtr type) |
| YCPValue | setValue (YCPValue value) |
| YCPValue | value () const |
| void | push () |
| void | pop () |
| virtual string | toString (bool with_type=true) const |
Static Public Attributes | |
| static UstringHash * | _nameHash |
| static Ustring | emptyUstring |
Protected Types | |
| typedef std::stack< YCPValue > | valuestack_t |
Protected Attributes | |
| bool | m_global |
| const Y2Namespace * | m_namespace |
| unsigned int | m_position |
| Ustring | m_name |
| category_t | m_category |
| constTypePtr | m_type |
| YCPValue | m_value |
| valuestack_t * | m_recurse_stack |
Private Member Functions | |
| REP_BODY (SymbolEntry) | |
typedef std::stack<YCPValue> SymbolEntry::valuestack_t [protected] |
| SymbolEntry::SymbolEntry | ( | const Y2Namespace * | name_space, | |
| unsigned int | position, | |||
| const char * | name, | |||
| category_t | cat, | |||
| constTypePtr | type | |||
| ) |
constructor
| SymbolEntry::~SymbolEntry | ( | ) | [virtual] |
| SymbolEntry::REP_BODY | ( | SymbolEntry | ) | [private] |
| const Y2Namespace * SymbolEntry::nameSpace | ( | ) | const |
| void SymbolEntry::setNamespace | ( | const Y2Namespace * | name_space | ) |
| virtual bool SymbolEntry::onlyDeclared | ( | ) | const [inline, virtual] |
Reimplemented in YSymbolEntry.
| unsigned int SymbolEntry::position | ( | ) | const |
| void SymbolEntry::setPosition | ( | unsigned int | position | ) |
| bool SymbolEntry::isGlobal | ( | ) | const |
| void SymbolEntry::setGlobal | ( | bool | global | ) |
| bool SymbolEntry::isModule | ( | ) | const [inline] |
| bool SymbolEntry::isVariable | ( | ) | const [inline] |
| bool SymbolEntry::isReference | ( | ) | const [inline] |
| bool SymbolEntry::isFunction | ( | ) | const [inline] |
| bool SymbolEntry::isBuiltin | ( | ) | const [inline] |
| bool SymbolEntry::isNamespace | ( | ) | const [inline] |
| bool SymbolEntry::isSelf | ( | ) | const [inline] |
| bool SymbolEntry::isFilename | ( | ) | const [inline] |
| bool SymbolEntry::isPredefined | ( | ) | const [inline] |
| bool SymbolEntry::likeNamespace | ( | ) | const [inline] |
| const char * SymbolEntry::name | ( | ) | const |
| SymbolEntry::category_t SymbolEntry::category | ( | ) | const |
| void SymbolEntry::setCategory | ( | category_t | cat | ) |
| constTypePtr SymbolEntry::type | ( | ) | const |
| string SymbolEntry::catString | ( | ) | const |
| void SymbolEntry::setType | ( | constTypePtr | type | ) |
| YCPValue SymbolEntry::value | ( | ) | const |
| void SymbolEntry::push | ( | ) |
| void SymbolEntry::pop | ( | ) |
| string SymbolEntry::toString | ( | bool | with_type = true |
) | const [virtual] |
Reimplemented in YSymbolEntry.
UstringHash * SymbolEntry::_nameHash [static] |
Ustring SymbolEntry::emptyUstring [static] |
bool SymbolEntry::m_global [protected] |
const Y2Namespace* SymbolEntry::m_namespace [protected] |
unsigned int SymbolEntry::m_position [protected] |
Ustring SymbolEntry::m_name [protected] |
category_t SymbolEntry::m_category [protected] |
constTypePtr SymbolEntry::m_type [protected] |
YCPValue SymbolEntry::m_value [protected] |
valuestack_t* SymbolEntry::m_recurse_stack [protected] |
1.5.0