Rechercher une page de manuel
GStreamer::Iterator.3pm
Langue: en
Version: 2009-03-02 (fedora - 05/07/09)
Section: 3 (Bibliothèques de fonctions)
NAME
GStreamer::IteratorSYNOPSIS
foreach ($bin -> iterate_elements()) { do_something($_); } my $iter = $bin -> iterate_elements(); while ($_ = $iter -> next()) { do_something($_); }
DESCRIPTION
There are two ways to use a GStreamer::Iterator. The first is to use normal Perl looping stuff:foreach ($bin -> iterate_elements()) { do_something($_); }
This is very elegant and Perl-ish, but may also be a bit slower.
The alternative is to use the next method:
my $iter = $bin -> iterate_elements(); while ($_ = $iter -> next()) { do_something($_); }
This is hardly beautiful but avoids looping over the elements unnecessarily and is thus faster.
METHODS
scalar = $iter->next
scalar = $iter->next
SEE ALSO
GStreamerCOPYRIGHT
Copyright (C) 2005-2008 by the gtk2-perl team.This software is licensed under the LGPL. See GStreamer for a full notice.
Contenus ©2006-2024 Benjamin Poulain
Design ©2006-2024 Maxime Vantorre