Feathercoin  0.5.0
P2P Digital Currency
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros
Public Member Functions | Private Attributes | List of all members
leveldb::EnvWrapper Class Reference

#include <env.h>

Inheritance diagram for leveldb::EnvWrapper:
Inheritance graph
[legend]
Collaboration diagram for leveldb::EnvWrapper:
Collaboration graph
[legend]

Public Member Functions

 EnvWrapper (Env *t)
 
virtual ~EnvWrapper ()
 
Envtarget () const
 
Status NewSequentialFile (const std::string &f, SequentialFile **r)
 
Status NewRandomAccessFile (const std::string &f, RandomAccessFile **r)
 
Status NewWritableFile (const std::string &f, WritableFile **r)
 
bool FileExists (const std::string &f)
 
Status GetChildren (const std::string &dir, std::vector< std::string > *r)
 
Status DeleteFile (const std::string &f)
 
Status CreateDir (const std::string &d)
 
Status DeleteDir (const std::string &d)
 
Status GetFileSize (const std::string &f, uint64_t *s)
 
Status RenameFile (const std::string &s, const std::string &t)
 
Status LockFile (const std::string &f, FileLock **l)
 
Status UnlockFile (FileLock *l)
 
void Schedule (void(*f)(void *), void *a)
 
void StartThread (void(*f)(void *), void *a)
 
virtual Status GetTestDirectory (std::string *path)
 
virtual Status NewLogger (const std::string &fname, Logger **result)
 
uint64_t NowMicros ()
 
void SleepForMicroseconds (int micros)
 
- Public Member Functions inherited from leveldb::Env
 Env ()
 
virtual ~Env ()
 
virtual void Schedule (void(*function)(void *arg), void *arg)=0
 
virtual void StartThread (void(*function)(void *arg), void *arg)=0
 

Private Attributes

Envtarget_
 

Additional Inherited Members

- Static Public Member Functions inherited from leveldb::Env
static EnvDefault ()
 

Detailed Description

Definition at line 273 of file env.h.

Constructor & Destructor Documentation

leveldb::EnvWrapper::EnvWrapper ( Env t)
inlineexplicit

Definition at line 276 of file env.h.

leveldb::EnvWrapper::~EnvWrapper ( )
virtual

Definition at line 93 of file env.cc.

Member Function Documentation

Status leveldb::EnvWrapper::CreateDir ( const std::string &  d)
inlinevirtual

Implements leveldb::Env.

Definition at line 297 of file env.h.

Status leveldb::EnvWrapper::DeleteDir ( const std::string &  d)
inlinevirtual

Implements leveldb::Env.

Definition at line 298 of file env.h.

Status leveldb::EnvWrapper::DeleteFile ( const std::string &  f)
inlinevirtual

Implements leveldb::Env.

Definition at line 296 of file env.h.

bool leveldb::EnvWrapper::FileExists ( const std::string &  f)
inlinevirtual

Implements leveldb::Env.

Definition at line 292 of file env.h.

Status leveldb::EnvWrapper::GetChildren ( const std::string &  dir,
std::vector< std::string > *  r 
)
inlinevirtual

Implements leveldb::Env.

Definition at line 293 of file env.h.

Status leveldb::EnvWrapper::GetFileSize ( const std::string &  f,
uint64_t s 
)
inlinevirtual

Implements leveldb::Env.

Definition at line 299 of file env.h.

virtual Status leveldb::EnvWrapper::GetTestDirectory ( std::string *  path)
inlinevirtual

Implements leveldb::Env.

Definition at line 315 of file env.h.

Status leveldb::EnvWrapper::LockFile ( const std::string &  f,
FileLock **  l 
)
inlinevirtual

Implements leveldb::Env.

Definition at line 305 of file env.h.

virtual Status leveldb::EnvWrapper::NewLogger ( const std::string &  fname,
Logger **  result 
)
inlinevirtual

Implements leveldb::Env.

Definition at line 318 of file env.h.

Status leveldb::EnvWrapper::NewRandomAccessFile ( const std::string &  f,
RandomAccessFile **  r 
)
inlinevirtual

Implements leveldb::Env.

Definition at line 286 of file env.h.

Status leveldb::EnvWrapper::NewSequentialFile ( const std::string &  f,
SequentialFile **  r 
)
inlinevirtual

Implements leveldb::Env.

Definition at line 283 of file env.h.

Status leveldb::EnvWrapper::NewWritableFile ( const std::string &  f,
WritableFile **  r 
)
inlinevirtual

Implements leveldb::Env.

Reimplemented in leveldb::test::ErrorEnv.

Definition at line 289 of file env.h.

uint64_t leveldb::EnvWrapper::NowMicros ( )
inlinevirtual

Implements leveldb::Env.

Definition at line 321 of file env.h.

Status leveldb::EnvWrapper::RenameFile ( const std::string &  s,
const std::string &  t 
)
inlinevirtual

Implements leveldb::Env.

Definition at line 302 of file env.h.

void leveldb::EnvWrapper::Schedule ( void(*)(void *)  f,
void *  a 
)
inline

Definition at line 309 of file env.h.

void leveldb::EnvWrapper::SleepForMicroseconds ( int  micros)
inlinevirtual

Implements leveldb::Env.

Definition at line 324 of file env.h.

void leveldb::EnvWrapper::StartThread ( void(*)(void *)  f,
void *  a 
)
inline

Definition at line 312 of file env.h.

Env* leveldb::EnvWrapper::target ( ) const
inline

Definition at line 280 of file env.h.

Status leveldb::EnvWrapper::UnlockFile ( FileLock l)
inlinevirtual

Implements leveldb::Env.

Definition at line 308 of file env.h.

Member Data Documentation

Env* leveldb::EnvWrapper::target_
private

Definition at line 328 of file env.h.


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