53 static constexpr
Hash theInvalidHash = 0;
82 int64 getMemoryUsage(
bool inclusive)
const;
88 return (myType == eFileExpected); }
90 return (myType == eFileGenerated); }
103 void setHash(
Hash hash);
106 void setType(FileType
type);
111 bool own()
const {
return myOwn; }
112 void setOwn(
bool own);
145 static bool load(
Array& array,
172 SYShashCombine(hash, file.
type());
178 template <
typename T>
179 struct DefaultClearer;
190 static const bool clearNeedsDestruction =
false;
static const UT_StringHolder theHashKey
static const Array theEmptyFileArray
STATIC_INLINE size_t Hash(const char *s, size_t len)
static const PDG_File theEmptyFile
Global empty file and empty file list statics.
static void clearConstruct(PDG_File *p)
std::size_t SYS_HashType
Define the type for hash values.
static const UT_StringHolder theTypeKey
static void clear(PDG_File &file)
Class which writes ASCII or binary JSON streams.
static const UT_StringHolder theSizeKey
static const UT_StringHolder theTagKey
OIIO_FORCEINLINE vbool4 operator>=(const vint4 &a, const vint4 &b)
bool operator==(const BaseDimensions< T > &a, const BaseDimensions< Y > &b)
OIIO_FORCEINLINE vbool4 operator>(const vint4 &a, const vint4 &b)
OIIO_FORCEINLINE vbool4 operator<=(const vint4 &a, const vint4 &b)
int64 Hash
The file hash/modtime type.
const UT_StringHolder & tag() const
bool operator<(const GU_TetrahedronFacet &a, const GU_TetrahedronFacet &b)
const UT_StringHolder & data() const
static bool isClear(const PDG_File &file)
SIM_API const UT_StringHolder force
Class to store JSON objects as C++ objects.
static const UT_StringHolder theDataKey
JSON Serialization keys.
PDG_File::FileType type() const
bool operator!=(const BaseDimensions< T > &a, const BaseDimensions< Y > &b)
SYS_FORCE_INLINE size_t hash_value(const PDG_File &file)
static const UT_StringHolder theOwnKey