Reaction::InterfaceModel::Collection - Generic collections of


Reaction documentation  | view source Contained in the Reaction distribution.

Index


NAME

Top

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

DESCRIPTION

Top

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

Top

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

Top

_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

Top

_build__collection_store

Builder method for attribute_collection_store, returns an empty arrayref

AUTHORS

Top

See Reaction::Class for authors.

LICENSE

Top

See Reaction::Class for the license.


Reaction documentation  | view source Contained in the Reaction distribution.