srchilite::srchilite::LangElems Class Reference

collection of LangElem objects More...

Inherits std::list< LangElem * >, std::list< LangElem * >, and std::list< LangElem * >.

Collaboration diagram for srchilite::srchilite::LangElems:
[legend]

List of all members.

Public Member Functions

void add (LangElem *el)
 Adds a new element at the end of this collection.
void redef (LangElem *el)
 Redefines all the possible occurrences of elements (which will be removed) with the same name with the new element (which will be added at the end of this collection).
void subst (LangElem *el)
 Replaces the first occurrence of element (with the same name) with the new one; all the other possible occurrences of elements will be removed.
const std::string toString () const
 return the string representation (with preprocessing) of all the elements
const std::string toStringOriginal () const
 return the original representation (without any preprocessing) of all the elements; this is useful for printing errors
virtual void dispatch_collect_const (LangElemsPrinter *)
void add (LangElem *el)
 Adds a new element at the end of this collection.
void redef (LangElem *el)
 Redefines all the possible occurrences of elements (which will be removed) with the same name with the new element (which will be added at the end of this collection).
void subst (LangElem *el)
 Replaces the first occurrence of element (with the same name) with the new one; all the other possible occurrences of elements will be removed.
const std::string toString () const
 return the string representation (with preprocessing) of all the elements
const std::string toStringOriginal () const
 return the original representation (without any preprocessing) of all the elements; this is useful for printing errors
virtual void dispatch_collect_const (LangElemsPrinter *)
void add (LangElem *el)
 Adds a new element at the end of this collection.
void redef (LangElem *el)
 Redefines all the possible occurrences of elements (which will be removed) with the same name with the new element (which will be added at the end of this collection).
void subst (LangElem *el)
 Replaces the first occurrence of element (with the same name) with the new one; all the other possible occurrences of elements will be removed.
const std::string toString () const
 return the string representation (with preprocessing) of all the elements
const std::string toStringOriginal () const
 return the original representation (without any preprocessing) of all the elements; this is useful for printing errors
virtual void dispatch_collect_const (LangElemsPrinter *)

Private Types

typedef LangElemsBase base
typedef base::iterator Pointer
typedef list< Pointer > PointerList
typedef map< string, PointerList > ElemMap
typedef LangElemsBase base
typedef base::iterator Pointer
typedef list< Pointer > PointerList
typedef map< string, PointerList > ElemMap
typedef LangElemsBase base
typedef base::iterator Pointer
typedef list< Pointer > PointerList
typedef map< string, PointerList > ElemMap

Private Attributes

ElemMap elem_map

Detailed Description

collection of LangElem objects


Member Function Documentation

void srchilite::srchilite::LangElems::add ( LangElem el  ) 

Adds a new element at the end of this collection.

Parameters:
el 
void srchilite::srchilite::LangElems::add ( LangElem el  ) 

Adds a new element at the end of this collection.

Parameters:
el 
void srchilite::LangElems::add ( LangElem el  ) 

Adds a new element at the end of this collection.

Parameters:
el 
void srchilite::srchilite::LangElems::redef ( LangElem el  ) 

Redefines all the possible occurrences of elements (which will be removed) with the same name with the new element (which will be added at the end of this collection).

Parameters:
el the new element
void srchilite::srchilite::LangElems::redef ( LangElem el  ) 

Redefines all the possible occurrences of elements (which will be removed) with the same name with the new element (which will be added at the end of this collection).

Parameters:
el the new element
void srchilite::LangElems::redef ( LangElem el  ) 

Redefines all the possible occurrences of elements (which will be removed) with the same name with the new element (which will be added at the end of this collection).

Parameters:
el the new element
void srchilite::srchilite::LangElems::subst ( LangElem el  ) 

Replaces the first occurrence of element (with the same name) with the new one; all the other possible occurrences of elements will be removed.

Parameters:
el the new element
void srchilite::srchilite::LangElems::subst ( LangElem el  ) 

Replaces the first occurrence of element (with the same name) with the new one; all the other possible occurrences of elements will be removed.

Parameters:
el the new element
void srchilite::LangElems::subst ( LangElem el  ) 

Replaces the first occurrence of element (with the same name) with the new one; all the other possible occurrences of elements will be removed.

Parameters:
el the new element
const std::string srchilite::srchilite::LangElems::toString (  )  const

return the string representation (with preprocessing) of all the elements

Returns:
the string representation
const std::string srchilite::srchilite::LangElems::toString (  )  const

return the string representation (with preprocessing) of all the elements

Returns:
the string representation
const string srchilite::LangElems::toString (  )  const

return the string representation (with preprocessing) of all the elements

Returns:
the string representation
const std::string srchilite::srchilite::LangElems::toStringOriginal (  )  const

return the original representation (without any preprocessing) of all the elements; this is useful for printing errors

Returns:
the original representation
const std::string srchilite::srchilite::LangElems::toStringOriginal (  )  const

return the original representation (without any preprocessing) of all the elements; this is useful for printing errors

Returns:
the original representation
const string srchilite::LangElems::toStringOriginal (  )  const

return the original representation (without any preprocessing) of all the elements; this is useful for printing errors

Returns:
the original representation

The documentation for this class was generated from the following files:

Generated by  doxygen 1.6.2