|
avcpp 3.1.0
Wrapper for the FFmpeg that simplify usage from C++ projects.
|
Array of Dictinaries wrapper. More...
#include <dictionary.h>
Public Member Functions | |
| DictionaryArray (std::initializer_list< Dictionary > dicts) | |
| Build an array from a list of dictionaries. | |
| DictionaryArray (AVDictionary **dicts, size_t count, bool takeOwning=true) | |
| Wrap an array of raw dictionaries. | |
| DictionaryArray (const DictionaryArray &rhs) | |
| Copy the array; each dictionary is copied deeply. | |
| DictionaryArray & | operator= (const DictionaryArray &rhs) |
| Assign from another array; each dictionary is copied deeply. | |
| DictionaryArray (DictionaryArray &&)=default | |
| Move the array; the source is left empty. | |
| DictionaryArray & | operator= (DictionaryArray &&)=default |
| Move assignment; the source is left empty. | |
| void | assign (AVDictionary **dicts, size_t count, bool takeOwning=true) |
| Replace the contents with an array of raw dictionaries. | |
| void | reserve (size_t size) |
| Reserve storage for the given number of dictionaries. | |
| void | resize (size_t size) |
| Resize the array, adding empty dictionaries at the end. | |
| size_t | size () const |
| Number of dictionaries in the array. | |
| void | pushBack (const Dictionary &dict) |
| Append a copy of a dictionary. | |
| void | pushBack (Dictionary &&dict) |
| Append a dictionary, moving it. | |
| const Dictionary & | operator[] (size_t index) const |
| Dictionary by index. | |
| Dictionary & | operator[] (size_t index) |
| Dictionary by index, mutable. | |
| const Dictionary & | at (size_t index) const |
| Dictionary by index with bounds checking. | |
| Dictionary & | at (size_t index) |
| Dictionary by index with bounds checking. | |
| const AVDictionary *const * | raws () const |
| The raw array, read-only. | |
| AVDictionary ** | raws () |
| The raw array, mutable. | |
| AVDictionary ** | release () |
| Give up ownership of the dictionaries. | |
| void | swap (DictionaryArray &rhs) |
| Exchange the contents of two arrays. | |
Some functions accepts array of dictionaries. This class is a simple proxy to compose such arrays.
It is not iterator-friendly and must not be used generally.
| av::DictionaryArray::DictionaryArray | ( | std::initializer_list< Dictionary > | dicts | ) |
| dicts | the dictionaries; they are copied into the array |
| av::DictionaryArray::DictionaryArray | ( | AVDictionary ** | dicts, |
| size_t | count, | ||
| bool | takeOwning = true ) |
| dicts | the array; it is copied, the dictionaries are not |
| count | number of elements |
| takeOwning | true frees the dictionaries on destruction |
| av::DictionaryArray::DictionaryArray | ( | const DictionaryArray & | rhs | ) |
| rhs | the array to copy |
| void av::DictionaryArray::assign | ( | AVDictionary ** | dicts, |
| size_t | count, | ||
| bool | takeOwning = true ) |
| dicts | the array to wrap; existing contents are released |
| count | number of elements |
| takeOwning | true frees the dictionaries on destruction |
| Dictionary & av::DictionaryArray::at | ( | size_t | index | ) |
| index | zero-based index; must be less than size() |
| const Dictionary & av::DictionaryArray::at | ( | size_t | index | ) | const |
| index | zero-based index; must be less than size() |
| DictionaryArray & av::DictionaryArray::operator= | ( | const DictionaryArray & | rhs | ) |
| rhs | the array to copy |
|
default |
| Dictionary & av::DictionaryArray::operator[] | ( | size_t | index | ) |
| index | zero-based index |
| const Dictionary & av::DictionaryArray::operator[] | ( | size_t | index | ) | const |
| index | zero-based index |
| void av::DictionaryArray::pushBack | ( | const Dictionary & | dict | ) |
| dict | the dictionary to copy into the array |
| void av::DictionaryArray::pushBack | ( | Dictionary && | dict | ) |
| dict | the dictionary to move into the array |
| AVDictionary ** av::DictionaryArray::raws | ( | ) |
| const AVDictionary *const * av::DictionaryArray::raws | ( | ) | const |
| AVDictionary ** av::DictionaryArray::release | ( | ) |
| void av::DictionaryArray::reserve | ( | size_t | size | ) |
| size | expected element count |
| void av::DictionaryArray::resize | ( | size_t | size | ) |
| size | the new element count |
| size_t av::DictionaryArray::size | ( | ) | const |
| void av::DictionaryArray::swap | ( | DictionaryArray & | rhs | ) |
| rhs | the array to swap with |