52 static constexpr
Hash theInvalidHash = 0;
81 int64 getMemoryUsage(
bool inclusive)
const;
87 return (myType == eFileExpected); }
89 return (myType == eFileGenerated); }
102 void setHash(
Hash hash);
105 void setType(FileType
type);
110 bool own()
const {
return myOwn; }
111 void setOwn(
bool own);
133 static bool load(
Array& array,
153 SYShashCombine(hash, file.
type());
159 template <
typename T>
160 struct DefaultClearer;
171 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