List of the computer's local network interfaces that discovered the camera. In the most common scenario with the camera connected to the computer with an Ethernet cable, this list will contain only the network interface for that Ethernet port. In more complex network scenarios it can be the case that the camera is discovered by multiple interfaces, and in that case this list will contain multiple network interfaces. However, when CameraState::Status is connected, only the one network interface that has the active TCP/IP connection to the camera will be listed.
More...
#include <Zivid/CameraState.h>
List of the computer's local network interfaces that discovered the camera. In the most common scenario with the camera connected to the computer with an Ethernet cable, this list will contain only the network interface for that Ethernet port. In more complex network scenarios it can be the case that the camera is discovered by multiple interfaces, and in that case this list will contain multiple network interfaces. However, when CameraState::Status is connected, only the one network interface that has the active TCP/IP connection to the camera will be listed.
◆ ConstIterator
◆ Iterator
◆ ValueType
The type of the underlying value.
◆ LocalInterfaces() [1/3]
| Zivid::CameraState::Network::LocalInterfaces::LocalInterfaces |
( |
| ) |
|
|
default |
◆ LocalInterfaces() [2/3]
◆ LocalInterfaces() [3/3]
◆ at() [1/2]
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]
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::CameraState::Network::LocalInterfaces::begin |
( |
| ) |
const |
|
noexcept |
Returns a constant iterator to the first element of the list.
◆ begin() [2/2]
| Iterator Zivid::CameraState::Network::LocalInterfaces::begin |
( |
| ) |
|
|
noexcept |
Returns an iterator to the first element of the list.
◆ cbegin()
| ConstIterator Zivid::CameraState::Network::LocalInterfaces::cbegin |
( |
| ) |
const |
|
noexcept |
Returns a constant iterator to the first element of the list.
◆ cend()
| ConstIterator Zivid::CameraState::Network::LocalInterfaces::cend |
( |
| ) |
const |
|
noexcept |
Returns a constant iterator to the element following the last element of the list.
◆ emplaceBack()
template<typename... Args>
| void Zivid::CameraState::Network::LocalInterfaces::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 CameraState::Network::LocalInterface. Invoking this method may invalidate all references to elements in the list.
◆ end() [1/2]
| ConstIterator Zivid::CameraState::Network::LocalInterfaces::end |
( |
| ) |
const |
|
noexcept |
Returns a constant iterator to the element following the last element of the list.
◆ end() [2/2]
| Iterator Zivid::CameraState::Network::LocalInterfaces::end |
( |
| ) |
|
|
noexcept |
Returns an iterator to the element following the last element of the list.
◆ forEach() [1/2]
template<typename F >
| void Zivid::CameraState::Network::LocalInterfaces::forEach |
( |
const F & | f | ) |
|
|
inline |
Run the given function on each element in the list.
◆ forEach() [2/2]
template<typename F >
| void Zivid::CameraState::Network::LocalInterfaces::forEach |
( |
const F & | f | ) |
const |
|
inline |
Run the given function on each element in the list.
◆ isEmpty()
| bool Zivid::CameraState::Network::LocalInterfaces::isEmpty |
( |
| ) |
const |
|
noexcept |
Check if the list is empty.
◆ operator!=()
| bool Zivid::CameraState::Network::LocalInterfaces::operator!= |
( |
const LocalInterfaces & | other | ) |
const |
|
inline |
◆ operator==()
| bool Zivid::CameraState::Network::LocalInterfaces::operator== |
( |
const LocalInterfaces & | other | ) |
const |
|
inline |
◆ operator[]() [1/2]
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]
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::CameraState::Network::LocalInterfaces::size |
( |
| ) |
const |
|
noexcept |
Get the size of the list.
◆ toString()
| std::string Zivid::CameraState::Network::LocalInterfaces::toString |
( |
| ) |
const |
◆ validSize()
| static constexpr Range< ValueType::size_type > Zivid::CameraState::Network::LocalInterfaces::validSize |
( |
| ) |
|
|
inlinestaticconstexpr |
◆ value()
◆ DataModel::Detail::Befriend< LocalInterfaces >
◆ operator<<
| std::ostream & operator<< |
( |
std::ostream & | stream, |
|
|
const LocalInterfaces & | value ) |
|
friend |
Operator to serialize the value to a stream.
◆ description
| const char* Zivid::CameraState::Network::LocalInterfaces::description |
|
staticconstexpr |
Initial value:{
R"description(List of the computer's local network interfaces that discovered the camera. In the most common scenario
with the camera connected to the computer with an Ethernet cable, this list will contain only the
network interface for that Ethernet port. In more complex network scenarios it can be the case that the
camera is discovered by multiple interfaces, and in that case this list will contain multiple network
interfaces. However, when `CameraState::Status` is `connected`, only the one network interface that has
the active TCP/IP connection to the camera will be listed.
)description"
}
The description for this value.
◆ name
| const char* Zivid::CameraState::Network::LocalInterfaces::name { "LocalInterfaces" } |
|
staticconstexpr |
◆ nodeType
◆ path
| const char* Zivid::CameraState::Network::LocalInterfaces::path { "Network/LocalInterfaces" } |
|
staticconstexpr |
The full path for this value.
The documentation for this class was generated from the following file: