The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

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.