![]() |
ProvSQL C/C++ API
Adding support for provenance and uncertainty management to PostgreSQL databases
|
A UUID as its 16 bytes, read as two big-endian words. More...
#include "Circuit.h"
Public Member Functions | |
| void | toBytes (unsigned char *p) const |
Write the 16 bytes of the UUID to p. | |
| std::string | str () const |
| The text form of the UUID, as PostgreSQL prints it. | |
| bool | operator== (const gate_uuid &o) const |
| Equality of the 16 bytes. | |
| bool | operator!= (const gate_uuid &o) const |
| Inequality of the 16 bytes. | |
| bool | operator< (const gate_uuid &o) const |
| The order of the bytes. | |
| template<class Archive> | |
| void | serialize (Archive &ar, const unsigned int) |
| Boost serialisation. | |
Static Public Member Functions | |
| static gate_uuid | fromBytes (const unsigned char *p) |
The UUID whose 16 bytes start at p. | |
| static bool | parse (const std::string &s, gate_uuid &u) |
Read s as a UUID in the text form PostgreSQL prints (lowercase, xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx). | |
Public Attributes | |
| std::uint64_t | hi = 0 |
| The first eight bytes, big-endian. | |
| std::uint64_t | lo = 0 |
| The last eight bytes, big-endian. | |
A UUID as its 16 bytes, read as two big-endian words.
The key under which a circuit finds a gate from its UUID: hashing and comparing it touches 16 bytes, where the text form of a UUID has 36. Keys compare as their bytes do, in order (as memcmp would).
|
inlinestatic |
|
inline |
|
inline |
|
inline |
|
inlinestatic |
Read s as a UUID in the text form PostgreSQL prints (lowercase, xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx).
Any other string, even one PostgreSQL would read as the same UUID, is refused, so that the text of a name is given back as it came.
false if s is not in that form. Definition at line 93 of file Circuit.h.

|
inline |
|
inline |
|
inline |
| std::uint64_t gate_uuid::hi = 0 |
| std::uint64_t gate_uuid::lo = 0 |