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::Slice Class Reference

#include <slice.h>

Public Member Functions

 Slice ()
 
 Slice (const char *d, size_t n)
 
 Slice (const std::string &s)
 
 Slice (const char *s)
 
const char * data () const
 
size_t size () const
 
bool empty () const
 
char operator[] (size_t n) const
 
void clear ()
 
void remove_prefix (size_t n)
 
std::string ToString () const
 
int compare (const Slice &b) const
 
bool starts_with (const Slice &x) const
 

Private Attributes

const char * data_
 
size_t size_
 

Detailed Description

Definition at line 25 of file slice.h.

Constructor & Destructor Documentation

leveldb::Slice::Slice ( )
inline

Definition at line 28 of file slice.h.

leveldb::Slice::Slice ( const char *  d,
size_t  n 
)
inline

Definition at line 31 of file slice.h.

leveldb::Slice::Slice ( const std::string &  s)
inline

Definition at line 34 of file slice.h.

leveldb::Slice::Slice ( const char *  s)
inline

Definition at line 37 of file slice.h.

Member Function Documentation

void leveldb::Slice::clear ( )
inline

Definition at line 56 of file slice.h.

int leveldb::Slice::compare ( const Slice b) const
inline

Definition at line 96 of file slice.h.

const char* leveldb::Slice::data ( ) const
inline

Definition at line 40 of file slice.h.

bool leveldb::Slice::empty ( ) const
inline

Definition at line 46 of file slice.h.

char leveldb::Slice::operator[] ( size_t  n) const
inline

Definition at line 50 of file slice.h.

void leveldb::Slice::remove_prefix ( size_t  n)
inline

Definition at line 59 of file slice.h.

size_t leveldb::Slice::size ( ) const
inline

Definition at line 43 of file slice.h.

bool leveldb::Slice::starts_with ( const Slice x) const
inline

Definition at line 75 of file slice.h.

std::string leveldb::Slice::ToString ( ) const
inline

Definition at line 66 of file slice.h.

Member Data Documentation

const char* leveldb::Slice::data_
private

Definition at line 81 of file slice.h.

size_t leveldb::Slice::size_
private

Definition at line 82 of file slice.h.


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