3 #ifndef GEODE_EXPIRATIONACTION_H_ 4 #define GEODE_EXPIRATIONACTION_H_ 23 #include "geode_globals.hpp" 61 static Action fromName(
const char* name);
68 return (type == INVALIDATE);
76 return (type == LOCAL_INVALIDATE);
82 inline static bool isDestroy(
const Action type) {
return (type == DESTROY); }
88 return (type == LOCAL_DESTROY);
94 inline static bool isLocal(
const Action type) {
95 return (type == LOCAL_INVALIDATE) || (type == LOCAL_DESTROY);
102 return (type == INVALIDATE) || (type == DESTROY);
106 static const char* fromOrdinal(
const int ordinal);
111 static char* names[];
117 #endif // GEODE_EXPIRATIONACTION_H_ static bool isLocalInvalidate(const Action type)
Returns whether this is the action for local invalidate.
Definition: ExpirationAction.hpp:75
Enumerated type for expiration actions.
Definition: ExpirationAction.hpp:38
Each enum represents a predefined RegionAttributes in a Cache.
Definition: Assert.hpp:31
static bool isLocal(const Action type)
Returns whether this action is local.
Definition: ExpirationAction.hpp:94
#define CPPCACHE_EXPORT
Defines a Geode CPPCACHE export.
Definition: geode_base.hpp:58
static bool isInvalidate(const Action type)
Returns whether this is the action for distributed invalidate.
Definition: ExpirationAction.hpp:67
static bool isLocalDestroy(const Action type)
Returns whether this is the action for local destroy.
Definition: ExpirationAction.hpp:87
static bool isDistributed(const Action type)
Returns whether this action is distributed.
Definition: ExpirationAction.hpp:101
When expired, invalidated locally only.
Definition: ExpirationAction.hpp:47
When the region or cached object expires, it is destroyed.
Definition: ExpirationAction.hpp:50
static bool isDestroy(const Action type)
Returns whether this is the action for distributed destroy.
Definition: ExpirationAction.hpp:82
Action
Definition: ExpirationAction.hpp:43
When expired, destroyed locally only.
Definition: ExpirationAction.hpp:52
This namespace contains all the Geode C++ API classes, enumerations and globals.