dncollections : dylan.NET.Collections Namespace

Item Class

An item that can be placed in an ALList, ALQueue or ALStack.

Syntax

public class Item

Remarks

Requirements

Namespace: dylan.NET.Collections
Assembly: dncollections (in dncollections.dll)
Assembly Versions: 11.2.8.4, 11.2.8.5

Members

See Also: Inherited members from object.

Public Constructors

Item ()
Constructs a new Item with a null value.
Constructs a new Item having the specified Value.

Public Fields

Index int . The index of the slot occupied by this Item inside the ItemArray of a collection.
Next Item . The Next Item.
Previous Item . The Previous Item.
Value object . The object that occupies this Item.

Public Methods

GoNext () : Item
Returns the Item that occurs after this one in the collection.
GoPrevious () : Item
Returns the Item that occurs before this one in the collection.
HasNext () : bool
Returns if there is a next Item or not.
HasPrevious () : bool
Returns if there is a previous Item or not.
MakeCopy () : Item
Make a copy of this Item.
static
MakeCopy (Item) : Item
Make a copy of the given Item.

Member Details

Item Constructor

Constructs a new Item with a null value.

Syntax

public Item ()

Remarks

The value of the Item is set to null. Set the Value field or use the other constructor.

Requirements

Namespace: dylan.NET.Collections
Assembly: dncollections (in dncollections.dll)
Assembly Versions: 11.2.8.4, 11.2.8.5

Item Constructor

Constructs a new Item having the specified Value.

Syntax

public Item (object o)

Parameters

o
The value of the Item.

Remarks

Requirements

Namespace: dylan.NET.Collections
Assembly: dncollections (in dncollections.dll)
Assembly Versions: 11.2.8.4, 11.2.8.5

GoNext Method

Returns the Item that occurs after this one in the collection.

Syntax

public Item GoNext ()

Returns

Null if there is no next Item else returns the Item that is next.

Remarks

Use HasNext() to see if there is a next Item.

Requirements

Namespace: dylan.NET.Collections
Assembly: dncollections (in dncollections.dll)
Assembly Versions: 11.2.8.4, 11.2.8.5

GoPrevious Method

Returns the Item that occurs before this one in the collection.

Syntax

public Item GoPrevious ()

Returns

Null if there is no previous Item else returns the Item that is before.

Remarks

Use HasPrevious() to see if there is a previous Item.

Requirements

Namespace: dylan.NET.Collections
Assembly: dncollections (in dncollections.dll)
Assembly Versions: 11.2.8.4, 11.2.8.5

HasNext Method

Returns if there is a next Item or not.

Syntax

public bool HasNext ()

Returns

True if there is a next Item else false.

Remarks

Requirements

Namespace: dylan.NET.Collections
Assembly: dncollections (in dncollections.dll)
Assembly Versions: 11.2.8.4, 11.2.8.5

HasPrevious Method

Returns if there is a previous Item or not.

Syntax

public bool HasPrevious ()

Returns

True if there is a previous Item else false.

Remarks

Requirements

Namespace: dylan.NET.Collections
Assembly: dncollections (in dncollections.dll)
Assembly Versions: 11.2.8.4, 11.2.8.5

Index Field

The index of the slot occupied by this Item inside the ItemArray of a collection.

Syntax

public int Index

Remarks

Is equal to -1 if the Item is not in a collection.

Requirements

Namespace: dylan.NET.Collections
Assembly: dncollections (in dncollections.dll)
Assembly Versions: 11.2.8.4, 11.2.8.5

MakeCopy Method

Make a copy of this Item.

Syntax

public Item MakeCopy ()

Returns

A new Item that has the same value as this one.

Remarks

Requirements

Namespace: dylan.NET.Collections
Assembly: dncollections (in dncollections.dll)
Assembly Versions: 11.2.8.4, 11.2.8.5

MakeCopy Method

Make a copy of the given Item.

Syntax

public static Item MakeCopy (Item ite)

Parameters

ite
The Item to copy.

Returns

A new Item that has the same value as the given Item.

Remarks

Requirements

Namespace: dylan.NET.Collections
Assembly: dncollections (in dncollections.dll)
Assembly Versions: 11.2.8.4, 11.2.8.5

Next Field

The Next Item.

Syntax

public Item Next

Remarks

Is null if this Item has no next Item or if it is not in a collection.

Requirements

Namespace: dylan.NET.Collections
Assembly: dncollections (in dncollections.dll)
Assembly Versions: 11.2.8.4, 11.2.8.5

Previous Field

The Previous Item.

Syntax

public Item Previous

Remarks

Is null if this Item has no previous Item or if it is not in a collection.

Requirements

Namespace: dylan.NET.Collections
Assembly: dncollections (in dncollections.dll)
Assembly Versions: 11.2.8.4, 11.2.8.5

Value Field

The object that occupies this Item.

Syntax

public object Value

Remarks

Requirements

Namespace: dylan.NET.Collections
Assembly: dncollections (in dncollections.dll)
Assembly Versions: 11.2.8.4, 11.2.8.5