TorchCraftAI
A bot for machine learning research on StarCraft: Brood War
Public Member Functions | List of all members
c10d::Store Struct Referenceabstract

#include <c10d.h>

Inherited by cpid::RedisStore.

Public Member Functions

virtual ~Store ()=default
 
virtual void set (const std::string &key, const std::vector< uint8_t > &value)=0
 
virtual std::vector< uint8_t > get (const std::string &key)=0
 
virtual int64_t add (const std::string &key, int64_t value)=0
 
virtual bool check (const std::vector< std::string > &keys)=0
 
virtual void wait (const std::vector< std::string > &keys)=0
 
virtual void wait (const std::vector< std::string > &keys, const std::chrono::milliseconds &timeout)=0
 
void setTimeout (const std::chrono::seconds &)
 

Constructor & Destructor Documentation

virtual c10d::Store::~Store ( )
virtualdefault

Member Function Documentation

virtual int64_t c10d::Store::add ( const std::string &  key,
int64_t  value 
)
pure virtual

Implemented in cpid::RedisStore.

virtual bool c10d::Store::check ( const std::vector< std::string > &  keys)
pure virtual

Implemented in cpid::RedisStore.

virtual std::vector<uint8_t> c10d::Store::get ( const std::string &  key)
pure virtual

Implemented in cpid::RedisStore.

virtual void c10d::Store::set ( const std::string &  key,
const std::vector< uint8_t > &  value 
)
pure virtual

Implemented in cpid::RedisStore.

void c10d::Store::setTimeout ( const std::chrono::seconds &  )
inline
virtual void c10d::Store::wait ( const std::vector< std::string > &  keys)
pure virtual

Implemented in cpid::RedisStore.

virtual void c10d::Store::wait ( const std::vector< std::string > &  keys,
const std::chrono::milliseconds &  timeout 
)
pure virtual

Implemented in cpid::RedisStore.


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