1#ifndef _DITTO_DOCUMENT_ID_PATH_
2#define _DITTO_DOCUMENT_ID_PATH_
4#include "document_path_component.hpp"
23 friend struct DocumentId;
27 std::vector<DocumentPathComponent> path_components;
36 DocumentIdPath(nlohmann::json value, DocumentPathComponent initial_path);
47 DocumentIdPath(
const DocumentIdPath *document_id_path, std::string key);
57 DocumentIdPath(
const DocumentIdPath *document_id_path, std::size_t index);
60 DocumentIdPath operator[](std::string key);
61 DocumentIdPath operator[](std::size_t index);
double get_double_value() const
Returns the value at the previously specified key in the document ID as a double. If the key was inva...
Definition DocumentIdPath.cpp:56
nlohmann::json get_json() const
Returns the value at the previously specified key in the document ID as a nlohmann::json object....
Definition DocumentIdPath.cpp:80
float get_float_value() const
Returns the value at the previously specified key in the document ID as a float. If the key was inval...
Definition DocumentIdPath.cpp:64
int get_int_value() const
Returns the value at the previously specified key in the document ID as an int. If the key was invali...
Definition DocumentIdPath.cpp:48
bool get_bool_value() const
Returns the value at the previously specified key in the document ID as a bool. If the key was invali...
Definition DocumentIdPath.cpp:72
std::string get_string_value() const
Returns the value at the previously specified key in the document ID as a std::string....
Definition DocumentIdPath.cpp:40