Transducer Key Layer


Datatypes

typedef Key Key
 An unsigned number for the input or output label of a transition between states.
typedef KeyPair KeyPair
 A pair of keys representing a transition in a transducer.
typedef KeySet KeySet
 A set of keys aka an alphabet of keys.
typedef KeyVector KeyVector
 A vector of Keys.
typedef KeyVectorVector KeyVectorVector
 A container for KeyVectors.
typedef KeyPairVector KeyPairVector
 A vector of KeyPairs.
typedef KeyPairSet KeyPairSet
 A set of key pairs aka an alphabet of key pairs.
typedef KeyIterator KeyIterator
 Iterator over the keys in a KeySet.
typedef KeyPairIterator KeyPairIterator
 Iterator over the set of key pairs in a KeyPairSet.

Keys and KeyPairs

const Key Epsilon = 0
 The Key for epsilon is 0. The associated symbol name may be specified by the user.
KeyPairdefine_keypair (Key s1, Key s2)
 Define a key pair with input key s1 and output key s2.
KeyPairdefine_keypair (Key s)
 Define an identity key pair with input and output key s.
Key get_input_key (KeyPair *s)
 Get the input key of KeyPair s.
Key get_output_key (KeyPair *s)
 Get the output key of KeyPair s.

Sets aka alphabets of Keys and KeyPairs

KeySetcreate_empty_key_set ()
 Define an empty set of keys.
KeySetinsert_key (Key s, KeySet *Si)
 Insert key s into the set of keys Si and return the updated set.
bool has_key (Key s, KeySet *Si)
 Whether key s is a member of the set of keys Si.
KeyPairSetcreate_empty_keypair_set ()
 Define an empty set of key pairs.
KeyPairSetinsert_keypair (KeyPair *p, KeyPairSet *Pi)
 Insert key pair p into the set of key pairs Pi and return the updated set.
bool has_keypair (KeyPair *p, KeyPairSet *Pi)
 Whether key pair p is a member of the set of key pairs Pi.

Key and KeyPair Iterators

KeyIterator begin_sigma_key (KeySet *Si)
 Beginning of the iterator for key set Si.
KeyIterator end_sigma_key (KeySet *Si)
 End of the iterator for key set Si.
size_t size_sigma_key (KeySet *Si)
 Size of the iterator for key set Si.
Key get_sigma_key (KeyIterator si)
 Get the key pointed by key iterator si.
KeyPairIterator begin_pi_key (KeyPairSet *Pi)
 Beginning of the iterator for key pair set Pi.
KeyPairIterator end_pi_key (KeyPairSet *Pi)
 End of the iterator for key pair set Pi.
size_t size_pi_key (KeyPairSet *Pi)
 Size of the iterator for key pair set Pi.
KeyPairget_pi_keypair (KeyPairIterator pi)
 Get the key pair pointed by key pair iterator pi.

Detailed Description

Datatypes and functions related to input and output labels in transducers.

Typedef Documentation

typedef Key Key

An unsigned number for the input or output label of a transition between states.

Definition at line 15 of file key-layer.h.

Iterator over the keys in a KeySet.

Definition at line 36 of file key-layer.h.

typedef KeyPair KeyPair

A pair of keys representing a transition in a transducer.

Definition at line 18 of file key-layer.h.

Iterator over the set of key pairs in a KeyPairSet.

Definition at line 39 of file key-layer.h.

A set of key pairs aka an alphabet of key pairs.

Definition at line 33 of file key-layer.h.

A vector of KeyPairs.

Definition at line 30 of file key-layer.h.

typedef KeySet KeySet

A set of keys aka an alphabet of keys.

Definition at line 21 of file key-layer.h.

A vector of Keys.

Definition at line 24 of file key-layer.h.

A container for KeyVectors.

Definition at line 27 of file key-layer.h.


Function Documentation

KeyPairIterator begin_pi_key ( KeyPairSet Pi  ) 

Beginning of the iterator for key pair set Pi.

KeyIterator begin_sigma_key ( KeySet Si  ) 

Beginning of the iterator for key set Si.

KeySet* create_empty_key_set (  ) 

Define an empty set of keys.

KeyPairSet* create_empty_keypair_set (  ) 

Define an empty set of key pairs.

KeyPair* define_keypair ( Key  s  ) 

Define an identity key pair with input and output key s.

KeyPair* define_keypair ( Key  s1,
Key  s2 
)

Define a key pair with input key s1 and output key s2.

KeyPairIterator end_pi_key ( KeyPairSet Pi  ) 

End of the iterator for key pair set Pi.

KeyIterator end_sigma_key ( KeySet Si  ) 

End of the iterator for key set Si.

Key get_input_key ( KeyPair s  ) 

Get the input key of KeyPair s.

Key get_output_key ( KeyPair s  ) 

Get the output key of KeyPair s.

KeyPair* get_pi_keypair ( KeyPairIterator  pi  ) 

Get the key pair pointed by key pair iterator pi.

Key get_sigma_key ( KeyIterator  si  ) 

Get the key pointed by key iterator si.

bool has_key ( Key  s,
KeySet Si 
)

Whether key s is a member of the set of keys Si.

bool has_keypair ( KeyPair p,
KeyPairSet Pi 
)

Whether key pair p is a member of the set of key pairs Pi.

KeySet* insert_key ( Key  s,
KeySet Si 
)

Insert key s into the set of keys Si and return the updated set.

KeyPairSet* insert_keypair ( KeyPair p,
KeyPairSet Pi 
)

Insert key pair p into the set of key pairs Pi and return the updated set.

size_t size_pi_key ( KeyPairSet Pi  ) 

Size of the iterator for key pair set Pi.

size_t size_sigma_key ( KeySet Si  ) 

Size of the iterator for key set Si.


Variable Documentation

const Key Epsilon = 0

The Key for epsilon is 0. The associated symbol name may be specified by the user.

Definition at line 52 of file key-layer.h.


Generated on Tue Sep 29 11:43:34 2009 for Helsinki Finite-State Transducer Technology (HFST) interface by  doxygen 1.5.8