Motr
M0
|
Data Structures | |
struct | m0_garc |
struct | m0_gvertice |
struct | m0_graph |
struct | m0_gvertice_type |
struct | m0_garc_type |
Enumerations | |
enum | { VTYPE_MAX = 256 } |
enum | { M0_GRAPH_ARC_PER_NODE_MAX = 16 } |
Functions | |
static struct m0_garc * | arc_get (const struct m0_gvertice *src, const struct m0_garc_type *atype) |
static struct m0_gvertice * | arc_try (const struct m0_gvertice *vertice, const struct m0_garc_type *atype) |
static void | graph_add (struct m0_graph *g, struct m0_gvertice *vertice) |
static void | graph_del (struct m0_graph *g, struct m0_gvertice *vertice) |
static void | vertice_init (struct m0_gvertice *vertice, const struct m0_gvertice_type *vt, const struct m0_fid *fid) |
static bool | has_arc (const struct m0_gvertice *vertice, const struct m0_garc_type *atype) |
static const struct m0_gvertice_type * | vtype (const struct m0_gvertice *src) |
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) |
bool | m0_gvertice_invariant (const struct m0_gvertice *vertice) |
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) |
bool | m0_graph_invariant (const struct m0_graph *graph) |
struct m0_gvertice * | m0_garc_try (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) |
int | m0_garc_follow (const struct m0_gvertice *vertice, const struct m0_garc_type *atype,...) |
M0_INTERNAL int | m0_graph_mod_init (void) |
M0_INTERNAL void | m0_graph_mod_fini (void) |
Variables | |
static struct m0_garc_type | GRAPH_PREV |
static struct m0_garc_type | GRAPH_NEXT |
static const struct m0_gvertice_type * | vtypes [VTYPE_MAX] |
|
static |
|
static |
|
static |
|
static |
|
static |
int m0_garc_follow | ( | const struct m0_gvertice * | vertice, |
const struct m0_garc_type * | atype, | ||
... | |||
) |
struct m0_gvertice * m0_garc_try | ( | const struct m0_gvertice * | vertice, |
const struct m0_garc_type * | atype | ||
) |
void m0_garc_type_add | ( | struct m0_gvertice_type * | vt, |
const struct m0_garc_type * | atype | ||
) |
bool m0_garc_type_invariant | ( | const struct m0_gvertice_type * | vt, |
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_register | ( | const struct m0_garc_type * | atype | ) |
bool m0_graph_invariant | ( | const struct m0_graph * | graph | ) |
M0_INTERNAL int m0_graph_mod_init | ( | void | ) |
void m0_gvertice_fini | ( | struct m0_graph * | g, |
struct m0_gvertice * | vertice | ||
) |
void m0_gvertice_init | ( | struct m0_graph * | g, |
struct m0_gvertice * | vertice, | ||
const struct m0_gvertice_type * | vt, | ||
const struct m0_fid * | fid | ||
) |
bool m0_gvertice_invariant | ( | const struct m0_gvertice * | vertice | ) |
bool m0_gvertice_is_set | ( | const struct m0_gvertice * | vertice, |
const struct m0_garc_type * | atype | ||
) |
void m0_gvertice_link | ( | 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_type_invariant | ( | const struct m0_gvertice_type * | vt | ) |
void m0_gvertice_type_register | ( | struct m0_gvertice_type * | vt | ) |
void m0_gvertice_unlink | ( | struct m0_gvertice * | src, |
struct m0_gvertice * | dst, | ||
const struct m0_garc_type * | atype | ||
) |
|
static |
|
static |
|
static |
|
static |
|
static |