proj home

Files   Classes   Functions   Hierarchy  

tokenizerlocalvar Class Reference

Iterate over a object tag in parents scope. More...

#include <tokenizerlocal.h>

Inheritance diagram for tokenizerlocalvar:
Collaboration diagram for tokenizerlocalvar:

List of all members.

Public Member Functions

boolc operator! ()
 Iterate between [i1,i2).
 tokenizerlocalvar (tokenizerlocal &tkl, stringc &objtag_)
 Reset to tkl's scope.

Public Attributes

string objtag
 Tag that is iterated over parents scope.


Detailed Description

Iterate over a object tag in parents scope.

This class is designed for use with the for loop.

The for loop tests before entry. So the ! operator really moves i1 i2 towards the target.

Iterator conforms to symbolic use.

// Iterating over a scope from tl.
tokenizerlocalvar tl2(tl,"obj");
for ( ; !tl2; ++tl2 )
{
  tokenizerlocal tl3(tl2);
  if (tl3.read(SN,"SN"))
    cout << SHOW3(SN) << endl;
  tl3.reset();
  if (tl3.read(Desc,"Desc"))
    cout << SHOW3(Desc) << endl;
} 

Definition at line 135 of file tokenizerlocal.h.


Constructor & Destructor Documentation

tokenizerlocalvar::tokenizerlocalvar ( tokenizerlocal tkl,
stringc objtag_ 
)

Reset to tkl's scope.

Definition at line 385 of file tokenizerlocal.cpp.

00389   : tokenizerlocal(tkl), objtag(objtag_)
00390 {
00391 }


Member Function Documentation

boolc tokenizerlocalvar::operator! (  ) 

Iterate between [i1,i2).

Definition at line 393 of file tokenizerlocal.cpp.

References objtag, and tokenizerlocal::scope().

00394 {
00395   return scope(objtag);
00396 }


Member Data Documentation

Tag that is iterated over parents scope.

Definition at line 143 of file tokenizerlocal.h.

Referenced by operator!().


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

Generated on Fri Mar 4 00:50:20 2011 for Chelton Evans Source by  doxygen 1.5.8