leveldb
Public Member Functions | Public Attributes | List of all members
leveldb::anonymous_namespace{table_test.cc}::STLLessThan Struct Reference
Collaboration diagram for leveldb::anonymous_namespace{table_test.cc}::STLLessThan:
Collaboration graph
[legend]

Public Member Functions

 STLLessThan ()
 
 STLLessThan (const Comparator *c)
 
bool operator() (const std::string &a, const std::string &b) const
 

Public Attributes

const Comparatorcmp
 

Detailed Description

Definition at line 79 of file table_test.cc.

Constructor & Destructor Documentation

§ STLLessThan() [1/2]

leveldb::anonymous_namespace{table_test.cc}::STLLessThan::STLLessThan ( )
inline

Definition at line 82 of file table_test.cc.

82 : cmp(BytewiseComparator()) { }
const Comparator * BytewiseComparator()
Definition: comparator.cc:76

§ STLLessThan() [2/2]

leveldb::anonymous_namespace{table_test.cc}::STLLessThan::STLLessThan ( const Comparator c)
inline

Definition at line 83 of file table_test.cc.

Member Function Documentation

§ operator()()

bool leveldb::anonymous_namespace{table_test.cc}::STLLessThan::operator() ( const std::string &  a,
const std::string &  b 
) const
inline

Definition at line 84 of file table_test.cc.

84  {
85  return cmp->Compare(Slice(a), Slice(b)) < 0;
86  }
virtual int Compare(const Slice &a, const Slice &b) const =0
Here is the call graph for this function:

Member Data Documentation

§ cmp

const Comparator* leveldb::anonymous_namespace{table_test.cc}::STLLessThan::cmp

Definition at line 80 of file table_test.cc.


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