Zivid C++ API 2.12.0+6afd4961-1
|
List of acquisitions. Note that the Zivid SDK only supports a single acquisition per capture in 2D mode. More...
#include <Zivid/Settings2D.h>
Public Types | |
using | ValueType = std::vector<Settings2D::Acquisition> |
The type of the underlying value. | |
using | Iterator = std::vector<Settings2D::Acquisition>::iterator |
Iterator type for Acquisitions. | |
using | ConstIterator = std::vector<Settings2D::Acquisition>::const_iterator |
Constant iterator type for Acquisitions. | |
Public Member Functions | |
Acquisitions ()=default | |
Default constructor. | |
Acquisitions (std::vector< Settings2D::Acquisition > value) | |
Constructor. | |
Acquisitions (std::initializer_list< Settings2D::Acquisition > value) | |
Constructor. | |
const std::vector< Settings2D::Acquisition > & | value () const |
Get the value. | |
std::string | toString () const |
Get the value as string. | |
std::size_t | size () const noexcept |
Get the size of the list. | |
bool | isEmpty () const noexcept |
Check if the list is empty. | |
template<typename... Args> | |
void | emplaceBack (Args &&...args) |
Appends a new element to the end of the list. | |
Settings2D::Acquisition & | at (std::size_t pos) |
Returns a reference to the element at position pos in the list. | |
const Settings2D::Acquisition & | at (std::size_t pos) const |
Returns a const reference to the element at position pos in the list. | |
Settings2D::Acquisition & | operator[] (std::size_t pos) |
Returns a reference to the element at position pos in the list. | |
const Settings2D::Acquisition & | operator[] (std::size_t pos) const |
Returns a const reference to the element at position pos in the list. | |
template<typename F > | |
void | forEach (const F &f) |
Run the given function on each element in the list. | |
template<typename F > | |
void | forEach (const F &f) const |
Run the given function on each element in the list. | |
Iterator | begin () noexcept |
Returns an iterator to the first element of the list. | |
Iterator | end () noexcept |
Returns an iterator to the element following the last element of the list. | |
ConstIterator | begin () const noexcept |
Returns a constant iterator to the first element of the list. | |
ConstIterator | end () const noexcept |
Returns a constant iterator to the element following the last element of the list. | |
ConstIterator | cbegin () const noexcept |
Returns a constant iterator to the first element of the list. | |
ConstIterator | cend () const noexcept |
Returns a constant iterator to the element following the last element of the list. | |
bool | operator== (const Acquisitions &other) const |
Comparison operator. | |
bool | operator!= (const Acquisitions &other) const |
Comparison operator. | |
Static Public Member Functions | |
static constexpr Range< ValueType::size_type > | validSize () |
The valid sizes for Acquisitions. | |
Static Public Attributes | |
static constexpr DataModel::NodeType | nodeType = DataModel::NodeType::leafDataModelList |
The type of this node. | |
static constexpr const char * | path { "Acquisitions" } |
The full path for this value. | |
static constexpr const char * | name { "Acquisitions" } |
The name of this value. | |
static constexpr const char * | description |
The description for this value. | |
Friends | |
struct | DataModel::Detail::Befriend< Acquisitions > |
std::ostream & | operator<< (std::ostream &stream, const Acquisitions &value) |
Operator to serialize the value to a stream. | |
List of acquisitions. Note that the Zivid SDK only supports a single acquisition per capture in 2D mode.
using Zivid::Settings2D::Acquisitions::ConstIterator = std::vector<Settings2D::Acquisition>::const_iterator |
Constant iterator type for Acquisitions.
Iterator type for Acquisitions.
The type of the underlying value.
|
default |
Default constructor.
|
inlineexplicit |
Constructor.
|
inlineexplicit |
Constructor.
Settings2D::Acquisition & Zivid::Settings2D::Acquisitions::at | ( | std::size_t | pos | ) |
Returns a reference to the element at position pos
in the list.
This function checks that pos
is within the bounds (from 0 to size - 1). If pos
is not within bounds an exception is thrown.
const Settings2D::Acquisition & Zivid::Settings2D::Acquisitions::at | ( | std::size_t | pos | ) | const |
Returns a const reference to the element at position pos
in the list.
This function checks that pos
is within the bounds (from 0 to size - 1). If pos
is not within bounds an exception is thrown.
|
noexcept |
Returns a constant iterator to the first element of the list.
|
noexcept |
Returns an iterator to the first element of the list.
|
noexcept |
Returns a constant iterator to the first element of the list.
|
noexcept |
Returns a constant iterator to the element following the last element of the list.
|
inline |
Appends a new element to the end of the list.
The new element is constructed in-place. The provided arguments Args are forwarded to the constructor of Settings2D::Acquisition. Invoking this method may invalidate all references to elements in the list.
|
noexcept |
Returns a constant iterator to the element following the last element of the list.
|
noexcept |
Returns an iterator to the element following the last element of the list.
Run the given function on each element in the list.
Run the given function on each element in the list.
|
noexcept |
Check if the list is empty.
|
inline |
Comparison operator.
|
inline |
Comparison operator.
Settings2D::Acquisition & Zivid::Settings2D::Acquisitions::operator[] | ( | std::size_t | pos | ) |
Returns a reference to the element at position pos
in the list.
pos
must be within the bounds (from 0 to size - 1). No bounds checking is performed. at(size_t) will check the bounds and throw an exception if pos
it out of bounds.
const Settings2D::Acquisition & Zivid::Settings2D::Acquisitions::operator[] | ( | std::size_t | pos | ) | const |
Returns a const reference to the element at position pos
in the list.
pos
must be within the bounds (from 0 to size - 1). No bounds checking is performed. at(size_t) const will check the bounds and throw an exception if pos
it out of bounds.
|
noexcept |
Get the size of the list.
std::string Zivid::Settings2D::Acquisitions::toString | ( | ) | const |
Get the value as string.
|
inlinestaticconstexpr |
The valid sizes for Acquisitions.
const std::vector< Settings2D::Acquisition > & Zivid::Settings2D::Acquisitions::value | ( | ) | const |
Get the value.
|
friend |
|
friend |
Operator to serialize the value to a stream.
The description for this value.
The name of this value.
|
staticconstexpr |
The type of this node.
The full path for this value.