5 #ifndef JODA_VIEWSTRUCTURE_H
6 #define JODA_VIEWSTRUCTURE_H
10 #include <unordered_map>
27 typedef std::string
KEY;
41 typedef std::unordered_map<KEY, ID> KEY_ID_M_T;
42 typedef std::unordered_map<ID, const KEY *> ID_KEY_M_T;
51 std::pair<size_t, size_t>
reserve(
size_t size);
rapidjson::GenericValue< RJChar, RJMemoryPoolAlloc > RJValue
Definition: RJFwd.h:29
Definition: ViewStructure.h:14
MemberVector::const_iterator MemberIterator
Definition: ViewStructure.h:70
ViewStructure(ViewStructure &&e)=default
ID getOrAdd(const KEY &key)
Definition: ViewStructure.cpp:9
const KEY * getKey(const ID &id) const
Definition: ViewStructure.cpp:32
std::pair< size_t, size_t > reserve(size_t size)
Definition: ViewStructure.cpp:41
ViewStructure & operator=(ViewStructure &&e)=default
ViewStructure(const ViewStructure &e)=delete
size_t ID
Definition: ViewStructure.h:26
std::vector< ObjectMember > MemberVector
Definition: ViewStructure.h:69
size_t estimateSize() const
Definition: ViewStructure.cpp:69
ViewStructure(size_t docCount=1)
Definition: ViewStructure.cpp:67
MemberIterator beginMember() const
Definition: ViewStructure.cpp:51
void addMember(size_t i, ViewStructure::ID, const RJValue *val)
Definition: ViewStructure.cpp:55
std::string KEY
Definition: ViewStructure.h:27
ViewStructure & operator=(const ViewStructure &e)=delete
Definition: VirtualObject.h:13
Definition: ViewStructure.h:55
ObjectMember(const ObjectMember &o)=delete
ObjectMember()
Definition: ViewStructure.h:56
ObjectMember & operator=(ObjectMember &&o)=default
ObjectMember & operator=(const ObjectMember &o)=delete
ObjectMember(ObjectMember &&o)=default
const RJValue * val
Definition: ViewStructure.h:65
ViewStructure::ID key
Definition: ViewStructure.h:64
const VirtualObject * obj
Definition: ViewStructure.h:66