knowrob
2.1.0
A Knowledge Base System for Cognition-enabled Robots
Index.h
Go to the documentation of this file.
1
/*
2
* This file is part of KnowRob, please consult
3
* https://github.com/knowrob/knowrob for license details.
4
*/
5
6
#ifndef KNOWROB_MONGO_INDEX_H
7
#define KNOWROB_MONGO_INDEX_H
8
9
namespace
knowrob::mongo
{
13
enum class
IndexType
{
14
ASCENDING
= 1,
15
DESCENDING
= -1,
16
};
17
21
struct
IndexKey {
22
explicit
IndexKey
(
const
char
*key,
IndexType
type
=
IndexType::ASCENDING
)
23
:
value
(key),
type
(
type
) {};
24
const
std::string
value
;
25
const
IndexType
type
;
26
};
27
}
28
29
#endif
//KNOWROB_MONGO_INDEX_H
knowrob::mongo
Definition:
BindingsCursor.h:12
knowrob::mongo::IndexType
IndexType
Definition:
Index.h:13
knowrob::mongo::IndexType::ASCENDING
@ ASCENDING
knowrob::mongo::IndexType::DESCENDING
@ DESCENDING
knowrob::parsers::terms::string
TermRule & string()
Definition:
terms.cpp:63
knowrob::mongo::IndexKey::IndexKey
IndexKey(const char *key, IndexType type=IndexType::ASCENDING)
Definition:
Index.h:22
knowrob::mongo::IndexKey::value
const std::string value
Definition:
Index.h:23
knowrob::mongo::IndexKey::type
const IndexType type
Definition:
Index.h:25
include
knowrob
storage
mongo
Index.h
Generated by
1.9.1