navit  0.5.3-trunk
block.c File Reference
#include <stdio.h>
#include <string.h>
#include "debug.h"
#include "mg.h"

Data Structures

struct  block_index_item
 
struct  block_index
 

Functions

static unsigned int block_index_item_get_blocknum (struct block_index_item *blk)
 
static unsigned int block_index_item_get_blocks (struct block_index_item *blk)
 
static unsigned int block_index_get_blocks (struct block_index *blk)
 
static unsigned int block_index_get_size (struct block_index *blk)
 
static unsigned int block_index_get_next (struct block_index *blk)
 
static struct block_index_itemblock_index_get_list (struct block_index *blk)
 
static struct blockblock_get (unsigned char **p)
 
static struct blockblock_get_byid (struct file *file, int id, unsigned char **p_ret)
 
int block_get_byindex (struct file *file, int idx, struct block_priv *blk)
 
static void block_setup_tags (struct map_rect_priv *mr)
 
static void block_rect_same (struct coord_rect *r1, struct coord_rect *r2)
 
int block_init (struct map_rect_priv *mr)
 
int block_next_lin (struct map_rect_priv *mr)
 
int block_next (struct map_rect_priv *mr)
 

Variables

int block_lin_count
 
int block_idx_count
 
int block_active_count
 
int block_mem
 
int block_active_mem
 

Function Documentation

◆ block_get()

static struct block* block_get ( unsigned char **  p)
static

References p.

Referenced by block_get_byid(), and block_next_lin().

◆ block_get_byid()

static struct block* block_get_byid ( struct file file,
int  id,
unsigned char **  p_ret 
)
static

◆ block_get_byindex()

◆ block_index_get_blocks()

static unsigned int block_index_get_blocks ( struct block_index blk)
inlinestatic

References get_u32(), block_index::p, and p.

◆ block_index_get_list()

static struct block_index_item* block_index_get_list ( struct block_index blk)
inlinestatic

References block_index::p.

Referenced by block_get_byid().

◆ block_index_get_next()

static unsigned int block_index_get_next ( struct block_index blk)
inlinestatic

References get_u32(), block_index::p, and p.

Referenced by block_get_byid().

◆ block_index_get_size()

static unsigned int block_index_get_size ( struct block_index blk)
inlinestatic

References get_u32(), block_index::p, and p.

Referenced by block_get_byid().

◆ block_index_item_get_blocknum()

static unsigned int block_index_item_get_blocknum ( struct block_index_item blk)
inlinestatic

References get_u32(), p, and block_index_item::p.

Referenced by block_get_byid().

◆ block_index_item_get_blocks()

static unsigned int block_index_item_get_blocks ( struct block_index_item blk)
inlinestatic

References get_u32(), p, and block_index_item::p.

◆ block_init()

◆ block_next()

◆ block_next_lin()

◆ block_rect_same()

static void block_rect_same ( struct coord_rect r1,
struct coord_rect r2 
)
static

◆ block_setup_tags()

Variable Documentation

◆ block_active_count

int block_active_count

Referenced by block_next(), and block_next_lin().

◆ block_active_mem

int block_active_mem

Referenced by block_next(), and block_next_lin().

◆ block_idx_count

int block_idx_count

Referenced by block_next().

◆ block_lin_count

int block_lin_count

Navit, a modular navigation system. Copyright (C) 2005-2008 Navit Team

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License version 2 as published by the Free Software Foundation.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.

Referenced by block_next_lin(), map_rect_get_item_mg(), and map_rect_new_mg().

◆ block_mem

int block_mem