Header And Logo

PostgreSQL
| The world's most advanced open source database.

geqo_pool.h

Go to the documentation of this file.
00001 /*-------------------------------------------------------------------------
00002  *
00003  * geqo_pool.h
00004  *    pool representation in optimizer/geqo
00005  *
00006  * Portions Copyright (c) 1996-2013, PostgreSQL Global Development Group
00007  * Portions Copyright (c) 1994, Regents of the University of California
00008  *
00009  * src/include/optimizer/geqo_pool.h
00010  *
00011  *-------------------------------------------------------------------------
00012  */
00013 
00014 /* contributed by:
00015    =*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=
00016    *  Martin Utesch              * Institute of Automatic Control      *
00017    =                             = University of Mining and Technology =
00018    *  [email protected]  * Freiberg, Germany                   *
00019    =*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=
00020  */
00021 
00022 
00023 #ifndef GEQO_POOL_H
00024 #define GEQO_POOL_H
00025 
00026 #include "optimizer/geqo.h"
00027 
00028 
00029 extern Pool *alloc_pool(PlannerInfo *root, int pool_size, int string_length);
00030 extern void free_pool(PlannerInfo *root, Pool *pool);
00031 
00032 extern void random_init_pool(PlannerInfo *root, Pool *pool);
00033 extern Chromosome *alloc_chromo(PlannerInfo *root, int string_length);
00034 extern void free_chromo(PlannerInfo *root, Chromosome *chromo);
00035 
00036 extern void spread_chromo(PlannerInfo *root, Chromosome *chromo, Pool *pool);
00037 
00038 extern void sort_pool(PlannerInfo *root, Pool *pool);
00039 
00040 #endif   /* GEQO_POOL_H */