++ed by:

1 non-PAUSE user.

James A. Duncan
and 1 contributors

NAME

EO::Collection - abstract base class for Collection-type objects

SYNOPSIS

DESCRIPTION

EO::Collection is an base class for things that want to implement a collection class.

EXCEPTIONS

EO::Error::InvalidParameters

Thrown when invalid parameters are passed to a method.

INHERITANCE

EO::Collection inherits from EO.

CONSTRUCTOR

EO::Collection provides no constructor beyond what its parent class provides.

METHODS

element

This gets and sets the raw Perl primitive that is going to be used for storage. An attempt to set this to something other than a reference will result in a EO::Error::InvalidParameters exception being thrown.

as_string

Returns a string representation of the object useful for debugging purposes.

ABSTRACT METHODS

delete( KEY )

Abstract method that needs to be implemented in child classes. Should delete the thing located at element KEY.

object_at_index( KEY [, THING] )

Abstract method that needs to be implemented in child classes. With one argument should return the thing located at element KEY. With two arguments it should place THING in location KEY.

SEE ALSO

EO::Array, EO::Hash

AUTHOR

James A. Duncan <jduncan@fotango.com

COPYRIGHT

Copyright 2003 Fotango Ltd.