commit dceb56dd1a19be6fe9b991bb50e08902eefe36a8
Author: John Wellbelove <github@wellbelove.co.uk>
Date: Tue Nov 24 19:27:18 2020 +0000
Fixed non-initialisation of in_use flag.
commit c7ee1d6574ca5d95869152c5f8e4e6d02a7fa6bc
Author: John Wellbelove <github@wellbelove.co.uk>
Date: Tue Nov 24 19:20:24 2020 +0000
Fixed non-initialisation of in_use flag.
commit 36cbf21cd1b67a28255582cfb4a188a601631ab2
Author: John Wellbelove <github@wellbelove.co.uk>
Date: Tue Nov 24 18:52:53 2020 +0000
Refactor buffer_descriptors test
commit 49c60add63153bf53f400a891d8c4fb880cacda8
Author: John Wellbelove <github@wellbelove.co.uk>
Date: Tue Nov 24 18:44:42 2020 +0000
Refactor buffer_descriptors test
commit 7bda7678311bf2eb497483f3ef27c3af9211680b
Author: John Wellbelove <github@wellbelove.co.uk>
Date: Tue Nov 24 18:29:02 2020 +0000
Refactor buffer_descriptors test
commit 7a68c932a7df05f66690fa63e67365cf4b0619e8
Author: John Wellbelove <github@wellbelove.co.uk>
Date: Tue Nov 24 18:14:30 2020 +0000
Refactor buffer_descriptors test
commit a9b25ac67d175f58751a2eb819f0e5822e8f0cf9
Author: John Wellbelove <github@wellbelove.co.uk>
Date: Tue Nov 24 18:08:21 2020 +0000
Refactor buffer_descriptors test
commit 0c721c0466733751708fcbd995ce0bc1d7c0a932
Author: John Wellbelove <github@wellbelove.co.uk>
Date: Tue Nov 24 17:58:22 2020 +0000
Refactor buffer_descriptors test
commit 4b2dd2fce22cd0a4846b95695fbfd812e0823540
Author: John Wellbelove <github@wellbelove.co.uk>
Date: Tue Nov 24 17:47:43 2020 +0000
Refactor buffer_descriptors test
commit 80d5776c409b416377269d543bd539bdad83dc86
Author: John Wellbelove <github@wellbelove.co.uk>
Date: Tue Nov 24 17:32:27 2020 +0000
Refactor buffer_descriptors test
commit 3564ac5b7ef89c41b240d9f54fce36042408daa0
Author: John Wellbelove <github@wellbelove.co.uk>
Date: Tue Nov 24 17:17:50 2020 +0000
Refactor buffer_descriptors test
commit 297ef42c60e4228bfbcb2adcddeb6b8a617c4113
Author: John Wellbelove <github@wellbelove.co.uk>
Date: Tue Nov 24 17:08:45 2020 +0000
Refactor buffer_descriptors test
commit 658d592c96eb7eaf1afb5d09fef38e293ea6f79b
Author: John Wellbelove <github@wellbelove.co.uk>
Date: Tue Nov 24 16:58:52 2020 +0000
Refactor buffer_descriptors test
commit e97d8f90d5527349324ea84fd578c1d879d7a5a4
Author: John Wellbelove <github@wellbelove.co.uk>
Date: Tue Nov 24 16:48:52 2020 +0000
Refactor buffer_descriptors test
commit ed783a8ccccc8673c0f55eb1780c08668880a745
Author: John Wellbelove <github@wellbelove.co.uk>
Date: Tue Nov 24 16:43:52 2020 +0000
clang.yml hack for testing
|
||
|---|---|---|
| .circleci | ||
| .github | ||
| examples | ||
| images | ||
| include/etl | ||
| support | ||
| temp | ||
| test | ||
| uml | ||
| .gitattributes | ||
| .gitignore | ||
| .gitlab-ci.yml | ||
| .gitmodules | ||
| appveyor.yml | ||
| CMakeLists.txt | ||
| conanfile.py | ||
| Doxyfile | ||
| file.txt | ||
| library.json | ||
| library.properties | ||
| LICENSE | ||
| meson.build | ||
| README.md | ||
| todo.txt | ||
Embedded Template Library (ETL)
Motivation
C++ is a great language to use for embedded applications and templates are a powerful aspect. The standard library can offer a great deal of well tested functionality, but there are some parts of the standard library that do not fit well with deterministic behaviour and limited resource requirements. These limitations usually preclude the use of dynamically allocated memory and containers with open ended sizes.
What is needed is a template library where the user can declare the size, or maximum size of any object upfront. Most embedded compilers do not currently support the standard beyond C++ 03, therefore excluding the programmer from using the enhanced features of the later library.
This is what the ETL attempts to achieve.
Summary
The ETL is not designed to completely replace the STL, but complement it. Its design objective covers three areas.
- Create a set of containers where the size or maximum size is determined at compile time. These containers are direct equivalents of those supplied in the STL.
- Be compatible with C++ 03 but implement as many of the C++ 11 additions as possible.
- Add other useful components that are not present in the standard library.
The embedded template library has been designed for lower resource embedded applications. It contains a set of containers, algorithms and utilities, some of which emulate parts of the STL. There is no dynamic memory allocation. The library makes no use of the heap. All of the containers have a fixed capacity allowing all memory allocation to be determined at compile time. The library is intended for any compiler that supports C++ 03.
Main features:
- Cross platform. This library is not specific to any processor type.
- No dynamic memory allocation
- No RTTI required
- Very little use of virtual functions. They are used only when they are absolutely necessary for the required functionality
- A set of fixed capacity containers. (array, bitset, deque, forward_list, list, queue, stack, vector, map, set, etc.)
- As the storage for all of the container types is allocated as a contiguous block, they are extremely cache friendly
- Templated compile time constants
- Templated design pattern base classes (Visitor, Observer)
- Reverse engineered C++ 0x11 features (type traits, algorithms, containers etc.)
- Type-safe enumerations
- Type-safe typedefs
- 8, 16, 32 & 64 bit CRC calculations
- Checksums & hash functions
- Variants (a type that can store many types in a type-safe interface)
- Choice of asserts, exceptions, error handler or no checks on errors
- Many utilities for template support.
- Easy to read and documented source.
- Free email support
Any help porting the library to work under different platforms and compilers would be gratefully received. I am especially interested in people who are using Keil, IAR, Green Hills, TI Code Composer etc, bare metal or RTOS, and DSPs.
See (https://www.etlcpp.com) for up-to-date information.