Skip to content

Commit dacd7ef

Browse files
var-consta-maurice
authored andcommitted
Small fixes to Firestore doc comments.
PiperOrigin-RevId: 297232608
1 parent 6d40d04 commit dacd7ef

File tree

4 files changed

+29
-3
lines changed

4 files changed

+29
-3
lines changed

firestore/src/include/firebase/firestore.h

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,12 @@
5151
#include "firebase/firestore/timestamp.h"
5252

5353
namespace firebase {
54+
/**
55+
* @brief Cloud Firestore API.
56+
*
57+
* Cloud Firestore is a flexible, scalable database for mobile, web, and server
58+
* development from Firebase and Google Cloud Platform.
59+
*/
5460
namespace firestore {
5561

5662
class FirestoreInternal;

firestore/src/include/firebase/firestore/event_listener.h

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,12 @@
2222
namespace firebase {
2323
namespace firestore {
2424

25-
/** An interface for event listeners. */
25+
/**
26+
* An interface for event listeners.
27+
*
28+
* @note This class should only be used when using the STLPort C++ runtime
29+
* library.
30+
*/
2631
template <typename T>
2732
class EventListener {
2833
public:
@@ -40,13 +45,18 @@ class EventListener {
4045
virtual void OnEvent(const T& value, Error error) = 0;
4146
};
4247

43-
/** Interface used for void EventListeners that don't produce a value. */
48+
/**
49+
* Interface used for void EventListeners that don't produce a value.
50+
*
51+
* @note This class should only be used when using the STLPort C++ runtime
52+
* library.
53+
*/
4454
template <>
4555
class EventListener<void> {
4656
public:
4757
virtual ~EventListener() = default;
4858

49-
/**
59+
/**
5060
* @brief OnEvent will be called with the error if an error occurred.
5161
*
5262
* @param error The error if there was error. Error::Ok otherwise.

firestore/src/include/firebase/firestore/map_field_value.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,14 @@ class FieldPath;
2727
class FieldValue;
2828

2929
#ifdef STLPORT
30+
/** @brief A map of `FieldValue`s indexed by stringified field paths. */
3031
using MapFieldValue = std::tr1::unordered_map<std::string, FieldValue>;
32+
/** @brief A map of `FieldValue`s indexed by field paths. */
3133
using MapFieldPathValue = std::tr1::unordered_map<FieldPath, FieldValue>;
3234
#else
35+
/** @brief A map of `FieldValue`s indexed by stringified field paths. */
3336
using MapFieldValue = std::unordered_map<std::string, FieldValue>;
37+
/** @brief A map of `FieldValue`s indexed by field paths. */
3438
using MapFieldPathValue = std::unordered_map<FieldPath, FieldValue>;
3539
#endif
3640

firestore/src/include/firebase/firestore/metadata_changes.h

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,13 @@ namespace firestore {
2626
* trigger snapshot events.
2727
*/
2828
enum class MetadataChanges {
29+
/** Snapshot events will not be triggered by metadata-only changes. */
2930
kExclude,
31+
32+
/**
33+
* Snapshot events will be triggered by any changes, including metadata-only
34+
* changes.
35+
*/
3036
kInclude,
3137
};
3238

0 commit comments

Comments
 (0)