3 #ifndef GEODE_FUNCTIONSERVICE_H_ 4 #define GEODE_FUNCTIONSERVICE_H_ 28 #include "geode_globals.hpp" 37 #define GF_TYPE_IS_POOL(T) \ 38 apache::geode::client::TypeHelper::SuperSubclass< \ 39 apache::geode::client::Pool, T>::result 40 #define GF_TYPE_IS_POOL_TYPE(T) \ 41 apache::geode::client::TypeHelper::YesNoType<GF_TYPE_IS_POOL(T)>::value 88 return onServerWithPool(pool);
106 return onServerWithCache(cache);
109 template <
typename T>
111 return onServer(poolOrCache, GF_TYPE_IS_POOL_TYPE(T));
128 return onServersWithPool(pool);
146 return onServersWithCache(cache);
149 template <
typename T>
151 return onServers(poolOrCache, GF_TYPE_IS_POOL_TYPE(T));
165 template <
typename T>
167 TypeHelper::yes_type isPool) {
168 return onServerWithPool(pool);
171 template <
typename T>
173 TypeHelper::no_type isPool) {
174 return onServerWithCache(cache);
177 template <
typename T>
179 TypeHelper::yes_type isPool) {
180 return onServersWithPool(pool);
183 template <
typename T>
185 TypeHelper::no_type isPool) {
186 return onServersWithCache(cache);
193 #endif // GEODE_FUNCTIONSERVICE_H_ Each enum represents a predefined RegionAttributes in a Cache.
Definition: Assert.hpp:31
static ExecutionPtr onServer(const PoolPtr &pool)
Returns a Execution object that can be used to execute a data independent function on a server in the...
Definition: FunctionService.hpp:87
#define CPPCACHE_EXPORT
Defines a Geode CPPCACHE export.
Definition: geode_base.hpp:58
entry point for function execution
Definition: FunctionService.hpp:52
static ExecutionPtr onServer(const RegionServicePtr &cache)
Returns a Execution object that can be used to execute a data independent function on a server where ...
Definition: FunctionService.hpp:105
Defines a reference counted shared pointer.
Definition: SharedPtr.hpp:52
static ExecutionPtr onServers(const RegionServicePtr &cache)
Returns a Execution object that can be used to execute a data independent function on all the servers...
Definition: FunctionService.hpp:145
This abstract base class is the base class of all user objects that have the shared capability of ref...
Definition: SharedBase.hpp:40
static ExecutionPtr onServers(const PoolPtr &pool)
Returns a Execution object that can be used to execute a data independent function on all the servers...
Definition: FunctionService.hpp:127
This namespace contains all the Geode C++ API classes, enumerations and globals.