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


EO documentation  | view source Contained in the EO distribution.

Index


NAME

Top

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

SYNOPSIS

Top

DESCRIPTION

Top

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

EXCEPTIONS

Top

EO::Error::InvalidParameters

Thrown when invalid parameters are passed to a method.

INHERITANCE

Top

EO::Collection inherits from EO.

CONSTRUCTOR

Top

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

METHODS

Top

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

Top

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

Top

EO::Array, EO::Hash

AUTHOR

Top

James A. Duncan <jduncan@fotango.com

COPYRIGHT

Top


EO documentation  | view source Contained in the EO distribution.