Skip to content

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>autotable() const
template <class T > <br>autotable()
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:

Public Functions Documentation

function table

cpp
template <class T >
inline auto table() const

Template Parameters:

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
) const

Retrieves an element from the container.

Parameters:

  • id The valid ID/name string of the element.

Exceptions:

Template Parameters:

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() const

Return: The data table with elements of specific type.


Updated on 2025-11-11 at 16:51:08 +0000