Data Structures
gfsmState.h File Reference

Automaton state definitions & utilities. More...

#include <gfsmArcList.h>
#include <gfsmState.hi>
Include dependency graph for gfsmState.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  gfsmState
 Automaton state structure. More...

Functions

gfsmState: Constructors etc.
static gfsmStategfsm_state_new_full (gboolean is_final, gfsmArcList *arcs)
static gfsmStategfsm_state_new (void)
static gfsmStategfsm_state_copy (gfsmState *dst, const gfsmState *src)
static void gfsm_state_clear (gfsmState *s)
static void gfsm_state_free (gfsmState *s, gboolean free_arcs)
static void gfsm_state_close (gfsmState *s)
gfsmState: Accessors
static gboolean gfsm_state_is_ok (const gfsmState *s)
static gboolean gfsm_state_is_final (const gfsmState *s)
static void gfsm_state_set_final (gfsmState *s, gboolean is_final)
static guint gfsm_state_out_degree (const gfsmState *s)

Detailed Description

Function Documentation

static gfsmState* gfsm_state_new_full ( gboolean  is_final,
gfsmArcList arcs 
)
inlinestatic

Create a new state (generic)

static gfsmState* gfsm_state_new ( void  )
inlinestatic

Create a new state (empty)

static gfsmState* gfsm_state_copy ( gfsmState dst,
const gfsmState src 
)
inlinestatic

Copy an existing state

static void gfsm_state_clear ( gfsmState s)
inlinestatic

Clear an existing state

static void gfsm_state_free ( gfsmState s,
gboolean  free_arcs 
)
inlinestatic

Destroy a state

static void gfsm_state_close ( gfsmState s)
inlinestatic

Close a state (generic)

static gboolean gfsm_state_is_ok ( const gfsmState s)
inlinestatic

Check if state is valid

static gboolean gfsm_state_is_final ( const gfsmState s)
inlinestatic

Check for final state

static void gfsm_state_set_final ( gfsmState s,
gboolean  is_final 
)
inlinestatic

Set final state flag

static guint gfsm_state_out_degree ( const gfsmState s)
inlinestatic

Get number of outgoing arcs