SymbolEntry Class Reference

#include <SymbolEntry.h>

Inheritance diagram for SymbolEntry:

YSymbolEntry List of all members.

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 Y2NamespacenameSpace () 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< YCPValuevaluestack_t

Protected Attributes

bool m_global
const Y2Namespacem_namespace
unsigned int m_position
Ustring m_name
category_t m_category
constTypePtr m_type
YCPValue m_value
valuestack_tm_recurse_stack

Private Member Functions

 REP_BODY (SymbolEntry)

Member Typedef Documentation

typedef std::stack<YCPValue> SymbolEntry::valuestack_t [protected]


Member Enumeration Documentation

enum SymbolEntry::category_t

Enumerator:
c_unspec 
c_global 
c_module 
c_variable 
c_reference 
c_function 
c_builtin 
c_typedef 
c_const 
c_namespace 
c_self 
c_predefined 
c_filename 


Constructor & Destructor Documentation

SymbolEntry::SymbolEntry ( const Y2Namespace name_space,
unsigned int  position,
const char *  name,
category_t  cat,
constTypePtr  type 
)

constructor

SymbolEntry::~SymbolEntry (  )  [virtual]


Member Function Documentation

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::setValue ( YCPValue  value  ) 

YCPValue SymbolEntry::value (  )  const

void SymbolEntry::push (  ) 

void SymbolEntry::pop (  ) 

string SymbolEntry::toString ( bool  with_type = true  )  const [virtual]

Reimplemented in YSymbolEntry.


Member Data Documentation

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]


The documentation for this class was generated from the following files:
Generated on Tue Nov 6 01:20:22 2007 for yast2-core by  doxygen 1.5.0