Public Types | Public Member Functions | Protected Member Functions | Private Member Functions
megatree::Storage Class Reference

#include <storage.h>

Inheritance diagram for megatree::Storage:
Inheritance graph
[legend]

List of all members.

Public Types

typedef boost::function< void(const
ByteVec &)> 
GetCallback
typedef boost::function< void(void)> PutCallback

Public Member Functions

virtual void get (const boost::filesystem::path &path, ByteVec &result)
virtual void getAsync (const boost::filesystem::path &path, GetCallback callback)=0
virtual void getBatch (const std::vector< boost::filesystem::path > &paths, std::vector< ByteVec > &results)
virtual std::string getType ()=0
virtual void put (const boost::filesystem::path &path, const ByteVec &data)
virtual void putAsync (const boost::filesystem::path &path, const ByteVec &data, PutCallback callback)=0
virtual void putBatch (const std::vector< boost::filesystem::path > &paths, std::vector< ByteVec > &data)
virtual ~Storage ()

Protected Member Functions

 Storage ()

Private Member Functions

void getDataCb (boost::condition &get_condition, unsigned &remaining, const ByteVec &data_in, ByteVec &data)
void putDataCb (boost::condition &put_condition, unsigned &remaining)

Detailed Description

Definition at line 16 of file storage.h.


Member Typedef Documentation

typedef boost::function<void(const ByteVec&)> megatree::Storage::GetCallback

Definition at line 77 of file storage.h.

typedef boost::function<void(void)> megatree::Storage::PutCallback

Definition at line 81 of file storage.h.


Constructor & Destructor Documentation

virtual megatree::Storage::~Storage ( ) [inline, virtual]

Definition at line 19 of file storage.h.

megatree::Storage::Storage ( ) [inline, protected]

Definition at line 87 of file storage.h.


Member Function Documentation

virtual void megatree::Storage::get ( const boost::filesystem::path &  path,
ByteVec result 
) [inline, virtual]

Reimplemented in megatree::DiskStorage, and megatree::VizStorage.

Definition at line 21 of file storage.h.

virtual void megatree::Storage::getAsync ( const boost::filesystem::path &  path,
GetCallback  callback 
) [pure virtual]
virtual void megatree::Storage::getBatch ( const std::vector< boost::filesystem::path > &  paths,
std::vector< ByteVec > &  results 
) [inline, virtual]

Reimplemented in megatree::HbaseStorage, megatree::DiskStorage, and megatree::VizStorage.

Definition at line 35 of file storage.h.

void megatree::Storage::getDataCb ( boost::condition &  get_condition,
unsigned &  remaining,
const ByteVec data_in,
ByteVec data 
) [inline, private]

Definition at line 90 of file storage.h.

virtual std::string megatree::Storage::getType ( ) [pure virtual]
virtual void megatree::Storage::put ( const boost::filesystem::path &  path,
const ByteVec data 
) [inline, virtual]

Definition at line 51 of file storage.h.

virtual void megatree::Storage::putAsync ( const boost::filesystem::path &  path,
const ByteVec data,
PutCallback  callback 
) [pure virtual]
virtual void megatree::Storage::putBatch ( const std::vector< boost::filesystem::path > &  paths,
std::vector< ByteVec > &  data 
) [inline, virtual]

Reimplemented in megatree::HbaseStorage, megatree::VizStorage, and megatree::DiskStorage.

Definition at line 60 of file storage.h.

void megatree::Storage::putDataCb ( boost::condition &  put_condition,
unsigned &  remaining 
) [inline, private]

Definition at line 99 of file storage.h.


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


megatree_storage
Author(s): Wim Meeussen
autogenerated on Mon Dec 2 2013 13:01:19