get_set

Usage    - $set->get_set()
Returns  - this set (CCO::Util::CCO_ID_Set) of CCO IDs
Args     - none
Function - returns this set

add

Usage    - $set->add($cco_id)
Returns  - the added id (CCO::Util::CCO_ID)
Args     - the CCO id (CCO::Util::CCO_ID) to be added
Function - adds a CCO ID to this set

add_all

Usage    - $set->add_all($id1, $id2, ...)
Returns  - the last added id (CCO::Util::CCO_ID)
Args     - the id(s) (CCO::Util::CCO_ID) to be added
Function - adds a series of CCO_IDs to this set

add_as_string

Usage    - $set->add_as_string($id)
Returns  - the added id (CCO::Util::CCO_ID)
Args     - the CCO id (string) to be added
Function - adds an CCO_ID to this set

add_all_as_string

Usage    - $set->add_all_as_string($id1, $id2, ...)
Returns  - the last added id (CCO::Util::CCO_ID)
Args     - the id(s) (strings) to be added
Function - adds a series of CCO_IDs to this set

get_new_id

Usage    - $set->get_new_id($id)
Returns  - a new CCO id (string)
Args     - none
Function - returns a new CCO ID as string

contains

Usage    - $set->contains($id)
Returns  - 1 (true) or 0 (false)
Args     - the ID (CCO::Util::CCO_ID) to look up
Function - tells if the given ID is in this set

size

Usage    - $set->size()
Returns  - the size of this set
Args     - none
Function - the size of this set

clear

Usage    - $set->clear()
Returns  - clears this set
Args     - none
Function - clears this set

is_empty

Usage    - $set->is_empty()
Returns  - 1 (true) or 0 (false)
Args     - none
Function - tells if this set is empty

equals

Usage    - $set->equals($other_set)
Returns  - 1 (true) or 0 (false)
Args     - the other set to check with
Function - tells if this set is equal to the given one

NAME

CCO::Util::CCO_ID_Set - class implementing a set of CCO::Util::CCO_ID objects.

SYNOPSIS

use CCO::Util::CCO_ID_Set;

$cco_id_set = CCO::Util::CCO_ID_Set -> new ();

$size = $cco_id_set -> size;

if ($cco_id_set->add("CCO:C1234567")) { ... } $new_id = $cco_id_set->get_new_id("CCO", "C");

DESCRIPTION

The CCO::Util::CCO_ID_Set class implements a Cell-Cycle Ontology identifiers set.

AUTHOR

Erick Antezana, <erant@psb.ugent.be>

COPYRIGHT AND LICENSE

Copyright (C) 2006 by erant

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.8.7 or, at your option, any later version of Perl 5 you may have available.