Top |
gchar * | kkc_trellis_node_to_string () |
guint | kkc_trellis_node_get_endpos () |
guint | kkc_trellis_node_get_length () |
const gchar * | kkc_trellis_node_get_input () |
const gchar * | kkc_trellis_node_get_output () |
KkcLanguageModelEntry * | kkc_trellis_node_get_entries () |
gpointer | kkc_trellis_node_ref () |
void | kkc_trellis_node_unref () |
GParamSpec * | kkc_param_spec_trellis_node () |
void | kkc_value_set_trellis_node () |
gpointer | kkc_value_get_trellis_node () |
void | kkc_value_take_trellis_node () |
KkcUnigramTrellisNode * | kkc_unigram_trellis_node_new () |
void | kkc_unigram_trellis_node_get_entry () |
KkcBigramTrellisNode * | kkc_bigram_trellis_node_new () |
KkcUnigramTrellisNode * | kkc_bigram_trellis_node_get_left_node () |
KkcUnigramTrellisNode * | kkc_bigram_trellis_node_get_right_node () |
#define | KKC_TYPE_TRELLIS_NODE |
struct | KkcTrellisNode |
struct | KkcTrellisNodeClass |
#define | KKC_TYPE_UNIGRAM_TRELLIS_NODE |
struct | KkcUnigramTrellisNode |
struct | KkcUnigramTrellisNodeClass |
#define | KKC_TYPE_BIGRAM_TRELLIS_NODE |
struct | KkcBigramTrellisNode |
struct | KkcBigramTrellisNodeClass |
guint
kkc_trellis_node_get_endpos (KkcTrellisNode *self
);
Get and return the current value of the "endpos" property.
guint
kkc_trellis_node_get_length (KkcTrellisNode *self
);
Get and return the current value of the "length" property.
const gchar *
kkc_trellis_node_get_input (KkcTrellisNode *self
);
Get and return the current value of the "input" property.
const gchar *
kkc_trellis_node_get_output (KkcTrellisNode *self
);
Get and return the current value of the "output" property.
KkcLanguageModelEntry * kkc_trellis_node_get_entries (KkcTrellisNode *self
,int *result_length1
);
Get and return the current value of the "entries" property.
gpointer
kkc_trellis_node_ref (gpointer instance
);
Increases the reference count of object
.
void
kkc_trellis_node_unref (gpointer instance
);
Decreases the reference count of object
. When its reference count drops to 0, the object is finalized (i.e. its memory is freed).
GParamSpec * kkc_param_spec_trellis_node (const gchar *name
,const gchar *nick
,const gchar *blurb
,GType object_type
,GParamFlags flags
);
Creates a new GParamSpecBoxed instance specifying a KKC_TYPE_TRELLIS_NODE
derived property.
See
for details on property names.g_param_spec_internal()
name |
canonical name of the property specified |
|
nick |
nick name for the property specified |
|
blurb |
description of the property specified |
|
object_type |
KKC_TYPE_TRELLIS_NODE derived type of this property |
|
flags |
flags for the property specified |
void kkc_value_set_trellis_node (GValue *value
,gpointer v_object
);
Set the contents of a KKC_TYPE_TRELLIS_NODE
derived GValue to v_object
.
kkc_value_set_trellis_node()
increases the reference count of v_object
(the GValue holds a reference to v_object
). If you do not wish to increase the reference count of the object (i.e. you wish to pass your current reference to the GValue because you no longer need it), use kkc_value_take_trellis_node()
instead.
It is important that your GValue holds a reference to v_object
(either its own, or one it has taken) to ensure that the object won't be destroyed while the GValue still exists).
value |
a valid GValue of |
|
v_object |
object value to be set |
gpointer
kkc_value_get_trellis_node (const GValue *value
);
Get the contents of a KKC_TYPE_TRELLIS_NODE
derived GValue.
void kkc_value_take_trellis_node (GValue *value
,gpointer v_object
);
Sets the contents of a KKC_TYPE_TRELLIS_NODE
derived GValue to v_object
and takes over the ownership of the callers reference to v_object
; the caller doesn't have to unref it any more (i.e. the reference count of the object is not increased).
If you want the GValue to hold its own reference to v_object
, use kkc_value_set_trellis_node()
instead.
value |
a valid GValue of |
|
v_object |
object value to be set |
KkcUnigramTrellisNode * kkc_unigram_trellis_node_new (KkcLanguageModelEntry *entry
,guint endpos
);
void kkc_unigram_trellis_node_get_entry (KkcUnigramTrellisNode *self
,KkcLanguageModelEntry *result
);
Get and return the current value of the "entry" property.
KkcBigramTrellisNode * kkc_bigram_trellis_node_new (KkcUnigramTrellisNode *left_node
,KkcUnigramTrellisNode *right_node
,guint endpos
);
KkcUnigramTrellisNode *
kkc_bigram_trellis_node_get_left_node (KkcBigramTrellisNode *self
);
Get and return the current value of the "left-node" property.
KkcUnigramTrellisNode *
kkc_bigram_trellis_node_get_right_node
(KkcBigramTrellisNode *self
);
Get and return the current value of the "right-node" property.
#define KKC_TYPE_TRELLIS_NODE (kkc_trellis_node_get_type ())
The type for KkcTrellisNode.
struct KkcTrellisNodeClass { GTypeClass parent_class; void (*finalize) (KkcTrellisNode *self); gchar* (*to_string) (KkcTrellisNode* self); guint (*get_endpos) (KkcTrellisNode* self); guint (*get_length) (KkcTrellisNode* self); const gchar* (*get_input) (KkcTrellisNode* self); const gchar* (*get_output) (KkcTrellisNode* self); KkcLanguageModelEntry* (*get_entries) (KkcTrellisNode* self, int* result_length1); };
The class structure for KKC_TYPE_TRELLIS_NODE
. All the fields in this structure are private and should never be accessed directly.
virtual method called by |
||
getter method for the abstract property "endpos" |
||
getter method for the abstract property "length" |
||
getter method for the abstract property "input" |
||
getter method for the abstract property "output" |
||
getter method for the abstract property "entries" |
#define KKC_TYPE_UNIGRAM_TRELLIS_NODE (kkc_unigram_trellis_node_get_type ())
The type for KkcUnigramTrellisNode.
struct KkcUnigramTrellisNodeClass { KkcTrellisNodeClass parent_class; };
The class structure for KKC_TYPE_UNIGRAM_TRELLIS_NODE
. All the fields in this structure are private and should never be accessed directly.
#define KKC_TYPE_BIGRAM_TRELLIS_NODE (kkc_bigram_trellis_node_get_type ())
The type for KkcBigramTrellisNode.
struct KkcBigramTrellisNodeClass { KkcTrellisNodeClass parent_class; };
The class structure for KKC_TYPE_BIGRAM_TRELLIS_NODE
. All the fields in this structure are private and should never be accessed directly.