Multi-ApplicationOnlineProfiling  2.1
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages

A Key_Entry identifies a set of Knowledge_System. More...

Data Structures

struct  Key_entry
 The Key_entry struct. More...
 

Functions

void Key_entry_init (struct Key_entry *ke, uint64_t key)
 Init a key entry with given key. More...
 
void Key_entry_release (struct Key_entry *ke)
 Clears a key entry. More...
 
void Key_entry_push_ks (struct Key_entry *ke, struct Knowledge_system *ks)
 associates a Knowledge_system to a key entry More...
 
void Key_entry_pop_ks (struct Key_entry *ke, struct Knowledge_system *ks)
 Removes an association between a Knowledge_system and its key. More...
 
struct Knowledge_system ** Key_entry_get_ks (struct Key_entry *ke, struct Knowledge_system *ks)
 Search in the key entry if a Knowledge_system is associated with it. More...
 
void Key_entry_clear_ks (struct Key_entry *ke)
 Clear all references to Ks in this entry. More...
 
int Key_entry_get_count (struct Key_entry *ke)
 Get the number of Ks in this entry. More...
 
int Key_entry_has_KS_type (struct Key_entry *ke, uint64_t type)
 Check if a KS type is present in a key entry. More...
 
void Key_entry_walk (struct Key_entry *ke, int(*handler)(struct Knowledge_system *, void *), void *arg)
 Call a handler on every Ks of a key entry. More...
 

Detailed Description

A Key_Entry identifies a set of Knowledge_System.

Function Documentation

void Key_entry_clear_ks ( struct Key_entry ke)

Clear all references to Ks in this entry.

Parameters
kethe key entry to clear

Definition at line 138 of file Key_Entry.c.

Here is the call graph for this function:

int Key_entry_get_count ( struct Key_entry ke)

Get the number of Ks in this entry.

Parameters
kethe key entry where to count
Returns
the number of Ks in this key entry

Definition at line 153 of file Key_Entry.c.

Here is the call graph for this function:

Here is the caller graph for this function:

struct Knowledge_system** Key_entry_get_ks ( struct Key_entry ke,
struct Knowledge_system ks 
)

Search in the key entry if a Knowledge_system is associated with it.

Parameters
kethe key entry where to find the Knowledge_system
ksthe ks to search
Returns
NULL if the Knowledge_system is not associated with the given ke

Definition at line 67 of file Key_Entry.c.

Here is the call graph for this function:

Here is the caller graph for this function:

int Key_entry_has_KS_type ( struct Key_entry ke,
uint64_t  type 
)

Check if a KS type is present in a key entry.

Parameters
kethe key entry
typethe type to search
Returns
1 if a Ks of type type is found in ke

Definition at line 181 of file Key_Entry.c.

Here is the call graph for this function:

void Key_entry_init ( struct Key_entry ke,
uint64_t  key 
)

Init a key entry with given key.

Parameters
kethe key entry to initialize
keythe key

Definition at line 26 of file Key_Entry.c.

Here is the call graph for this function:

Here is the caller graph for this function:

void Key_entry_pop_ks ( struct Key_entry ke,
struct Knowledge_system ks 
)

Removes an association between a Knowledge_system and its key.

Parameters
kethe key entry where to remove association
ksthe Knowledge_system where to remove association

Definition at line 123 of file Key_Entry.c.

Here is the call graph for this function:

Here is the caller graph for this function:

void Key_entry_push_ks ( struct Key_entry ke,
struct Knowledge_system ks 
)

associates a Knowledge_system to a key entry

Parameters
kethe key entry
ksthe Knowledge_system to associate to the key

Definition at line 93 of file Key_Entry.c.

Here is the call graph for this function:

Here is the caller graph for this function:

void Key_entry_release ( struct Key_entry ke)

Clears a key entry.

Parameters
kethe key entry to release

Definition at line 35 of file Key_Entry.c.

Here is the call graph for this function:

Here is the caller graph for this function:

void Key_entry_walk ( struct Key_entry ke,
int(*)(struct Knowledge_system *, void *)  handler,
void *  arg 
)

Call a handler on every Ks of a key entry.

Parameters
kethe key entry where to finc the set of Knowledge_system
handlerthe function to run on all Knowledge_system
argan argument to giver to handler

Definition at line 213 of file Key_Entry.c.

Here is the call graph for this function:

Here is the caller graph for this function: