LLOOP Index | GSP Language | GSP Library | Framework Classes | Component Classes

SymbolCounter Class Reference

#include "gsp__Symbol.h"

Defines a counter for recursively counting (possibly nested) repetitive symbol sequences More...


Inherited Class(es)


Public Functions

SymbolCounter ( ) 
~SymbolCounter ( ) 
getSymbolCounterName ( ) const 
  • void 
incr ( ) 
  • void 
reset ( ) 
  • unsigned long 
value ( ) const 
  • unsigned long 
valueAt Symbol * pSymbol , unsigned long uIterLevel , ... ) 

Private Variables

  • unsigned long 
m_uCounter 

Detailed Description

Defines a counter for recursively counting (possibly nested) repetitive symbol sequences


Files Included

#include <iostream>
#include "universal.h"

Functions Documentation

SymbolCounter ( ) 

Constructor. Counter is 0.

See also:

Back to index

~SymbolCounter ( ) 

Destructor.

See also:

Back to index

void reset ( ) 

Resets the counter. Value is reset to 0 and all sub-counters are destroyed.

See also:

Back to index

unsigned long value ( ) const 

Returns the value of the counter.

See also:

Back to index

void incr ( ) 

Increments the counter.

See also:

Back to index

universal::String getSymbolCounterName ( ) const 

Returns the symbolic name of the counter. Intented for the error messages.

See also:

Back to index

unsigned long valueAt Symbol * pSymbol , unsigned long uIterLevel , ... ) 

Equivalent to the function referred to below, except that a various number of parameter can be given to the function.

If the passed index(es) is (are) invalid (out of range), the error message is raised as exception (char *), and shall be freed with ::free().

See also:

SymbolCounter * SymbolCounterComposite::getComponentAt ( unsigned long uIterLevel , va_list arg 
Back to index


This file is part of the LLOOP Reversible Object-Oriented Parser Generator. Copyright (c) 2005-2006 Michel MEHL, France. All rights reserved. LLOOP is distributed by the company ERSA SaRL.


Copyright (c) 2005-2006 Michel MEHL, Haguenau, France
LLOOP version 1.1


Generated with makedoc.