SparkseePython  6.0.2
Public Member Functions | List of all members
sparksee.OIDList Class Reference

Sparksee object identifier list. More...

Public Member Functions

def clear (self)
 Clears the list.
 
def __init__ (self, num_invalid_oids)
 Constructor. More...
 
def __init__ (self)
 Constructor. More...
 
def __iter__ (self)
 Gets a new TypeListIterator. More...
 
def set (self, pos, oid)
 Sets a Sparksee object identifier at the specified position of the list. More...
 
def iterator (self)
 Gets a new OIDListIterator. More...
 
def add (self, attr)
 Adds a Sparksee object identifier at the end of the list. More...
 
def count (self)
 Number of elements in the list. More...
 

Detailed Description

Sparksee object identifier list.

It stores a Sparksee object identifier list.

Use OIDListIterator to access all elements into this collection.

Author
Sparsity Technologies http://www.sparsity-technologies.com

Constructor & Destructor Documentation

def sparksee.OIDList.__init__ (   self,
  num_invalid_oids 
)

Constructor.

This creates a list with N invalid oids.

Parameters
num_invalid_oids[in] The number of invalid oids added to the list.

Referenced by sparksee.OIDList.__init__().

def sparksee.OIDList.__init__ (   self)

Constructor.

This creates an empty list.

References sparksee.OIDList.__init__().

Member Function Documentation

def sparksee.OIDList.__iter__ (   self)

Gets a new TypeListIterator.

Returns
TypeListIterator instance
def sparksee.OIDList.add (   self,
  attr 
)

Adds a Sparksee object identifier at the end of the list.

Parameters
attr[in] Sparksee object identifier.
def sparksee.OIDList.count (   self)

Number of elements in the list.

Returns
Number of elements in the list.
def sparksee.OIDList.iterator (   self)

Gets a new OIDListIterator.

Returns
OIDListIterator instance.
def sparksee.OIDList.set (   self,
  pos,
  oid 
)

Sets a Sparksee object identifier at the specified position of the list.

Parameters
pos[in] List position [0..Count()-1].
oid[in] Sparksee object identifier.