NEURON
BBSDirectServer Class Reference

#include <bbslsrv2.h>

Public Member Functions

 BBSDirectServer ()
 
virtual ~BBSDirectServer ()
 
void post (const char *key)
 
bool look (const char *key)
 
bool look_take (const char *key)
 
bool take_pending (const char *key, int *cid)
 
void put_pending (const char *key, int cid)
 
void start ()
 
void done ()
 
void post_todo (int parentid, int cid)
 
void context (int ncid, int *cids)
 
bool send_context (int cid)
 
void post_result (int id)
 
int look_take_todo ()
 
int look_take_result (int parentid)
 
 BBSDirectServer ()
 
virtual ~BBSDirectServer ()
 
void post (const char *key, bbsmpibuf *)
 
bool look (const char *key, bbsmpibuf **)
 
bool look_take (const char *key, bbsmpibuf **)
 
bool take_pending (const char *key, int *cid)
 
void put_pending (const char *key, int cid)
 
void start ()
 
void done ()
 
void post_todo (int parentid, int cid, bbsmpibuf *)
 
void context (bbsmpibuf *)
 
bool send_context (int cid)
 
void post_result (int id, bbsmpibuf *)
 
int look_take_todo (bbsmpibuf **)
 
int look_take_result (int parentid, bbsmpibuf **)
 
void context_wait ()
 

Static Public Member Functions

static void handle ()
 
static void handle1 ()
 
static void handle ()
 
static void handle_block ()
 
static void handle1 (int size, int tag, int source)
 

Static Public Attributes

static BBSDirectServerserver_
 

Private Member Functions

void add_looking_todo (int cid)
 
void add_looking_todo (int cid)
 

Private Attributes

int next_id_
 
int context_buf_
 
int remaining_context_cnt_
 
MpiMessageList * messages_
 
MpiPendingList * pending_
 
MpiWorkList * work_
 
MpiLookingToDoList * looking_todo_
 
MpiReadyList * todo_
 
MpiResultList * results_
 
MpiLookingToDoList * send_context_
 
bbsmpibuf * context_buf_
 

Detailed Description

Definition at line 7 of file bbslsrv2.h.

Constructor & Destructor Documentation

◆ BBSDirectServer() [1/2]

BBSDirectServer::BBSDirectServer ( )

◆ ~BBSDirectServer() [1/2]

virtual BBSDirectServer::~BBSDirectServer ( )
virtual

◆ BBSDirectServer() [2/2]

BBSDirectServer::BBSDirectServer ( )

◆ ~BBSDirectServer() [2/2]

virtual BBSDirectServer::~BBSDirectServer ( )
virtual

Member Function Documentation

◆ add_looking_todo() [1/2]

void BBSDirectServer::add_looking_todo ( int  cid)
private

◆ add_looking_todo() [2/2]

void BBSDirectServer::add_looking_todo ( int  cid)
private

◆ context() [1/2]

void BBSDirectServer::context ( bbsmpibuf *  )

◆ context() [2/2]

void BBSDirectServer::context ( int  ncid,
int *  cids 
)

◆ context_wait()

void BBSDirectServer::context_wait ( )

◆ done() [1/2]

void BBSDirectServer::done ( )

◆ done() [2/2]

void BBSDirectServer::done ( )

◆ handle() [1/2]

static void BBSDirectServer::handle ( )
static

◆ handle() [2/2]

static void BBSDirectServer::handle ( )
static

◆ handle1() [1/2]

static void BBSDirectServer::handle1 ( )
static

◆ handle1() [2/2]

static void BBSDirectServer::handle1 ( int  size,
int  tag,
int  source 
)
static

◆ handle_block()

static void BBSDirectServer::handle_block ( )
static

◆ look() [1/2]

bool BBSDirectServer::look ( const char *  key)

◆ look() [2/2]

bool BBSDirectServer::look ( const char *  key,
bbsmpibuf **   
)

◆ look_take() [1/2]

bool BBSDirectServer::look_take ( const char *  key)

◆ look_take() [2/2]

bool BBSDirectServer::look_take ( const char *  key,
bbsmpibuf **   
)

◆ look_take_result() [1/2]

int BBSDirectServer::look_take_result ( int  parentid)

◆ look_take_result() [2/2]

int BBSDirectServer::look_take_result ( int  parentid,
bbsmpibuf **   
)

◆ look_take_todo() [1/2]

int BBSDirectServer::look_take_todo ( )

◆ look_take_todo() [2/2]

int BBSDirectServer::look_take_todo ( bbsmpibuf **  )

◆ post() [1/2]

void BBSDirectServer::post ( const char *  key)

◆ post() [2/2]

void BBSDirectServer::post ( const char *  key,
bbsmpibuf *   
)

◆ post_result() [1/2]

void BBSDirectServer::post_result ( int  id)

◆ post_result() [2/2]

void BBSDirectServer::post_result ( int  id,
bbsmpibuf *   
)

◆ post_todo() [1/2]

void BBSDirectServer::post_todo ( int  parentid,
int  cid 
)

◆ post_todo() [2/2]

void BBSDirectServer::post_todo ( int  parentid,
int  cid,
bbsmpibuf *   
)

◆ put_pending() [1/2]

void BBSDirectServer::put_pending ( const char *  key,
int  cid 
)

◆ put_pending() [2/2]

void BBSDirectServer::put_pending ( const char *  key,
int  cid 
)

◆ send_context() [1/2]

bool BBSDirectServer::send_context ( int  cid)

◆ send_context() [2/2]

bool BBSDirectServer::send_context ( int  cid)

◆ start() [1/2]

void BBSDirectServer::start ( )

◆ start() [2/2]

void BBSDirectServer::start ( )

◆ take_pending() [1/2]

bool BBSDirectServer::take_pending ( const char *  key,
int *  cid 
)

◆ take_pending() [2/2]

bool BBSDirectServer::take_pending ( const char *  key,
int *  cid 
)

Member Data Documentation

◆ context_buf_ [1/2]

int BBSDirectServer::context_buf_
private

Definition at line 35 of file bbslsrv2.h.

◆ context_buf_ [2/2]

bbsmpibuf* BBSDirectServer::context_buf_
private

Definition at line 53 of file bbssrv2mpi.h.

◆ looking_todo_

MpiLookingToDoList* BBSDirectServer::looking_todo_
private

Definition at line 48 of file bbssrv2mpi.h.

◆ messages_

MpiMessageList* BBSDirectServer::messages_
private

Definition at line 45 of file bbssrv2mpi.h.

◆ next_id_

int BBSDirectServer::next_id_
private

Definition at line 34 of file bbslsrv2.h.

◆ pending_

MpiPendingList* BBSDirectServer::pending_
private

Definition at line 46 of file bbssrv2mpi.h.

◆ remaining_context_cnt_

int BBSDirectServer::remaining_context_cnt_
private

Definition at line 36 of file bbslsrv2.h.

◆ results_

MpiResultList* BBSDirectServer::results_
private

Definition at line 50 of file bbssrv2mpi.h.

◆ send_context_

MpiLookingToDoList* BBSDirectServer::send_context_
private

Definition at line 51 of file bbssrv2mpi.h.

◆ server_

static BBSDirectServer * BBSDirectServer::server_
static

Definition at line 17 of file bbslsrv2.h.

◆ todo_

MpiReadyList* BBSDirectServer::todo_
private

Definition at line 49 of file bbssrv2mpi.h.

◆ work_

MpiWorkList* BBSDirectServer::work_
private

Definition at line 47 of file bbssrv2mpi.h.


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