Restricted Relation

Restricted Relation — Restricted relation.

Synopsis


#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);

Object Hierarchy


  GObject
   +----HRelation
         +----HRelationRestrict

Description

Details

HRelationRestrict

typedef struct _HRelationRestrict HRelationRestrict;


HTuplePredFunc ()

gboolean    (*HTuplePredFunc)               (HTuple *tuple,
                                             gpointer user_data);

tuple :
user_data :
Returns :

h_relation_restrict_get_type ()

GType       h_relation_restrict_get_type    (void);

Returns the Glib type ID of HRelationRestrict

Returns : type ID

h_relation_restrict ()

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