scram::mef::Composite
The composition of multiple mef::Containers. More...
#include <element.h>
Inherits from Ts
Inherited by scram::mef::Model
Public Functions
| Name | |
|---|---|
| template <class T > <br>auto | table() const |
| template <class T > <br>auto | table() |
| template <class T ,class ContainerType =typename detail::container_of<T, Ts...>::type> <br>const T & | Get(const typename ContainerType::key_type & id) const<br>Retrieves an element from the container. |
| template <class T ,class ContainerType =typename detail::container_of<T, Ts...>::type> <br>T & | Get(const typename ContainerType::key_type & id) |
Protected Functions
| Name | |
|---|---|
| template <class T > <br>decltype(auto) | data() const |
Detailed Description
cpp
template <typename... Ts>
class scram::mef::Composite;The composition of multiple mef::Containers.
Template Parameters:
- Ts Container types.
Public Functions Documentation
function table
cpp
template <class T >
inline auto table() constTemplate Parameters:
- T The mef::Element type in the composite container.
Return: The table as an associative range of type T elements.
function table
cpp
template <class T >
inline auto table()function Get
cpp
template <class T ,
class ContainerType =typename detail::container_of<T, Ts...>::type>
inline const T & Get(
const typename ContainerType::key_type & id
) constRetrieves an element from the container.
Parameters:
- id The valid ID/name string of the element.
Exceptions:
- UndefinedElement The element is not found.
Template Parameters:
- T The mef::Element type in the composite container.
Return: The reference to the element.
function Get
cpp
template <class T ,
class ContainerType =typename detail::container_of<T, Ts...>::type>
inline T & Get(
const typename ContainerType::key_type & id
)Protected Functions Documentation
function data
cpp
template <class T >
inline decltype(auto) data() constReturn: The data table with elements of specific type.
Updated on 2025-11-11 at 16:51:08 +0000
