|
Google Cloud Spanner C++ Client
0.10.0
A C++ Client Library for Google Cloud Spanner
|
The KeyBound class is a regular type that represents an open or closed endpoint for a range of keys.
More...
#include <google/cloud/spanner/keys.h>
Public Types | |
| enum | Bound { Bound::kClosed, Bound::kOpen } |
An enum indicating whether the Key is included (closed) or excluded (open). More... | |
Public Member Functions | |
| KeyBound ()=delete | |
| Not default constructible. More... | |
| KeyBound (Key key, Bound bound) | |
Constructs an instance with the given key and bound. More... | |
| Key const & | key () const & |
Returns the Key. More... | |
| Key && | key () && |
Returns the Key (by move). More... | |
| Bound | bound () const |
Returns the Bound. More... | |
Copy and move semantics. | |
| KeyBound (KeyBound const &)=default | |
| KeyBound & | operator= (KeyBound const &)=default |
| KeyBound (KeyBound &&)=default | |
| KeyBound & | operator= (KeyBound &&)=default |
Friends | |
Equality. | |
| bool | operator== (KeyBound const &a, KeyBound const &b) |
| bool | operator!= (KeyBound const &a, KeyBound const &b) |
The KeyBound class is a regular type that represents an open or closed endpoint for a range of keys.
A range of keys is defined by a starting KeyBound and an ending KeyBound, and it logically includes all intermediate keys, optionally including/excluding the bounds.
KeyBounds can be "open", meaning the matching row will be excluded from the results, or "closed" meaning the matching row will be included. KeyBound instances should be created with the MakeKeyBoundOpen() or MakeKeyBoundClosed() factory functions.
|
strong |
|
delete |
Not default constructible.
|
default |
|
default |
|
inline |
|
inline |
|
inline |
1.8.15