Justin Hunter > Reaction-0.002002 > Reaction::InterfaceModel::Collection

Download:
Reaction-0.002002.tar.gz

Dependencies

Annotate this POD

CPAN RT

New  1
Open  1
Stalled  1
View/Report Bugs
Source   Latest Release: Reaction-0.002005

NAME ^

Reaction::InterfaceModel::Collection - Generic collections of Reaction::InterfaceModel::Objects

DESCRIPTION ^

The base class for InterfaceModel::Collections. The functionality implemented here is minimal and it is expected that specialized collections be built by sublclassing this and exploiting the roles system.

METHODS ^

members

Returns a list containing all known members of the collection

add_member $object

Will add the object passed to the collection

remove_member $object

Removed the object passed from the collection, if present

count_members

Returns the number of objects in the collection.

ATTRIBUTES ^

_collection_store

Read-write & lazy_build. Holds the arrayref where the collection of objects is presently stored. Has a clearer of _clear_collection_store and a predicate of _has_collection_store.

PRIVATE METHODS ^

_build__collection_store

Builder method for attribute_collection_store, returns an empty arrayref

AUTHORS ^

See Reaction::Class for authors.

LICENSE ^

See Reaction::Class for the license.

syntax highlighting: