zxing-cpp v3.0
Loading...
Searching...
No Matches
ZXing::BarcodeFormats Class Reference

#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
BarcodeFormatsoperator= (const BarcodeFormats &)=default
BarcodeFormatsoperator= (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={})

Detailed Description

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:

  • The internal representation is kept in a canonical form (sorted, no duplicates) using normalize().
  • The API exposes read-only access and iteration.

Member Typedef Documentation

◆ value_type

using ZXing::BarcodeFormats::value_type = typename std::vector<BarcodeFormat>::value_type

◆ pointer

using ZXing::BarcodeFormats::pointer = typename std::vector<BarcodeFormat>::pointer

Constructor & Destructor Documentation

◆ BarcodeFormats() [1/7]

ZXing::BarcodeFormats::BarcodeFormats ( )
default

◆ BarcodeFormats() [2/7]

ZXing::BarcodeFormats::BarcodeFormats ( BarcodeFormat f)
inline

◆ BarcodeFormats() [3/7]

template<std::size_t N>
ZXing::BarcodeFormats::BarcodeFormats ( BarcodeFormatArray< N > formats)
inline

Constructs a collection from a compile-time array of BarcodeFormat values.

@ EAN13
Definition BarcodeFormat.h:100
@ QRCode
Definition BarcodeFormat.h:100

◆ BarcodeFormats() [4/7]

ZXing::BarcodeFormats::BarcodeFormats ( std::vector< BarcodeFormat > && formats)
inline

◆ BarcodeFormats() [5/7]

ZXing::BarcodeFormats::BarcodeFormats ( std::string_view str)
explicit

Constructs a collection from a textual representation (e.g. a comma-separated list of format identifiers).

◆ BarcodeFormats() [6/7]

ZXing::BarcodeFormats::BarcodeFormats ( const BarcodeFormats & )
default

◆ BarcodeFormats() [7/7]

ZXing::BarcodeFormats::BarcodeFormats ( BarcodeFormats && )
default

Member Function Documentation

◆ operator=() [1/2]

BarcodeFormats & ZXing::BarcodeFormats::operator= ( const BarcodeFormats & )
default

◆ operator=() [2/2]

BarcodeFormats & ZXing::BarcodeFormats::operator= ( BarcodeFormats && )
default

◆ operator==()

bool ZXing::BarcodeFormats::operator== ( const BarcodeFormats & o) const
inlinenoexcept

◆ operator!=()

bool ZXing::BarcodeFormats::operator!= ( const BarcodeFormats & o) const
inlinenoexcept

◆ begin()

auto ZXing::BarcodeFormats::begin ( ) const
inlinenoexcept

◆ end()

auto ZXing::BarcodeFormats::end ( ) const
inlinenoexcept

◆ data()

auto ZXing::BarcodeFormats::data ( ) const
inlinenoexcept

◆ empty()

bool ZXing::BarcodeFormats::empty ( ) const
inlinenoexcept

◆ size()

int ZXing::BarcodeFormats::size ( ) const
inlinenoexcept

◆ operator&()

BarcodeFormats ZXing::BarcodeFormats::operator& ( const BarcodeFormats & other)

Returns a BarcodeFormats containing the intersection of this collection and other.

◆ list()

BarcodeFormats ZXing::BarcodeFormats::list ( const BarcodeFormats & filter = {})
static

Returns a list of available/supported barcode formats, optionally filtered by the provided formats. e.g. BarcodeFormats::list(BarcodeFormat::AllReadable);


The documentation for this class was generated from the following file: