Slick Sim 0.10.1
Exchange simulator that shadows real venues for risk-free strategy testing
Loading...
Searching...
No Matches
slick::sim::SymbolManager Class Reference

#include <common/symbol_manager.hpp>

Collaboration diagram for slick::sim::SymbolManager:

Public Member Functions

 SymbolManager (const SymbolManager &)=delete
 SymbolManager (SymbolManager &&)=delete
SymbolManager & operator= (const SymbolManager &)=delete
SymbolManager & operator= (SymbolManager &&)=delete
exch::Symbol * getSymbol (std::string_view sym, Venue venue) const
 A venue is required: see SymbolKey.
exch::Symbol * getSymbol (symid_t sid)
exch::Symbol * createSymbol (std::string_view sym, Venue venue)
 Returns the existing instrument if this (venue, name) already has one, so a double create cannot strand a Symbol that nothing can look up.
size_t size () const noexcept

Static Public Member Functions

static SymbolManager & instance ()

Detailed Description

Definition at line 31 of file symbol_manager.hpp.

Constructor & Destructor Documentation

◆ SymbolManager() [1/2]

slick::sim::SymbolManager::SymbolManager ( const SymbolManager & )
delete

◆ SymbolManager() [2/2]

slick::sim::SymbolManager::SymbolManager ( SymbolManager && )
delete

References SymbolManager().

Member Function Documentation

◆ createSymbol()

exch::Symbol * slick::sim::SymbolManager::createSymbol ( std::string_view sym,
Venue venue )
inline

Returns the existing instrument if this (venue, name) already has one, so a double create cannot strand a Symbol that nothing can look up.

Definition at line 63 of file symbol_manager.hpp.

◆ getSymbol() [1/2]

exch::Symbol * slick::sim::SymbolManager::getSymbol ( std::string_view sym,
Venue venue ) const
inline

A venue is required: see SymbolKey.

Definition at line 44 of file symbol_manager.hpp.

◆ getSymbol() [2/2]

exch::Symbol * slick::sim::SymbolManager::getSymbol ( symid_t sid)
inline

Definition at line 54 of file symbol_manager.hpp.

◆ instance()

SymbolManager & slick::sim::SymbolManager::instance ( )
inlinestatic

Definition at line 33 of file symbol_manager.hpp.

References SymbolManager(), and instance().

Referenced by instance().

◆ operator=() [1/2]

SymbolManager & slick::sim::SymbolManager::operator= ( const SymbolManager & )
delete

References SymbolManager().

◆ operator=() [2/2]

SymbolManager & slick::sim::SymbolManager::operator= ( SymbolManager && )
delete

References SymbolManager().

◆ size()

size_t slick::sim::SymbolManager::size ( ) const
inlinenoexcept

Definition at line 79 of file symbol_manager.hpp.


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