19 #ifndef __UT_SGUID_H__
20 #define __UT_SGUID_H__
55 void writeBinary(std::ostream& os)
const;
61 static void setMachineId(
uint32 machine_id);
67 size_t h = SYSwang_inthash(myHigh);
68 SYShashCombine(h, SYSwang_inthash(myLow));
81 return (
uint64)myHigh << 32 | myLow;
88 bool isEmpty_()
const {
return myHigh == 0 && myLow == 0; }
92 void generateIfEmpty_()
const
96 const_cast<UT_SGuid*
>(
this)->generate_();
103 static uint32 theMachineId;
122 #endif // __UT_SGUID_H__
SYS_NO_DISCARD_RESULT uint64 toInt64() const
bool operator!=(const UT_SGuid &sguid) const
GLsizei const GLfloat * value
unsigned long long uint64
std::ostream & operator<<(std::ostream &ostr, const DataType &a)
bool operator==(const BaseDimensions< T > &a, const BaseDimensions< Y > &b)
UT_ORMColumnType UTsqlOrmColumnType< UT_SGuid >()
#define SYS_NO_DISCARD_RESULT
UT_API bool UTsqlBind(UT_SqlStatement &stmt, int idx, const UT_SGuid &sguid)
GLfloat GLfloat GLfloat GLfloat h
LeafData & operator=(const LeafData &)=delete
UT_API bool UTsqlGet(const UT_SqlStatement &stmt, int idx, UT_SGuid &sguid)
size_t hash_value(const UT_SGuid &guid)