Files Classes Functions Hierarchy
#include <tokenizerlocal.h>
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. | |
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.
| 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 }
| boolc tokenizerlocalvar::operator! | ( | ) |
Iterate between [i1,i2).
Definition at line 393 of file tokenizerlocal.cpp.
References objtag, and tokenizerlocal::scope().
| string tokenizerlocalvar::objtag |
Tag that is iterated over parents scope.
Definition at line 143 of file tokenizerlocal.h.
Referenced by operator!().
1.5.8