3 #ifndef GEODE_DISKPOLICYTYPE_H_ 4 #define GEODE_DISKPOLICYTYPE_H_ 26 #include "geode_globals.hpp" 43 typedef enum { NONE = 0, OVERFLOWS, PERSIST }
PolicyType;
46 static const char* fromOrdinal(
const uint8_t ordinal);
49 static PolicyType fromName(
const char* name);
55 return (type == DiskPolicyType::OVERFLOWS);
59 inline static bool isNone(
const PolicyType type) {
60 return (type == DiskPolicyType::NONE);
63 inline static bool isPersist(
const PolicyType type) {
64 return (type == DiskPolicyType::PERSIST);
70 static const char* names[];
76 #endif // GEODE_DISKPOLICYTYPE_H_ PolicyType
Values for setting PolicyType.
Definition: DiskPolicyType.hpp:43
static bool isNone(const PolicyType type)
Return whether this is NONE.
Definition: DiskPolicyType.hpp:59
Each enum represents a predefined RegionAttributes in a Cache.
Definition: Assert.hpp:31
#define CPPCACHE_EXPORT
Defines a Geode CPPCACHE export.
Definition: geode_base.hpp:58
Enumerated type for disk policy.
Definition: DiskPolicyType.hpp:37
static bool isPersist(const PolicyType type)
Return whether this is persist.
Definition: DiskPolicyType.hpp:63
static bool isOverflow(const PolicyType type)
Returns whether this is one of the overflow to disk type.
Definition: DiskPolicyType.hpp:54
This namespace contains all the Geode C++ API classes, enumerations and globals.