![]() |
![]() |
![]() |
Holyrel Library Reference Manual | ![]() |
---|
Restricted RelationRestricted Relation — Restricted relation. |
#include <libhrel/relation.h> HRelationRestrict; gboolean (*HTuplePredFunc) (HTuple *tuple, gpointer user_data); GType h_relation_restrict_get_type (void); HRelation* h_relation_restrict (HRelation *relation, HTuplePredFunc predicate_func, gpointer user_data);
gboolean (*HTuplePredFunc) (HTuple *tuple, gpointer user_data);
tuple : |
|
user_data : |
|
Returns : |
GType h_relation_restrict_get_type (void);
Returns the Glib type ID of HRelationRestrict
Returns : | type ID |
HRelation* h_relation_restrict (HRelation *relation, HTuplePredFunc predicate_func, gpointer user_data);
Creates a 'restricted' relation, containing every tuple in
relation
that evaluates to TRUE with predicate_func
.
relation : |
a HRelation to perform restrict on |
predicate_func : |
tuple predicate function |
user_data : |
Custom data to pass to predicate_func
|
Returns : | a HRelationRestrict |
<< Relation | Sorted Relation >> |