Data container.
More...
#include <cutehmi/modbus/internal/DataContainer.hpp>
template<typename T, std::size_t N = 65536>
class cutehmi::modbus::internal::DataContainer< T, N >
Data container.
◆ KeysContainer
template<typename T , std::size_t N = 65536>
◆ pointer
template<typename T , std::size_t N = 65536>
◆ reference
template<typename T , std::size_t N = 65536>
◆ value_type
template<typename T , std::size_t N = 65536>
◆ DataContainer()
template<typename T , std::size_t N>
◆ at() [1/2]
template<typename T , std::size_t N>
Get value at given index.
- Parameters
-
- Returns
- value existing at given index or
nullptr
if value does not exist.
- See also
- value().
◆ at() [2/2]
template<typename T , std::size_t N>
Get value at given index.
- Parameters
-
- Returns
- value existing at given index or
nullptr
if value does not exist.
- See also
- value().
◆ clear()
template<typename T , std::size_t N>
Clear container.
Sets all elements to nullptr. No deletion is performed.
◆ free()
template<typename T , std::size_t N>
Delete container contents.
Function deletes all non-null elements and sets all elements to nullptr.
◆ insert()
template<typename T , std::size_t N>
Insert value.
- Parameters
-
i | index. |
value | value to be inserted. |
◆ keys()
template<typename T , std::size_t N>
Get keys container.
- Returns
- keys container.
◆ lock()
template<typename T , std::size_t N>
◆ size()
template<typename T , std::size_t N>
Get container size.
- Returns
- container size.
◆ value()
template<typename T , std::size_t N>
Get value at given index.
If value does not exist it will be default-constructed and inserted into the container.
- Parameters
-
- Returns
- value existing at given index or default-constructed value.
- See also
- at().
◆ KeysIterator
template<typename T , std::size_t N = 65536>
◆ ADDRESS_SPACE
template<typename T , std::size_t N = 65536>
◆ const_pointer
template<typename T , std::size_t N = 65536>
◆ const_reference
template<typename T , std::size_t N = 65536>