SymbolEntry Class Reference

#include <SymbolEntry.h>

Inheritance diagram for SymbolEntry:

Rep 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 = NULL
static Ustring emptyUstring = Ustring ( *( SymbolEntry::_nameHash ? SymbolEntry::_nameHash : (SymbolEntry::_nameHash = new UstringHash)), "")

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::category_t SymbolEntry::category  )  const
 

string SymbolEntry::catString  )  const
 

bool SymbolEntry::isBuiltin  )  const [inline]
 

bool SymbolEntry::isFilename  )  const [inline]
 

bool SymbolEntry::isFunction  )  const [inline]
 

bool SymbolEntry::isGlobal  )  const
 

bool SymbolEntry::isModule  )  const [inline]
 

bool SymbolEntry::isNamespace  )  const [inline]
 

bool SymbolEntry::isPredefined  )  const [inline]
 

bool SymbolEntry::isReference  )  const [inline]
 

bool SymbolEntry::isSelf  )  const [inline]
 

bool SymbolEntry::isVariable  )  const [inline]
 

bool SymbolEntry::likeNamespace  )  const [inline]
 

const char * SymbolEntry::name  )  const
 

const Y2Namespace * SymbolEntry::nameSpace  )  const
 

virtual bool SymbolEntry::onlyDeclared  )  const [inline, virtual]
 

Reimplemented in YSymbolEntry.

void SymbolEntry::pop  ) 
 

unsigned int SymbolEntry::position  )  const
 

void SymbolEntry::push  ) 
 

SymbolEntry::REP_BODY SymbolEntry   )  [private]
 

void SymbolEntry::setCategory category_t  cat  ) 
 

void SymbolEntry::setGlobal bool  global  ) 
 

void SymbolEntry::setNamespace const Y2Namespace name_space  ) 
 

void SymbolEntry::setPosition unsigned int  position  ) 
 

void SymbolEntry::setType constTypePtr  type  ) 
 

YCPValue SymbolEntry::setValue YCPValue  value  ) 
 

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

Reimplemented in YSymbolEntry.

constTypePtr SymbolEntry::type  )  const
 

YCPValue SymbolEntry::value  )  const
 


Member Data Documentation

UstringHash * SymbolEntry::_nameHash = NULL [static]
 

Ustring SymbolEntry::emptyUstring = Ustring ( *( SymbolEntry::_nameHash ? SymbolEntry::_nameHash : (SymbolEntry::_nameHash = new UstringHash)), "") [static]
 

category_t SymbolEntry::m_category [protected]
 

bool SymbolEntry::m_global [protected]
 

Ustring SymbolEntry::m_name [protected]
 

const Y2Namespace* SymbolEntry::m_namespace [protected]
 

unsigned int SymbolEntry::m_position [protected]
 

valuestack_t* SymbolEntry::m_recurse_stack [protected]
 

constTypePtr SymbolEntry::m_type [protected]
 

YCPValue SymbolEntry::m_value [protected]
 


The documentation for this class was generated from the following files:
Generated on Fri Jun 16 18:07:46 2006 for yast2-core by  doxygen 1.4.6