C/Migemo 1.4
mtree.h ファイル
#include <stdio.h>
#include "charset.h"
#include "wordlist.h"
mtree.h の依存先関係図:
被依存関係図:

[ソースコード]

データ構造

struct  mnode
struct  mnode_block
struct  mnode_arena
struct  mtree

マクロ定義

#define MNODE_BLOCK_BYTES   (64 * 1024)
#define MNODE_BLOCK_HEADER_SIZE   (sizeof(void *) + sizeof(size_t))
#define MNODE_BLOCK_SIZE    ((MNODE_BLOCK_BYTES - MNODE_BLOCK_HEADER_SIZE) / sizeof(mnode))

型定義

typedef struct mnode mnode
typedef struct mnode_block mnode_block
typedef struct mnode_arena mnode_arena
typedef struct mtree mtree

関数

mtreemtree_open (void)
void mtree_close (mtree *mt)
mtreemtree_load (mtree *mt, FILE *fp, CHARSET_PROC_CHAR2INT char2int)
mnodemtree_query (mtree *mt, const unsigned char *query)
mnodemtree_rootnode (mtree *mt)
void mtree_print_stat (mtree *mt, const char *title)

マクロ定義詳解

◆ MNODE_BLOCK_BYTES

#define MNODE_BLOCK_BYTES   (64 * 1024)

◆ MNODE_BLOCK_HEADER_SIZE

#define MNODE_BLOCK_HEADER_SIZE   (sizeof(void *) + sizeof(size_t))

◆ MNODE_BLOCK_SIZE

#define MNODE_BLOCK_SIZE    ((MNODE_BLOCK_BYTES - MNODE_BLOCK_HEADER_SIZE) / sizeof(mnode))

型定義詳解

◆ mnode

typedef struct mnode mnode

◆ mnode_arena

typedef struct mnode_arena mnode_arena

◆ mnode_block

typedef struct mnode_block mnode_block

◆ mtree

typedef struct mtree mtree

関数詳解

◆ mtree_close()

void mtree_close ( mtree * mt)

◆ mtree_load()

◆ mtree_open()

mtree * mtree_open ( void )

参照先 mtree::char2int.

◆ mtree_print_stat()

void mtree_print_stat ( mtree * mt,
const char * title )

◆ mtree_query()

mnode * mtree_query ( mtree * mt,
const unsigned char * query )

◆ mtree_rootnode()

mnode * mtree_rootnode ( mtree * mt)

参照先 mtree::rootnode.

参照元 stree_from_mtree().