|
Stock Control System
|
Pool class implementation. More...
#include <assert.h>#include <errno.h>#include <math.h>#include <stdio.h>#include <stdlib.h>#include <string.h>#include "Pool.h"#include "Product.h"Go to the source code of this file.
Data Structures | |
| struct | Pool |
| An ordered expandable collection of dynamically allocated Product records. More... | |
Functions | |
| struct Pool * | pool_create (const unsigned int initial_capacity, const float growth_factor) |
| void | pool_delete (struct Pool **const this) |
| bool | pool_insert_element (struct Pool *const this, struct Product *const product) |
| int | pool_serialise_report (const struct Pool *const this, FILE *const buffer) |
| int | pool_serialise_stock_file (const struct Pool *const this, FILE *const buffer) |
| struct Product * | pool_get_product_by_index (const struct Pool *const this, const unsigned int index) |
| struct Pool * pool_create | ( | const unsigned int | initial_capacity, |
| const float | growth_factor | ||
| ) |
| int pool_serialise_report | ( | const struct Pool *const | this, |
| FILE *const | buffer | ||
| ) |