Lord-KA / gObjPool

Default C allocator wrapper for better memory management for node-based data structures

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

gObjPool

This is a default C allocator wrapper for better memory management in node-based data structures

Building

$ mkdir build
$ cd build
$ cmake ..
$ make

Using in your project

Add code below to your CMakeLists.txt and include "gobjpool.h"

FetchContent_Declare(
  objpool
  GIT_REPOSITORY https://github.com/Lord-KA/gObjPool.git
  GIT_TAG        release-1.X
)
if(NOT gobjpool_POPULATED)
  FetchContent_Populate(gobjpool)
  include_directories(${gobjpool_SOURCE_DIR})
endif()

You have to pre-define GOBJPOOL_TYPE with macro or typedef before including the header

DONE

  1. Generalized objPool structure with automatic refitting (reallocation)
  2. Unit Tests (gTest)
  3. CMake config
  4. Github release
  5. Basic Github CI
  6. Doxigen docs

TODO

  1. Check coverage
  2. Add C-style pseudo-templates

About

Default C allocator wrapper for better memory management for node-based data structures

License:MIT License


Languages

Language:C 63.9%Language:C++ 20.0%Language:CMake 16.1%