Zivid C++ API 2.9.0+4dbba385-1
Defining the Future of 3D Machine Vision
Public Types | Public Member Functions | Static Public Member Functions | Static Public Attributes | Friends | List of all members
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 More...
 
using Iterator = std::vector< Settings::Acquisition >::iterator
 Iterator type for Acquisitions More...
 
using ConstIterator = std::vector< Settings::Acquisition >::const_iterator
 Constant iterator type for Acquisitions More...
 

Public Member Functions

 Acquisitions ()=default
 Default constructor More...
 
 Acquisitions (std::vector< Settings::Acquisition > value)
 Constructor More...
 
 Acquisitions (std::initializer_list< Settings::Acquisition > value)
 Constructor More...
 
const std::vector< Settings::Acquisition > & value () const
 Get the value More...
 
std::string toString () const
 Get the value as string More...
 
std::size_t size () const noexcept
 Get the size of the list More...
 
bool isEmpty () const noexcept
 Check if the list is empty More...
 
template<typename... Args>
void emplaceBack (Args &&...args)
 Appends a new element to the end of the list More...
 
Settings::Acquisitionat (std::size_t pos)
 Returns a reference to the element at position pos in the list More...
 
const Settings::Acquisitionat (std::size_t pos) const
 Returns a const reference to the element at position pos in the list More...
 
Settings::Acquisitionoperator[] (std::size_t pos)
 Returns a reference to the element at position pos in the list More...
 
const Settings::Acquisitionoperator[] (std::size_t pos) const
 Returns a const reference to the element at position pos in the list More...
 
template<typename F >
void forEach (const F &f)
 Run the given function on each element in the list More...
 
template<typename F >
void forEach (const F &f) const
 Run the given function on each element in the list More...
 
Iterator begin () noexcept
 Returns an iterator to the first element of the list More...
 
Iterator end () noexcept
 Returns an iterator to the element following the last element of the list More...
 
ConstIterator begin () const noexcept
 Returns a constant iterator to the first element of the list More...
 
ConstIterator end () const noexcept
 Returns a constant iterator to the element following the last element of the list More...
 
ConstIterator cbegin () const noexcept
 Returns a constant iterator to the first element of the list More...
 
ConstIterator cend () const noexcept
 Returns a constant iterator to the element following the last element of the list More...
 
bool operator== (const Acquisitions &other) const
 Comparison operator More...
 
bool operator!= (const Acquisitions &other) const
 Comparison operator More...
 

Static Public Member Functions

static constexpr Range< ValueType::size_type > validSize ()
 The valid sizes for Acquisitions More...
 

Static Public Attributes

static constexpr DataModel::NodeType nodeType = DataModel::NodeType::leafDataModelList
 The type of this node More...
 
static constexpr const char * path { "Acquisitions" }
 The full path for this value More...
 
static constexpr const char * name { "Acquisitions" }
 The name of this value More...
 
static constexpr const char * description { R"description(List of Acquisition objects)description" }
 The description for this value More...
 

Friends

struct DataModel::Detail::Befriend< Acquisitions >
 
std::ostream & operator<< (std::ostream &stream, const Acquisitions &value)
 Operator to serialize the value to a stream More...
 

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 Function 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

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

The description for this value

◆ name

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

The name of this value

◆ nodeType

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

The type of this node

◆ path

constexpr 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: