Github   Telegram
Loading...
Searching...
No Matches
Public Types | Public Member Functions | List of all members
components::ComponentList Class Referencefinal

A list to keep a unique list of components to start with components::Run(), utils::DaemonMain() or components::RunOnce(). More...

#include <userver/components/component_list.hpp>

Public Types

using Adders = std::vector< std::unique_ptr< impl::ComponentAdderBase > >
 

Public Member Functions

template<typename Component >
ComponentListAppend () &
 
template<typename Component >
ComponentListAppend (std::string name) &
 
ComponentListAppendComponentList (ComponentList &&other) &
 
ComponentList && AppendComponentList (ComponentList &&other) &&
 
template<typename Component , typename... Args>
ComponentList && Append (Args &&...) &&
 
Adders::const_iterator begin () const
 
Adders::const_iterator end () const
 
bool Contains (const std::string &name) const
 
template<typename Component >
ComponentListAppend () &
 
template<typename Component >
ComponentListAppend (std::string name) &
 
template<typename Component , typename... Args>
ComponentList && Append (Args &&... args) &&
 

Detailed Description

A list to keep a unique list of components to start with components::Run(), utils::DaemonMain() or components::RunOnce().

Examples
samples/production_service/production_service.cpp.

Definition at line 49 of file component_list.hpp.

Member Typedef Documentation

◆ Adders

using components::ComponentList::Adders = std::vector<std::unique_ptr<impl::ComponentAdderBase> >

Definition at line 63 of file component_list.hpp.

Member Function Documentation

◆ Append() [1/3]

template<typename Component >
ComponentList & components::ComponentList::Append ( ) &

Definition at line 105 of file component_list.hpp.

◆ Append() [2/3]

template<typename Component , typename... Args>
ComponentList && components::ComponentList::Append ( Args &&...  args) &&

Definition at line 128 of file component_list.hpp.

◆ Append() [3/3]

template<typename Component >
ComponentList & components::ComponentList::Append ( std::string  name) &

Definition at line 116 of file component_list.hpp.

◆ begin()

Adders::const_iterator components::ComponentList::begin ( ) const
inline

Definition at line 65 of file component_list.hpp.

◆ Contains()

bool components::ComponentList::Contains ( const std::string &  name) const
inline

Definition at line 68 of file component_list.hpp.

◆ end()

Adders::const_iterator components::ComponentList::end ( ) const
inline

Definition at line 66 of file component_list.hpp.


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