esphome-api-client 0.5.0
Modern C++17 client for the ESPHome native API (plaintext + Noise)
Loading...
Searching...
No Matches
Public Member Functions | List of all members
esphome::api::EntityList< E > Class Template Reference

A snapshot list of entity handles of one domain, with index + lookup access. More...

#include <entity_registry.hpp>

Public Member Functions

 EntityList (std::vector< E > items)
 
std::size_t size () const noexcept
 
bool empty () const noexcept
 
const E & operator[] (std::size_t i) const
 
const E & at (std::size_t i) const
 
auto begin () const
 
auto end () const
 
std::optional< E > find (std::uint32_t key) const
 
std::optional< E > find (std::string_view object_id) const
 

Detailed Description

template<class E>
class esphome::api::EntityList< E >

A snapshot list of entity handles of one domain, with index + lookup access.

Constructor & Destructor Documentation

◆ EntityList()

template<class E >
esphome::api::EntityList< E >::EntityList ( std::vector< E >  items)
inlineexplicit

Member Function Documentation

◆ at()

template<class E >
const E & esphome::api::EntityList< E >::at ( std::size_t  i) const
inline

◆ begin()

template<class E >
auto esphome::api::EntityList< E >::begin ( ) const
inline

◆ empty()

template<class E >
bool esphome::api::EntityList< E >::empty ( ) const
inlinenoexcept

◆ end()

template<class E >
auto esphome::api::EntityList< E >::end ( ) const
inline

◆ find() [1/2]

template<class E >
std::optional< E > esphome::api::EntityList< E >::find ( std::string_view  object_id) const
inline

◆ find() [2/2]

template<class E >
std::optional< E > esphome::api::EntityList< E >::find ( std::uint32_t  key) const
inline

◆ operator[]()

template<class E >
const E & esphome::api::EntityList< E >::operator[] ( std::size_t  i) const
inline

◆ size()

template<class E >
std::size_t esphome::api::EntityList< E >::size ( ) const
inlinenoexcept

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