|
zxing-cpp v3.0
|
#include <BarcodeFormat.h>
Public Types | |
| using | value_type = typename std::vector<BarcodeFormat>::value_type |
| using | pointer = typename std::vector<BarcodeFormat>::pointer |
Public Member Functions | |
| BarcodeFormats ()=default | |
| BarcodeFormats (BarcodeFormat f) | |
| template<std::size_t N> | |
| BarcodeFormats (BarcodeFormatArray< N > formats) | |
| BarcodeFormats (std::vector< BarcodeFormat > &&formats) | |
| BarcodeFormats (std::string_view str) | |
| BarcodeFormats (const BarcodeFormats &)=default | |
| BarcodeFormats (BarcodeFormats &&)=default | |
| BarcodeFormats & | operator= (const BarcodeFormats &)=default |
| BarcodeFormats & | operator= (BarcodeFormats &&)=default |
| bool | operator== (const BarcodeFormats &o) const noexcept |
| bool | operator!= (const BarcodeFormats &o) const noexcept |
| auto | begin () const noexcept |
| auto | end () const noexcept |
| auto | data () const noexcept |
| bool | empty () const noexcept |
| int | size () const noexcept |
| BarcodeFormats | operator& (const BarcodeFormats &other) |
Static Public Member Functions | |
| static BarcodeFormats | list (const BarcodeFormats &filter={}) |
A small container representing a collection of BarcodeFormat values.
BarcodeFormats encapsulates an ordered collection of BarcodeFormat values and provides convenient construction, iteration, and set-like operations.
General behavior and invariants:
| using ZXing::BarcodeFormats::value_type = typename std::vector<BarcodeFormat>::value_type |
| using ZXing::BarcodeFormats::pointer = typename std::vector<BarcodeFormat>::pointer |
|
default |
|
inline |
|
inline |
Constructs a collection from a compile-time array of BarcodeFormat values.
|
inline |
|
explicit |
Constructs a collection from a textual representation (e.g. a comma-separated list of format identifiers).
|
default |
|
default |
|
default |
|
default |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
| BarcodeFormats ZXing::BarcodeFormats::operator& | ( | const BarcodeFormats & | other | ) |
Returns a BarcodeFormats containing the intersection of this collection and other.
|
static |
Returns a list of available/supported barcode formats, optionally filtered by the provided formats. e.g. BarcodeFormats::list(BarcodeFormat::AllReadable);