ONE - On-device Neural Engine
Loading...
Searching...
No Matches
souschef::Registry< T > Class Template Reference

#include <Registry.h>

Public Member Functions

void add (const std::string &name, std::unique_ptr< T > &&entry)
 
const T & lookup (const std::string &name) const
 

Detailed Description

template<typename T>
class souschef::Registry< T >

Definition at line 27 of file Registry.h.

Member Function Documentation

◆ add()

template<typename T >
void souschef::Registry< T >::add ( const std::string &  name,
std::unique_ptr< T > &&  entry 
)
inline

Definition at line 30 of file Registry.h.

31 {
32 _content[name] = std::move(entry);
33 }
int entry(const int argc, char **argv)
Definition Driver.cpp:53

References entry().

◆ lookup()

template<typename T >
const T & souschef::Registry< T >::lookup ( const std::string &  name) const
inline

Definition at line 35 of file Registry.h.

35{ return *(_content.at(name)); }

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