Motr  M0
graph.h File Reference
#include "fid/fid.h"
#include "fid/fid_xc.h"
#include "lib/cookie.h"
#include "lib/cookie_xc.h"
#include "xcode/xcode_attr.h"
Include dependency graph for graph.h:

Go to the source code of this file.

Data Structures

struct  m0_garc
 
struct  m0_gvertice
 
struct  m0_graph
 
struct  m0_gvertice_type
 
struct  m0_garc_type
 

Macros

#define __MOTR_GRAPH_GRAPH_H__
 

Enumerations

enum  { M0_GRAPH_ARC_PER_NODE_MAX = 16 }
 

Functions

bool m0_gvertice_invariant (const struct m0_gvertice *vertice)
 
bool m0_graph_invariant (const struct m0_graph *graph)
 
bool m0_gvertice_type_invariant (const struct m0_gvertice_type *vt)
 
bool m0_garc_type_invariant (const struct m0_gvertice_type *vt, const struct m0_garc_type *atype)
 
void m0_gvertice_link (struct m0_gvertice *src, struct m0_gvertice *dst, const struct m0_garc_type *atype)
 
void m0_gvertice_unlink (struct m0_gvertice *src, struct m0_gvertice *dst, const struct m0_garc_type *atype)
 
bool m0_gvertice_linked (const struct m0_gvertice *src, const struct m0_gvertice *dst, const struct m0_garc_type *atype)
 
bool m0_gvertice_is_set (const struct m0_gvertice *vertice, const struct m0_garc_type *atype)
 
void m0_gvertice_init (struct m0_graph *g, struct m0_gvertice *vertice, const struct m0_gvertice_type *vt, const struct m0_fid *fid)
 
void m0_gvertice_fini (struct m0_graph *g, struct m0_gvertice *vertice)
 
struct m0_gverticem0_garc_try (const struct m0_gvertice *vertice, const struct m0_garc_type *atype)
 
int m0_garc_follow (const struct m0_gvertice *vertice, const struct m0_garc_type *atype,...)
 
void m0_gvertice_type_register (struct m0_gvertice_type *vt)
 
void m0_garc_type_register (const struct m0_garc_type *atype)
 
void m0_garc_type_pair_register (struct m0_garc_type *direct, struct m0_garc_type *reverse)
 
void m0_garc_type_add (struct m0_gvertice_type *vt, const struct m0_garc_type *atype)
 
M0_INTERNAL int m0_graph_mod_init (void)
 
M0_INTERNAL void m0_graph_mod_fini (void)
 

Macro Definition Documentation

◆ __MOTR_GRAPH_GRAPH_H__

#define __MOTR_GRAPH_GRAPH_H__

Definition at line 26 of file graph.h.