Zivid C++ API 2.14.0+e4a0c4a9-1
Zivid::Settings::Acquisitions Class Reference

List of Acquisition objects. More...

#include <Zivid/Settings.h>

Public Types

using ValueType = std::vector<Settings::Acquisition>
 The type of the underlying value.
 
using Iterator = std::vector<Settings::Acquisition>::iterator
 Iterator type for Acquisitions.
 
using ConstIterator = std::vector<Settings::Acquisition>::const_iterator
 Constant iterator type for Acquisitions.
 

Public Member Functions

 Acquisitions ()=default
 Default constructor.
 
 Acquisitions (std::vector< Settings::Acquisition > value)
 Constructor.
 
 Acquisitions (std::initializer_list< Settings::Acquisition > value)
 Constructor.
 
const std::vector< Settings::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.
 
Settings::Acquisitionat (std::size_t pos)
 Returns a reference to the element at position pos in the list.
 
const Settings::Acquisitionat (std::size_t pos) const
 Returns a const reference to the element at position pos in the list.
 
Settings::Acquisitionoperator[] (std::size_t pos)
 Returns a reference to the element at position pos in the list.
 
const Settings::Acquisitionoperator[] (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 { R"description(List of Acquisition objects.)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.
 

Detailed Description

List of Acquisition objects.

Member Typedef Documentation

◆ ConstIterator

Constant iterator type for Acquisitions.

◆ Iterator

Iterator type for Acquisitions.

◆ ValueType

The type of the underlying value.

Constructor & Destructor Documentation

◆ Acquisitions() [1/3]

Zivid::Settings::Acquisitions::Acquisitions ( )
default

Default constructor.

◆ Acquisitions() [2/3]

Zivid::Settings::Acquisitions::Acquisitions ( std::vector< Settings::Acquisition > value)
inlineexplicit

Constructor.

◆ Acquisitions() [3/3]

Zivid::Settings::Acquisitions::Acquisitions ( std::initializer_list< Settings::Acquisition > value)
inlineexplicit

Constructor.

Member Function Documentation

◆ at() [1/2]

Settings::Acquisition & Zivid::Settings::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.

◆ at() [2/2]

const Settings::Acquisition & Zivid::Settings::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.

◆ begin() [1/2]

ConstIterator Zivid::Settings::Acquisitions::begin ( ) const
noexcept

Returns a constant iterator to the first element of the list.

◆ begin() [2/2]

Iterator Zivid::Settings::Acquisitions::begin ( )
noexcept

Returns an iterator to the first element of the list.

◆ cbegin()

ConstIterator Zivid::Settings::Acquisitions::cbegin ( ) const
noexcept

Returns a constant iterator to the first element of the list.

◆ cend()

ConstIterator Zivid::Settings::Acquisitions::cend ( ) const
noexcept

Returns a constant iterator to the element following the last element of the list.

◆ emplaceBack()

template<typename... Args>
void Zivid::Settings::Acquisitions::emplaceBack ( Args &&... args)
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 Settings::Acquisition. Invoking this method may invalidate all references to elements in the list.

◆ end() [1/2]

ConstIterator Zivid::Settings::Acquisitions::end ( ) const
noexcept

Returns a constant iterator to the element following the last element of the list.

◆ end() [2/2]

Iterator Zivid::Settings::Acquisitions::end ( )
noexcept

Returns an iterator to the element following the last element of the list.

◆ forEach() [1/2]

template<typename F >
void Zivid::Settings::Acquisitions::forEach ( const F & f)
inline

Run the given function on each element in the list.

◆ forEach() [2/2]

template<typename F >
void Zivid::Settings::Acquisitions::forEach ( const F & f) const
inline

Run the given function on each element in the list.

◆ isEmpty()

bool Zivid::Settings::Acquisitions::isEmpty ( ) const
noexcept

Check if the list is empty.

◆ operator!=()

bool Zivid::Settings::Acquisitions::operator!= ( const Acquisitions & other) const
inline

Comparison operator.

◆ operator==()

bool Zivid::Settings::Acquisitions::operator== ( const Acquisitions & other) const
inline

Comparison operator.

◆ operator[]() [1/2]

Settings::Acquisition & Zivid::Settings::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.

◆ operator[]() [2/2]

const Settings::Acquisition & Zivid::Settings::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.

◆ size()

std::size_t Zivid::Settings::Acquisitions::size ( ) const
noexcept

Get the size of the list.

◆ toString()

std::string Zivid::Settings::Acquisitions::toString ( ) const

Get the value as string.

◆ validSize()

static constexpr Range< ValueType::size_type > Zivid::Settings::Acquisitions::validSize ( )
inlinestaticconstexpr

The valid sizes for Acquisitions.

◆ value()

const std::vector< Settings::Acquisition > & Zivid::Settings::Acquisitions::value ( ) const

Get the value.

Friends And Related Symbol Documentation

◆ DataModel::Detail::Befriend< Acquisitions >

friend struct DataModel::Detail::Befriend< Acquisitions >
friend

◆ operator<<

std::ostream & operator<< ( std::ostream & stream,
const Acquisitions & value )
friend

Operator to serialize the value to a stream.

Member Data Documentation

◆ description

const char* Zivid::Settings::Acquisitions::description { R"description(List of Acquisition objects.)description" }
staticconstexpr

The description for this value.

◆ name

const char* Zivid::Settings::Acquisitions::name { "Acquisitions" }
staticconstexpr

The name of this value.

◆ nodeType

DataModel::NodeType Zivid::Settings::Acquisitions::nodeType = DataModel::NodeType::leafDataModelList
staticconstexpr

The type of this node.

◆ path

const char* Zivid::Settings::Acquisitions::path { "Acquisitions" }
staticconstexpr

The full path for this value.


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