Difference between revisions of "Gscope Procedures"
Line 3: | Line 3: | ||
===Iterator=== | ===Iterator=== | ||
See the source of [http://lbgi.igbmc.fr/gag/cgi-bin/GscopeServer?Zero&info&body&Iterator proc Iterator] | See the source of [http://lbgi.igbmc.fr/gag/cgi-bin/GscopeServer?Zero&info&body&Iterator proc Iterator] | ||
+ | <source lang="tcl"> | ||
+ | set Name [Iterator New Init $L0 $L1 $L2] | ||
+ | while {[Iterator $Name Next v0 v1 v2]} { ... } #rR sans $ | ||
+ | La derniere va le plus vite !!!!!!!!!!!!!!!!!!!! | ||
+ | Attention les listes sont numerotes de 0 a 2 a l'exterieur (pour le user) | ||
+ | mais elles sont indexes de 2 a 0 dans la proc (en interne) | ||
+ | Iterator $Name Reset | ||
+ | Iterator $Name Destroy | ||
+ | set Info [Iterator Iterator Get ListOf Name] | ||
+ | set Info [Iterator $Name Get Current 2] #rR current index de L2 | ||
+ | set Info [Iterator $Name Get Current All] #rR tous les current L0 L1 L2 | ||
+ | set Info [Iterator $Name Get Max 0] | ||
+ | set Info [Iterator $Name Get Max All] | ||
+ | </source> |
Revision as of 14:41, 17 April 2009
You'll find here description about Gscope Procedures
Iterator
See the source of proc Iterator
set Name [Iterator New Init $L0 $L1 $L2]
while {[Iterator $Name Next v0 v1 v2]} { ... } #rR sans $
La derniere va le plus vite !!!!!!!!!!!!!!!!!!!!
Attention les listes sont numerotes de 0 a 2 a l'exterieur (pour le user)
mais elles sont indexes de 2 a 0 dans la proc (en interne)
Iterator $Name Reset
Iterator $Name Destroy
set Info [Iterator Iterator Get ListOf Name]
set Info [Iterator $Name Get Current 2] #rR current index de L2
set Info [Iterator $Name Get Current All] #rR tous les current L0 L1 L2
set Info [Iterator $Name Get Max 0]
set Info [Iterator $Name Get Max All]