dcrud  0.0.0
Distributed data and services
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros
ICache.h
Go to the documentation of this file.
1 #pragma once
2 #ifdef __cplusplus
3 extern "C" {
4 #endif
5 
6 #include "Shareable.h"
7 #include "Status.h"
8 
9 #include <coll/Set.h>
10 
11 UTIL_ADT( dcrudICache );
12 
13 typedef bool( * dcrudPredicate)( dcrudShareable item );
14 
15 void dcrudICache_setOwnership( dcrudICache This, bool enabled );
16 bool dcrudICache_owns ( dcrudICache This, dcrudGUID id );
17 dcrudStatus dcrudICache_create ( dcrudICache This, dcrudShareable item );
18 dcrudShareable dcrudICache_read ( dcrudICache This, dcrudGUID id );
19 dcrudStatus dcrudICache_update ( dcrudICache This, dcrudShareable item );
20 dcrudStatus dcrudICache_delete ( dcrudICache This, dcrudShareable item );
21 collForeachResult dcrudICache_foreach ( dcrudICache This, collForeachFunction fn, void * userData );
22 collSet dcrudICache_select ( dcrudICache This, dcrudPredicate query );
23 dcrudStatus dcrudICache_publish ( dcrudICache This );
24 void dcrudICache_subscribe ( dcrudICache This, dcrudClassID id );
25 void dcrudICache_refresh ( dcrudICache This );
26 
27 #ifdef __cplusplus
28 }
29 #endif
void dcrudICache_refresh(dcrudICache This)
enum dcrudStatus_e dcrudStatus
dcrudStatus dcrudICache_publish(dcrudICache This)
void dcrudICache_subscribe(dcrudICache This, dcrudClassID id)
void dcrudICache_setOwnership(dcrudICache This, bool enabled)
bool(* collForeachFunction)(collForeach *context)
collSet dcrudICache_select(dcrudICache This, dcrudPredicate query)
bool(* dcrudPredicate)(dcrudShareable item)
Definition: ICache.h:13
UTIL_ADT(dcrudICache)
void * collForeachResult
dcrudStatus dcrudICache_update(dcrudICache This, dcrudShareable item)
int bool
Definition: types.h:11
bool dcrudICache_owns(dcrudICache This, dcrudGUID id)
dcrudStatus dcrudICache_create(dcrudICache This, dcrudShareable item)
dcrudStatus dcrudICache_delete(dcrudICache This, dcrudShareable item)
dcrudShareable dcrudICache_read(dcrudICache This, dcrudGUID id)
collForeachResult dcrudICache_foreach(dcrudICache This, collForeachFunction fn, void *userData)