proxygen
|
#include <PerfectIndexMap.h>
Public Member Functions | |
PerfectIndexMap () | |
virtual | ~PerfectIndexMap ()=default |
folly::Optional< std::string > | getSingleOrNone (const std::string &keyStr) const |
folly::Optional< std::string > | getSingleOrNone (Key key) const |
void | add (const std::string &keyStr, const std::string &value) |
void | add (Key key, const std::string &value) |
void | set (const std::string &keyStr, const std::string &value) |
void | set (Key key, const std::string &value) |
bool | remove (const std::string &keyStr) |
bool | remove (Key key) |
size_t | size () |
Private Member Functions | |
const std::string * | getSingleKey (Key key) const |
const std::string * | getSingleOtherKey (const std::string &keyStr) const |
void | setKey (Key key, const std::string &value) |
void | setOtherKey (const std::string &keyStr, const std::string &value) |
bool | removeKey (Key key) |
bool | removeOtherKey (const std::string &keyStr) |
std::ptrdiff_t | searchForKey (Key key, const Key *&data) const |
std::ptrdiff_t | searchForOtherKey (const std::string &keyStr, size_t &startIndex) const |
void | addKeyToIndex (Key key, const std::string &value) |
void | addOtherKeyToIndex (const std::string &keyStr, const std::string &value) |
void | replaceKeyAtIndex (std::ptrdiff_t index, Key key, const std::string &value) |
void | replaceOtherKeyAtIndex (size_t namesIndex, const std::string &keyStr, const std::string &value) |
void | removeAtIndex (std::ptrdiff_t index) |
Private Attributes | |
size_t | otherKeyCount_ {0} |
size_t | noneKeyCount_ {0} |
folly::fbvector< Key > | keys_ |
folly::fbvector< size_t > | otherKeyNamesKeysIndex_ |
folly::fbvector< std::string > | otherKeyNames_ |
folly::fbvector< std::string > | values_ |
Definition at line 48 of file PerfectIndexMap.h.
|
inline |
Definition at line 51 of file PerfectIndexMap.h.
|
virtualdefault |
|
inline |
Definition at line 78 of file PerfectIndexMap.h.
|
inline |
Definition at line 88 of file PerfectIndexMap.h.
|
inlineprivate |
Definition at line 279 of file PerfectIndexMap.h.
|
inlineprivate |
Definition at line 283 of file PerfectIndexMap.h.
|
inlineprivate |
Definition at line 140 of file PerfectIndexMap.h.
|
inline |
Definition at line 56 of file PerfectIndexMap.h.
|
inline |
Definition at line 68 of file PerfectIndexMap.h.
|
inlineprivate |
Definition at line 153 of file PerfectIndexMap.h.
|
inline |
Definition at line 115 of file PerfectIndexMap.h.
|
inline |
Definition at line 123 of file PerfectIndexMap.h.
|
inlineprivate |
Definition at line 302 of file PerfectIndexMap.h.
|
inlineprivate |
Definition at line 210 of file PerfectIndexMap.h.
|
inlineprivate |
Definition at line 227 of file PerfectIndexMap.h.
|
inlineprivate |
Definition at line 290 of file PerfectIndexMap.h.
|
inlineprivate |
Definition at line 295 of file PerfectIndexMap.h.
|
inlineprivate |
Definition at line 245 of file PerfectIndexMap.h.
|
inlineprivate |
Definition at line 255 of file PerfectIndexMap.h.
|
inline |
Definition at line 97 of file PerfectIndexMap.h.
|
inline |
Definition at line 106 of file PerfectIndexMap.h.
|
inlineprivate |
Definition at line 165 of file PerfectIndexMap.h.
|
inlineprivate |
Definition at line 189 of file PerfectIndexMap.h.
|
inline |
Definition at line 128 of file PerfectIndexMap.h.
|
private |
Definition at line 350 of file PerfectIndexMap.h.
|
private |
Definition at line 341 of file PerfectIndexMap.h.
|
private |
Definition at line 340 of file PerfectIndexMap.h.
|
private |
Definition at line 366 of file PerfectIndexMap.h.
|
private |
Definition at line 358 of file PerfectIndexMap.h.
|
private |
Definition at line 370 of file PerfectIndexMap.h.