NEURON
BBSClient Class Reference

#include <bbsrcli.h>

Inheritance diagram for BBSClient:
BBSImpl

Public Member Functions

 BBSClient ()
 
 ~BBSClient () override
 
bool look (const char *) override
 
void take (const char *) override
 
bool look_take (const char *) override
 
int upkint () override
 
double upkdouble () override
 
void upkvec (int, double *) override
 
char * upkstr () override
 
std::vector< char > upkpickle () override
 
void pkbegin () override
 
void pkint (int) override
 
void pkdouble (double) override
 
void pkvec (int, double *) override
 
void pkstr (const char *) override
 
void pkpickle (const std::vector< char > &) override
 
void post (const char *) override
 
void post_todo (int parentid) override
 
void post_result (int id) override
 
int look_take_result (int pid) override
 
int look_take_todo () override
 
int take_todo () override
 
void save_args (int) override
 
void return_args (int) override
 
void start () override
 
void done () override
 
void perror (const char *) override
 
- Public Member Functions inherited from BBSImpl
 BBSImpl ()
 
virtual ~BBSImpl ()=default
 
virtual int master_take_result (int pid)
 
virtual void execute (int id)
 
virtual int submit (int userid)
 
virtual bool working (int &id, double &x, int &userid)
 
virtual void context ()
 
virtual void worker ()
 
virtual bool is_master ()
 
virtual double time ()
 

Private Member Functions

int get (const char *key, int type)
 
int get (int key, int type)
 
int get (int type)
 

Private Attributes

KeepArgskeepargs_
 

Static Private Attributes

static int sid_
 

Additional Inherited Members

- Public Attributes inherited from BBSImpl
int runworker_called_
 
int working_id_
 
int n_
 
double wait_time_
 
double integ_time_
 
double send_time_
 
std::vector< char > pickle_ret_
 
- Static Public Attributes inherited from BBSImpl
static bool is_master_ = false
 
static bool started_ = false
 
static bool done_ = false
 
static int mytid_
 
static int debug_ = 0
 
static bool master_works_ = true
 
- Protected Member Functions inherited from BBSImpl
std::vector< char > execute_helper (int id, bool exec=true)
 
void subworld_worker_execute ()
 

Detailed Description

Definition at line 8 of file bbsrcli.h.

Constructor & Destructor Documentation

◆ BBSClient()

BBSClient::BBSClient ( )

◆ ~BBSClient()

BBSClient::~BBSClient ( )
override

Member Function Documentation

◆ done()

void BBSClient::done ( )
overridevirtual

Reimplemented from BBSImpl.

◆ get() [1/3]

int BBSClient::get ( const char *  key,
int  type 
)
private

◆ get() [2/3]

int BBSClient::get ( int  key,
int  type 
)
private

◆ get() [3/3]

int BBSClient::get ( int  type)
private

◆ look()

bool BBSClient::look ( const char *  )
overridevirtual

Implements BBSImpl.

◆ look_take()

bool BBSClient::look_take ( const char *  )
overridevirtual

Implements BBSImpl.

◆ look_take_result()

int BBSClient::look_take_result ( int  pid)
overridevirtual

Implements BBSImpl.

◆ look_take_todo()

int BBSClient::look_take_todo ( )
overridevirtual

Implements BBSImpl.

◆ perror()

void BBSClient::perror ( const char *  )
overridevirtual

Reimplemented from BBSImpl.

◆ pkbegin()

void BBSClient::pkbegin ( )
overridevirtual

Implements BBSImpl.

◆ pkdouble()

void BBSClient::pkdouble ( double  )
overridevirtual

Implements BBSImpl.

◆ pkint()

void BBSClient::pkint ( int  )
overridevirtual

Implements BBSImpl.

◆ pkpickle()

void BBSClient::pkpickle ( const std::vector< char > &  )
overridevirtual

Implements BBSImpl.

◆ pkstr()

void BBSClient::pkstr ( const char *  )
overridevirtual

Implements BBSImpl.

◆ pkvec()

void BBSClient::pkvec ( int  ,
double *   
)
overridevirtual

Implements BBSImpl.

◆ post()

void BBSClient::post ( const char *  )
overridevirtual

Implements BBSImpl.

◆ post_result()

void BBSClient::post_result ( int  id)
overridevirtual

Implements BBSImpl.

◆ post_todo()

void BBSClient::post_todo ( int  parentid)
overridevirtual

Implements BBSImpl.

◆ return_args()

void BBSClient::return_args ( int  )
overridevirtual

Reimplemented from BBSImpl.

◆ save_args()

void BBSClient::save_args ( int  )
overridevirtual

Implements BBSImpl.

◆ start()

void BBSClient::start ( )
overridevirtual

Reimplemented from BBSImpl.

◆ take()

void BBSClient::take ( const char *  )
overridevirtual

Implements BBSImpl.

◆ take_todo()

int BBSClient::take_todo ( )
overridevirtual

Implements BBSImpl.

◆ upkdouble()

double BBSClient::upkdouble ( )
overridevirtual

Implements BBSImpl.

◆ upkint()

int BBSClient::upkint ( )
overridevirtual

Implements BBSImpl.

◆ upkpickle()

std::vector<char> BBSClient::upkpickle ( )
overridevirtual

Implements BBSImpl.

◆ upkstr()

char* BBSClient::upkstr ( )
overridevirtual

Implements BBSImpl.

◆ upkvec()

void BBSClient::upkvec ( int  ,
double *   
)
overridevirtual

Implements BBSImpl.

Member Data Documentation

◆ keepargs_

KeepArgs* BBSClient::keepargs_
private

Definition at line 52 of file bbsrcli.h.

◆ sid_

int BBSClient::sid_
staticprivate

Definition at line 51 of file bbsrcli.h.


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