firebase:: firestore:: FieldPath
#include <field_path.h>
AFieldPath refers to a field in a document.
Summary
The path may consist of a single field name (referring to a top level field in the document) or a list of field names (referring to a nested field in the document).
Constructors and Destructors | |
|---|---|
FieldPath()Creates an invalidFieldPath that has to be reassigned before it can be used. | |
FieldPath(std::initializer_list< std::string > field_names)Creates aFieldPath from the provided field names. | |
FieldPath(const std::vector< std::string > & field_names)Creates aFieldPath from the provided field names. | |
FieldPath(constFieldPath & other)Copy constructor. | |
FieldPath(FieldPath && other)Move constructor. | |
~FieldPath() |
Friend classes | |
|---|---|
operator<< | friend std::ostream &Outputs the string representation of this FieldPath to the given stream. |
std::hash< FieldPath > | friend struct |
Public functions | |
|---|---|
ToString() const | std::stringReturns a string representation of this FieldPath for logging/debugging purposes. |
is_valid() const | boolReturns true if this FieldPath is valid, false if it is not valid. |
operator=(constFieldPath & other) | Copy assignment operator. |
operator=(FieldPath && other) noexcept | Move assignment operator. |
Public static functions | |
|---|---|
DocumentId() | A special sentinelFieldPath to refer to the ID of a document. |
Friend classes
operator<<
friendstd::ostream&operator<<(std::ostream&out,constFieldPath&path)
Outputs the string representation of thisFieldPath to the given stream.
See also:ToString() for comments on the representation format.
std::hash< FieldPath >
friendstructstd::hash<FieldPath>
Public functions
FieldPath
FieldPath()
FieldPath
FieldPath(std::initializer_list<std::string>field_names)
Creates aFieldPath from the provided field names.
If more than one field name is provided, the path will point to a nested field in a document.
| Details | |||
|---|---|---|---|
| Parameters |
|
FieldPath
FieldPath(conststd::vector<std::string>&field_names)
Creates aFieldPath from the provided field names.
If more than one field name is provided, the path will point to a nested field in a document.
| Details | |||
|---|---|---|---|
| Parameters |
|
FieldPath
FieldPath(constFieldPath&other)
Copy constructor.
This performs a deep copy, creating an independent instance.
| Details | |||
|---|---|---|---|
| Parameters |
|
FieldPath
FieldPath(FieldPath&&other)noexcept
ToString
std::stringToString()const
Returns a string representation of thisFieldPath for logging/debugging purposes.
is_valid
boolis_valid()const
~FieldPath
~FieldPath()
Public static functions
Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-01-23 UTC.