gstreamermm
1.10.0
|
A class used to retrieve multiple elements in a thread safe way. More...
#include <gstreamermm/iterator.h>
Public Member Functions | |
IteratorBasic () | |
Default constructor. More... | |
IteratorBasic (GstIterator* castitem, bool take_ownership=true) | |
Creates a Gst::IteratorBasic wrapper for a GstIterator object. More... | |
void | begin () |
Resynchronizes the iterator and moves the iterator to the first item. More... | |
CppType | operator* () const |
Dereferences the iterator and obtains the underlying object. More... | |
CppType* | operator-> () const |
Accesses underlying object member through the iterator. More... | |
IteratorBasic< CppType >& | operator++ () |
Prefix auto-increment operator. More... | |
IteratorBasic< CppType > | operator++ (int) |
Postfix auto-increment operator. More... | |
A class used to retrieve multiple elements in a thread safe way.
Gst::IteratorBasic iterates specifically through elements that are not reference counted. Gst::Iterator is used for iterating through reference counted objects.
Gst::IteratorBasic< CppType >::IteratorBasic | ( | ) |
Default constructor.
|
explicit |
Creates a Gst::IteratorBasic wrapper for a GstIterator object.
The underlying castitem will be freed with the Gst::IteratorBasic destruction if a take_ownership value of true is given.
castitem | The C instance to wrap. |
take_ownership | Whether to take over the underlying C object. If true, C object is freed when wrapper is destroyed. |
void Gst::IteratorBasic< CppType >::begin | ( | ) |
Resynchronizes the iterator and moves the iterator to the first item.
std::runtime_error | (if a Gst::ITERATOR_ERROR is encountered or if a concurrent update to the iterator occurs while it is advanced to the first element). |
CppType Gst::IteratorBasic< CppType >::operator* | ( | ) | const |
Dereferences the iterator and obtains the underlying object.
IteratorBasic<CppType>& Gst::IteratorBasic< CppType >::operator++ | ( | ) |
Prefix auto-increment operator.
It advances to the next item in the iterator. It is faster than the postfix operator.
std::runtime_error | (if a Gst::ITERATOR_ERROR is encountered or if a concurrent update to the iterator occurs while it iterates). |
IteratorBasic<CppType> Gst::IteratorBasic< CppType >::operator++ | ( | int | ) |
Postfix auto-increment operator.
It advances to the next item in the iterator.
std::runtime_error | (if a Gst::ITERATOR_ERROR is encountered or if a concurrent update to the iterator occurs while it iterates). |
CppType* Gst::IteratorBasic< CppType >::operator-> | ( | ) | const |
Accesses underlying object member through the iterator.