KkcTrellisNode

KkcTrellisNode

Functions

Types and Values

Object Hierarchy

    KkcTrellisNode
    ├── KkcBigramTrellisNode
    ╰── KkcUnigramTrellisNode

Description

Functions

kkc_trellis_node_to_string ()

gchar *
kkc_trellis_node_to_string (KkcTrellisNode *self);

Parameters

self

the KkcTrellisNode instance

 

kkc_trellis_node_get_endpos ()

guint
kkc_trellis_node_get_endpos (KkcTrellisNode *self);

Get and return the current value of the "endpos" property.

Parameters

self

the KkcTrellisNode instance to query

 

Returns

the value of the "endpos" property


kkc_trellis_node_get_length ()

guint
kkc_trellis_node_get_length (KkcTrellisNode *self);

Get and return the current value of the "length" property.

Parameters

self

the KkcTrellisNode instance to query

 

Returns

the value of the "length" property


kkc_trellis_node_get_input ()

const gchar *
kkc_trellis_node_get_input (KkcTrellisNode *self);

Get and return the current value of the "input" property.

Parameters

self

the KkcTrellisNode instance to query

 

Returns

the value of the "input" property


kkc_trellis_node_get_output ()

const gchar *
kkc_trellis_node_get_output (KkcTrellisNode *self);

Get and return the current value of the "output" property.

Parameters

self

the KkcTrellisNode instance to query

 

Returns

the value of the "output" property


kkc_trellis_node_get_entries ()

KkcLanguageModelEntry *
kkc_trellis_node_get_entries (KkcTrellisNode *self,
                              int *result_length1);

Get and return the current value of the "entries" property.

Parameters

self

the KkcTrellisNode instance to query

 

Returns

the value of the "entries" property


kkc_trellis_node_ref ()

gpointer
kkc_trellis_node_ref (gpointer instance);

Increases the reference count of object .

Parameters

instance

a KkcTrellisNode.

 

Returns

the same object


kkc_trellis_node_unref ()

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).

Parameters

instance

a KkcTrellisNode.

 

kkc_param_spec_trellis_node ()

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 g_param_spec_internal() for details on property names.

Parameters

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

 

kkc_value_set_trellis_node ()

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).

Parameters

value

a valid GValue of KKC_TYPE_TRELLIS_NODE derived type

 

v_object

object value to be set

 

kkc_value_get_trellis_node ()

gpointer
kkc_value_get_trellis_node (const GValue *value);

Get the contents of a KKC_TYPE_TRELLIS_NODE derived GValue.

Parameters

value

a valid GValue of KKC_TYPE_TRELLIS_NODE derived type

 

Returns

object contents of value


kkc_value_take_trellis_node ()

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.

Parameters

value

a valid GValue of KKC_TYPE_TRELLIS_NODE derived type

 

v_object

object value to be set

 

kkc_unigram_trellis_node_new ()

KkcUnigramTrellisNode *
kkc_unigram_trellis_node_new (KkcLanguageModelEntry *entry,
                              guint endpos);

Parameters

entry

 

 

endpos

 

 

kkc_unigram_trellis_node_get_entry ()

void
kkc_unigram_trellis_node_get_entry (KkcUnigramTrellisNode *self,
                                    KkcLanguageModelEntry *result);

Get and return the current value of the "entry" property.

Parameters

self

the KkcUnigramTrellisNode instance to query

 

Returns

the value of the "entry" property


kkc_bigram_trellis_node_new ()

KkcBigramTrellisNode *
kkc_bigram_trellis_node_new (KkcUnigramTrellisNode *left_node,
                             KkcUnigramTrellisNode *right_node,
                             guint endpos);

Parameters

left_node

 

 

right_node

 

 

endpos

 

 

kkc_bigram_trellis_node_get_left_node ()

KkcUnigramTrellisNode *
kkc_bigram_trellis_node_get_left_node (KkcBigramTrellisNode *self);

Get and return the current value of the "left-node" property.

Parameters

self

the KkcBigramTrellisNode instance to query

 

Returns

the value of the "left-node" property


kkc_bigram_trellis_node_get_right_node ()

KkcUnigramTrellisNode *
kkc_bigram_trellis_node_get_right_node
                               (KkcBigramTrellisNode *self);

Get and return the current value of the "right-node" property.

Parameters

self

the KkcBigramTrellisNode instance to query

 

Returns

the value of the "right-node" property

Types and Values

KKC_TYPE_TRELLIS_NODE

#define KKC_TYPE_TRELLIS_NODE (kkc_trellis_node_get_type ())

The type for KkcTrellisNode.


struct KkcTrellisNode

struct KkcTrellisNode;

struct KkcTrellisNodeClass

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.

Members

finalize ()

   

to_string ()

virtual method called by kkc_trellis_node_to_string()

 

get_endpos ()

getter method for the abstract property "endpos"

 

get_length ()

getter method for the abstract property "length"

 

get_input ()

getter method for the abstract property "input"

 

get_output ()

getter method for the abstract property "output"

 

get_entries ()

getter method for the abstract property "entries"

 

KKC_TYPE_UNIGRAM_TRELLIS_NODE

#define KKC_TYPE_UNIGRAM_TRELLIS_NODE (kkc_unigram_trellis_node_get_type ())

The type for KkcUnigramTrellisNode.


struct KkcUnigramTrellisNode

struct KkcUnigramTrellisNode;

struct KkcUnigramTrellisNodeClass

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.

Members


KKC_TYPE_BIGRAM_TRELLIS_NODE

#define KKC_TYPE_BIGRAM_TRELLIS_NODE (kkc_bigram_trellis_node_get_type ())

The type for KkcBigramTrellisNode.


struct KkcBigramTrellisNode

struct KkcBigramTrellisNode;

struct KkcBigramTrellisNodeClass

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.

Members