navit  0.5.1-trunk
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Macros Groups
filter.c File Reference
#include <stdlib.h>
#include <glib.h>
#include <stdio.h>
#include <string.h>
#include <math.h>
#include "config.h"
#include "debug.h"
#include "plugin.h"
#include "projection.h"
#include "item.h"
#include "map.h"
#include "maptype.h"
#include "attr.h"
#include "coord.h"
#include "transform.h"
#include "file.h"
#include "zipfile.h"
#include "linguistics.h"
#include "endianess.h"

Data Structures

struct  filter_entry
 
struct  filter
 
struct  map_priv
 Represents the map from a single binfile. More...
 
struct  map_rect_priv
 Implementation-specific map rect data. More...
 
struct  map_search_priv
 Represents a search on a map. This struct represents a search on a map; it is created when starting a search, and is used for retrieving results. More...
 

Functions

static enum item_type filter_type (struct map_priv *m, struct item *item)
 
static void free_filter_entry (struct filter_entry *filter)
 
static void free_filter (struct filter *filter)
 
static void free_filters (struct map_priv *m)
 
static GListparse_filter (char *filter)
 
static void parse_filters (struct map_priv *m, char *filter)
 
static void map_filter_coord_rewind (void *priv_data)
 
static int map_filter_coord_get (void *priv_data, struct coord *c, int count)
 
static void map_filter_attr_rewind (void *priv_data)
 
static int map_filter_attr_get (void *priv_data, enum attr_type attr_type, struct attr *attr)
 
static struct map_rect_privmap_filter_rect_new (struct map_priv *map, struct map_selection *sel)
 
static void map_filter_rect_destroy (struct map_rect_priv *mr)
 
static struct itemmap_filter_rect_get_item (struct map_rect_priv *mr)
 
static struct itemmap_filter_rect_get_item_byid (struct map_rect_priv *mr, int id_hi, int id_lo)
 
static struct map_search_privmap_filter_search_new (struct map_priv *map, struct item *item, struct attr *search, int partial)
 
static struct itemmap_filter_search_get_item (struct map_search_priv *map_search)
 
static void map_filter_search_destroy (struct map_search_priv *ms)
 
static void map_filter_destroy (struct map_priv *m)
 
static int map_filter_set_attr (struct map_priv *m, struct attr *attr)
 
static struct map_privmap_filter_new (struct map_methods *meth, struct attr **attrs, struct callback_list *cbl)
 
void plugin_init (void)
 

Variables

static struct item_methods methods_filter
 
static struct map_methods map_methods_filter
 

Function Documentation

static void free_filter ( struct filter filter)
static

References free_filter_entry(), filter::new, and filter::old.

Referenced by free_filters().

static void free_filter_entry ( struct filter_entry filter)
static

References filter_entry::cond_str.

Referenced by free_filter().

static void free_filters ( struct map_priv m)
static

References map_priv::filters, and free_filter().

Referenced by parse_filters().

static int map_filter_attr_get ( void *  priv_data,
enum attr_type  attr_type,
struct attr attr 
)
static
static void map_filter_attr_rewind ( void *  priv_data)
static
static int map_filter_coord_get ( void *  priv_data,
struct coord c,
int  count 
)
static
static void map_filter_coord_rewind ( void *  priv_data)
static
static void map_filter_destroy ( struct map_priv m)
static

References map_destroy(), and map_priv::parent.

static struct map_priv* map_filter_new ( struct map_methods meth,
struct attr **  attrs,
struct callback_list cbl 
)
static
static void map_filter_rect_destroy ( struct map_rect_priv mr)
static
static struct item* map_filter_rect_get_item_byid ( struct map_rect_priv mr,
int  id_hi,
int  id_lo 
)
static
static void map_filter_search_destroy ( struct map_search_priv ms)
static

References dbg, and lvl_debug.

static struct item* map_filter_search_get_item ( struct map_search_priv map_search)
static

References dbg, and lvl_debug.

static struct map_search_priv* map_filter_search_new ( struct map_priv map,
struct item item,
struct attr search,
int  partial 
)
static

References dbg, and lvl_debug.

static int map_filter_set_attr ( struct map_priv m,
struct attr attr 
)
static
static GList* parse_filter ( char *  filter)
static
static void parse_filters ( struct map_priv m,
char *  filter 
)
static
void plugin_init ( void  )

References dbg, lvl_debug, and map_filter_new().

Variable Documentation

struct map_methods map_methods_filter
static
Initial value:
= {
"utf-8",
NULL,
NULL,
}
static void map_filter_search_destroy(struct map_search_priv *ms)
Definition: filter.c:347
static int map_filter_set_attr(struct map_priv *m, struct attr *attr)
Definition: filter.c:360
static struct item * map_filter_rect_get_item_byid(struct map_rect_priv *mr, int id_hi, int id_lo)
Definition: filter.c:320
Definition: projection.h:25
static void map_filter_destroy(struct map_priv *m)
Definition: filter.c:353
static void map_filter_rect_destroy(struct map_rect_priv *mr)
Definition: filter.c:301
static struct map_rect_priv * map_filter_rect_new(struct map_priv *map, struct map_selection *sel)
Definition: filter.c:284
static struct map_search_priv * map_filter_search_new(struct map_priv *map, struct item *item, struct attr *search, int partial)
Definition: filter.c:333
static struct item * map_filter_rect_get_item(struct map_rect_priv *mr)
Definition: filter.c:308
static struct item * map_filter_search_get_item(struct map_search_priv *map_search)
Definition: filter.c:340

Referenced by map_filter_new().

struct item_methods methods_filter
static
Initial value:
= {
}
static void map_filter_attr_rewind(void *priv_data)
Definition: filter.c:263
static int map_filter_coord_get(void *priv_data, struct coord *c, int count)
Definition: filter.c:256
static int map_filter_attr_get(void *priv_data, enum attr_type attr_type, struct attr *attr)
Definition: filter.c:270
static void map_filter_coord_rewind(void *priv_data)
Definition: filter.c:249

Referenced by map_filter_rect_new().