Logo
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Public Member Functions | Static Public Member Functions | Public Attributes | Static Public Attributes | Protected Member Functions | Protected Attributes | List of all members
Context Class Reference

#include <context.hh>

Collaboration diagram for Context:
Collaboration graph

Public Member Functions

void run ()
 
bool join ()
 

Static Public Member Functions

static Contextconnect (std::string)
 
static Contextconnect ()
 

Public Attributes

boost::asio::io_service io
 
std::unique_ptr< Logger,
decltype(&Logger::disconnect)> 
logger {nullptr, Logger::disconnect}
 
Settings settings
 
std::unique_ptr< Histogramhistogram
 
int id
 

Static Public Attributes

static Contextsingleton = nullptr
 

Protected Member Functions

 Context (std::string)
 
 Context ()
 
 ~Context ()
 
void init ()
 

Protected Attributes

std::vector< std::unique_ptr
< std::thread > > 
threads
 
boost::asio::io_service::work work
 

Constructor & Destructor Documentation

Context::Context ( std::string  )
protected
Context::Context ( )
protected
Context::~Context ( )
protected

Member Function Documentation

static Context* Context::connect ( std::string  )
static
Context * Context::connect ( )
static
void Context::init ( )
protected
bool Context::join ( )
void Context::run ( )

Member Data Documentation

std::unique_ptr<Histogram> Context::histogram
int Context::id
boost::asio::io_service Context::io
std::unique_ptr<Logger, decltype(&Logger::disconnect)> Context::logger {nullptr, Logger::disconnect}
Settings Context::settings
Context * Context::singleton = nullptr
static
std::vector<std::unique_ptr<std::thread> > Context::threads
protected
boost::asio::io_service::work Context::work
protected

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