PostgreSQL Source Code git master
Loading...
Searching...
No Matches
geqo_pool.h
Go to the documentation of this file.
1/*-------------------------------------------------------------------------
2 *
3 * geqo_pool.h
4 * pool representation in optimizer/geqo
5 *
6 * Portions Copyright (c) 1996-2026, PostgreSQL Global Development Group
7 * Portions Copyright (c) 1994, Regents of the University of California
8 *
9 * src/include/optimizer/geqo_pool.h
10 *
11 *-------------------------------------------------------------------------
12 */
13
14/*
15 * contributed by:
16 * =*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=
17 * * Martin Utesch * Institute of Automatic Control *
18 * = = University of Mining and Technology =
19 * * utesch@aut.tu-freiberg.de * Freiberg, Germany *
20 * =*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=
21 */
22
23
24#ifndef GEQO_POOL_H
25#define GEQO_POOL_H
26
27#include "optimizer/geqo.h"
28
29
30extern Pool *alloc_pool(PlannerInfo *root, int pool_size, int string_length);
31extern void free_pool(PlannerInfo *root, Pool *pool);
32
33extern void random_init_pool(PlannerInfo *root, Pool *pool);
34extern Chromosome *alloc_chromo(PlannerInfo *root, int string_length);
36
37extern void spread_chromo(PlannerInfo *root, Chromosome *chromo, Pool *pool);
38
39extern void sort_pool(PlannerInfo *root, Pool *pool);
40
41#endif /* GEQO_POOL_H */
Pool * alloc_pool(PlannerInfo *root, int pool_size, int string_length)
Definition geqo_pool.c:42
void sort_pool(PlannerInfo *root, Pool *pool)
Definition geqo_pool.c:135
void free_chromo(PlannerInfo *root, Chromosome *chromo)
Definition geqo_pool.c:178
void free_pool(PlannerInfo *root, Pool *pool)
Definition geqo_pool.c:69
void random_init_pool(PlannerInfo *root, Pool *pool)
Definition geqo_pool.c:91
void spread_chromo(PlannerInfo *root, Chromosome *chromo, Pool *pool)
Definition geqo_pool.c:190
Chromosome * alloc_chromo(PlannerInfo *root, int string_length)
Definition geqo_pool.c:163
static int fb(int x)
tree ctl root
Definition radixtree.h:1857