NAME
IPC::PrettyPipe::Queue - A simple queue
VERSION
version 0.13
SYNOPSIS
$q = IPC::PrettyPipe::Queue->new( elements => [...] );
$q->push( $elem );
$elements = $q->elements;
$is_q_empty = $q->empty;
DESCRIPTION
This module provides a simple queue for objects which perform the IPC::PrettyPipe::Queue::Element role. No object should be in more than one queue at a time.
ATTRIBUTES
elements
The initial set of queue elements. This should be an arrayref of objects which consume the IPC::PrettyPipe::Queue::Element role.x
METHODS
The following methods are available:
new
$q = IPC::PrettyPipe::Queue->new( %attributes );
Construct a new queue. See "ATTRIBUTES" for the available attributes.
elements
$elements = $q->elements;
Returns an arrayref containing the queue's elements.
empty
$is_q_empty = $q->empty;
Returns true if there are no elements in the queue.
nelements
$nelements = $q->nelements;
Returns the number of elements in the queue.
sub nelements { scalar @{ $_[0]->elements } }
push
$q->push( $element );
Push the element on the end of the queue. The element must perform the IPC::PrettyPipe::Queue::Element role.
COPYRIGHT & LICENSE
Copyright 2014 Smithsonian Astrophysical Observatory
This software is released under the GNU General Public License. You may find a copy at
http://www.fsf.org/copyleft/gpl.html
AUTHOR
Diab Jerius <djerius@cfa.harvard.edu>
SUPPORT
Bugs
Please report any bugs or feature requests to bug-ipc-prettypipe@rt.cpan.org or through the web interface at: https://rt.cpan.org/Public/Dist/Display.html?Name=IPC-PrettyPipe
Source
Source is available at
https://gitlab.com/djerius/ipc-prettypipe
and may be cloned from
https://gitlab.com/djerius/ipc-prettypipe.git
SEE ALSO
Please see those modules/websites for more information related to this module.
AUTHOR
Diab Jerius <djerius@cpan.org>
COPYRIGHT AND LICENSE
This software is Copyright (c) 2018 by Smithsonian Astrophysical Observatory.
This is free software, licensed under:
The GNU General Public License, Version 3, June 2007