yaze 0.3.2
Link to the Past ROM Editor
 
Loading...
Searching...
No Matches
yaze::cli::ModelRegistry Class Reference

#include <model_registry.h>

Public Member Functions

void RegisterService (std::shared_ptr< AIService > service)
 
void ClearServices ()
 
absl::StatusOr< std::vector< ModelInfo > > ListAllModels ()
 

Static Public Member Functions

static ModelRegistryGetInstance ()
 

Private Member Functions

 ModelRegistry ()=default
 
 ~ModelRegistry ()=default
 
 ModelRegistry (const ModelRegistry &)=delete
 
ModelRegistryoperator= (const ModelRegistry &)=delete
 

Private Attributes

std::vector< std::shared_ptr< AIService > > services_
 
std::mutex mutex_
 

Detailed Description

Definition at line 16 of file model_registry.h.

Constructor & Destructor Documentation

◆ ModelRegistry() [1/2]

yaze::cli::ModelRegistry::ModelRegistry ( )
privatedefault

◆ ~ModelRegistry()

yaze::cli::ModelRegistry::~ModelRegistry ( )
privatedefault

◆ ModelRegistry() [2/2]

yaze::cli::ModelRegistry::ModelRegistry ( const ModelRegistry & )
privatedelete

Member Function Documentation

◆ GetInstance()

ModelRegistry & yaze::cli::ModelRegistry::GetInstance ( )
static

Definition at line 8 of file model_registry.cc.

Referenced by yaze::cli::api::HandleListModels().

◆ RegisterService()

void yaze::cli::ModelRegistry::RegisterService ( std::shared_ptr< AIService > service)

Definition at line 13 of file model_registry.cc.

References mutex_, and services_.

◆ ClearServices()

void yaze::cli::ModelRegistry::ClearServices ( )

Definition at line 18 of file model_registry.cc.

References mutex_, and services_.

◆ ListAllModels()

absl::StatusOr< std::vector< ModelInfo > > yaze::cli::ModelRegistry::ListAllModels ( )

Definition at line 23 of file model_registry.cc.

References mutex_, and services_.

◆ operator=()

ModelRegistry & yaze::cli::ModelRegistry::operator= ( const ModelRegistry & )
privatedelete

Member Data Documentation

◆ services_

std::vector<std::shared_ptr<AIService> > yaze::cli::ModelRegistry::services_
private

Definition at line 35 of file model_registry.h.

Referenced by ClearServices(), ListAllModels(), and RegisterService().

◆ mutex_

std::mutex yaze::cli::ModelRegistry::mutex_
private

Definition at line 36 of file model_registry.h.

Referenced by ClearServices(), ListAllModels(), and RegisterService().


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