Server
API Reference Guide
Product Documentation:

Visualization Server
Documentation Home
List of all members | Public Member Functions | Public Attributes
javascript::IlsServerRelationIterator Class Reference

This Rogue Wave Views Script class is a proxy for an iterator on an Rogue Wave Server n-ary relation. More...

#include <javascript/serverside.h>

Public Member Functions

 IlsServerRelationIterator (IlsServerRelation rel)
 Builds an iterator from an server n-ary relation. More...
 
void close ()
 Closes the iterator.
 
IlsViewed next ()
 Moves the iterator forward, thereby changing the current property. More...
 
void reset ()
 Resets the iterator to the beginning of the list.
 

Public Attributes

IlsViewed current
 References the current IlsViewed or subclass object to which the iterator points.
 
Boolean eol
 True if the iterator is at the end of the relation.
 

Detailed Description

This Rogue Wave Views Script class is a proxy for an iterator on an Rogue Wave Server n-ary relation.

Note that you are not supposed to modify the server relation while the iterator is opened. If the underlying relation is a hash table, for instance, renaming the object from the iterator will raise an exception because an iterator is opened.

Warning
This class is a JavaScript class, not a C++ one.
See also
IlsServerRelation (script class).

Constructor & Destructor Documentation

◆ IlsServerRelationIterator()

javascript::IlsServerRelationIterator::IlsServerRelationIterator ( IlsServerRelation  rel)

Builds an iterator from an server n-ary relation.

Parameters
reln-ary relation on which iterate.

Member Function Documentation

◆ next()

IlsViewed javascript::IlsServerRelationIterator::next ( )

Moves the iterator forward, thereby changing the current property.

Returns
The current object or null if the iterator is at the end of the relation.