Home | History | Annotate | Download | only in syncable

Lines Matching refs:Id

20 class Id;
28 std::ostream& operator<<(std::ostream& out, const Id& id);
30 // For historical reasons, 3 concepts got everloaded into the Id:
37 // 1. c<client only opaque id> for client items that have not been committed.
39 // 3. s<server provided opaque id> for items that the server knows about.
40 class Id {
44 friend std::ostream& operator<<(std::ostream& out, const Id& id);
50 inline Id() : s_("r") { }
51 inline Id(const Id& that) {
54 inline Id& operator = (const Id& that) {
58 inline void Copy(const Id& that) {
76 inline int compare(const Id& that) const {
79 inline bool operator == (const Id& that) const {
82 inline bool operator != (const Id& that) const {
85 inline bool operator < (const Id& that) const {
88 inline bool operator > (const Id& that) const {
91 // Return the next highest ID in the lexicographic ordering. This is
94 Id GetLexicographicSuccessor() const;
96 // Dumps the ID as a value and returns it. Transfers ownership of
102 static Id CreateFromServerId(const std::string& server_id);
104 // id from the server. Returns a client only opaque id.
105 static Id CreateFromClientString(const std::string& local_id);
107 // This method returns an ID that will compare less than any valid ID.
108 // The returned ID is not a valid ID itself. This is useful for
110 static Id GetLeastIdForLexicographicComparison();
116 extern const Id kNullId;