Fruit DSKit
Common data structures for Fruit framework
 All Data Structures Namespaces Files Functions
Public Member Functions
ArraySet Class Reference
Inheritance diagram for ArraySet:
Set Collection

Public Member Functions

 __construct ()
 
 has ($data)
 detect if data is in the set More...
 
 add ($data)
 add one data into the set, no-op if exists More...
 
 del ($data)
 delete data from the set, no-op if non-exists More...
 
 len ()
 size of the collection More...
 
 toArray ()
 convert to array More...
 
 iterator ()
 

Detailed Description

An array based set implementation

Definition at line 8 of file ArraySet.php.

Constructor & Destructor Documentation

__construct ( )

Definition at line 12 of file ArraySet.php.

Member Function Documentation

add (   $data)

add one data into the set, no-op if exists

Implements Set.

Definition at line 22 of file ArraySet.php.

del (   $data)

delete data from the set, no-op if non-exists

Implements Set.

Definition at line 27 of file ArraySet.php.

has (   $data)

detect if data is in the set

Implements Set.

Definition at line 17 of file ArraySet.php.

iterator ( )

Returns an iterator to iterate this collection

Implements Collection.

Definition at line 42 of file ArraySet.php.

len ( )

size of the collection

Implements Collection.

Definition at line 32 of file ArraySet.php.

toArray ( )

convert to array

Implements Collection.

Definition at line 37 of file ArraySet.php.


The documentation for this class was generated from the following file: