2015-12-11 19:13:27 +00:00
private Modified error_handler include. 2015-12-11 19:03:23 +00:00
test Updated Code::Blocks projects files 2015-12-11 19:07:41 +00:00
.gitattributes namespace elt to etl 2014-10-26 16:39:14 +00:00
.gitignore Removed VS2010 entries 2014-12-12 14:37:03 +00:00
algorithm.h Merge remote-tracking branch 'origin/development' 2015-12-04 11:43:43 +00:00
alignment.h Fixed reference return instead of pointer. 2015-03-28 12:47:39 +00:00
array.h Modified the error system. 2015-12-10 13:45:29 +00:00
basic_intrusive_forward_list_node.h Added basic_forward_intrusive_list and updated intrusive_forward_list 2015-12-05 11:16:52 +00:00
basic_intrusive_forward_list.h Added basic_forward_intrusive_list and updated intrusive_forward_list 2015-12-05 11:16:52 +00:00
binary.h Added mask to final result of fold_bits() 2015-12-11 18:59:55 +00:00
bitset.h Moved more code to base class. 2015-12-10 13:38:08 +00:00
bloom_filter.h Redesigned bitset to use no virtual functions. 2015-12-09 15:31:41 +00:00
bsd_checksum.h Changed CRCs from generic interface inherited from ihash. 2015-09-28 17:59:20 +01:00
checksum.h Changed from generic interface inherited from ihash. 2015-09-28 18:44:27 +01:00
container.h Added Github link to copyright notice. 2015-02-22 13:23:18 +00:00
crc8_ccitt.cpp Added Github link to copyright notice. 2015-02-22 13:23:18 +00:00
crc8_ccitt.h Changed CRCs from generic interface inherited from ihash. 2015-09-28 17:59:20 +01:00
crc16_ccitt.cpp Added Github link to copyright notice. 2015-02-22 13:23:18 +00:00
crc16_ccitt.h Changed CRCs from generic interface inherited from ihash. 2015-09-28 17:59:20 +01:00
crc16_kermit.cpp Added Github link to copyright notice. 2015-02-22 13:23:18 +00:00
crc16_kermit.h Changed CRCs from generic interface inherited from ihash. 2015-09-28 17:59:20 +01:00
crc16.cpp Added Github link to copyright notice. 2015-02-22 13:23:18 +00:00
crc16.h Changed CRCs from generic interface inherited from ihash. 2015-09-28 17:59:20 +01:00
crc32.cpp Added Github link to copyright notice. 2015-02-22 13:23:18 +00:00
crc32.h Changed CRCs from generic interface inherited from ihash. 2015-09-28 17:59:20 +01:00
crc64_ecma.cpp Added Github link to copyright notice. 2015-02-22 13:23:18 +00:00
crc64_ecma.h Changed CRCs from generic interface inherited from ihash. 2015-09-28 17:59:20 +01:00
cyclic_value.h Added Github link to copyright notice. 2015-02-22 13:23:18 +00:00
deque.h Fixed comment 2015-09-25 11:59:20 +01:00
Doxyfile Added Github link to copyright notice. 2015-02-22 13:23:18 +00:00
doxygen.h Added Github link to copyright notice. 2015-02-22 13:23:18 +00:00
endian.h Added 'native' element 2015-09-28 18:29:22 +01:00
enum_type.h Comment correction 2015-10-07 17:27:20 +01:00
error_handler.cpp Added Github link to copyright notice. 2015-02-22 13:23:18 +00:00
error_handler.h Modified the error system. 2015-12-10 13:45:29 +00:00
etl.jpg Added project logo 2014-10-31 15:55:13 +00:00
exception.h Added Github link to copyright notice. 2015-02-22 13:23:18 +00:00
factorial.h Added Github link to copyright notice. 2015-02-22 13:23:18 +00:00
favicon.ico Web icon for the project 2014-12-10 16:44:22 +00:00
fibonacci.h Added Github link to copyright notice. 2015-02-22 13:23:18 +00:00
fixed_iterator.h Removed redundant make_fixed_iterator() 2015-12-11 13:05:12 +00:00
flat_map.h Added copy contructor. 2015-03-01 21:20:43 +00:00
flat_multimap.h etl::flat_multimap implementation. 2015-08-28 15:09:46 +01:00
flat_multiset.h Added flat_multiset implementation. 2015-08-28 15:33:56 +01:00
flat_set.h Added copy contructor. 2015-03-01 21:20:43 +00:00
fnv_1.h Changed from generic interface inherited from ihash. 2015-09-28 18:29:03 +01:00
forward_list.h Added Github link to copyright notice. 2015-02-22 13:23:18 +00:00
function.h Added Github link to copyright notice. 2015-02-22 13:23:18 +00:00
functional.h Added Github link to copyright notice. 2015-02-22 13:23:18 +00:00
hash.h Changed from generic interface inherited from ihash. 2015-09-28 18:29:03 +01:00
ibitset.h Added code for GCC warnings 2015-12-11 19:01:54 +00:00
ideque.h Moved non-user headers to private sub-directory. 2015-12-10 14:09:57 +00:00
iflat_map.h Moved non-user headers to private sub-directory. 2015-12-10 14:09:57 +00:00
iflat_multimap.h Moved non-user headers to private sub-directory. 2015-12-10 14:09:57 +00:00
iflat_multiset.h Moved non-user headers to private sub-directory. 2015-12-10 14:09:57 +00:00
iflat_set.h Moved non-user headers to private sub-directory. 2015-12-10 14:09:57 +00:00
iforward_list.h Modified the error system. 2015-12-11 19:02:47 +00:00
ihash.h Changed from generic interface inherited from ihash. 2015-09-28 18:44:27 +01:00
ilist.h Modified the error system. 2015-12-11 19:02:47 +00:00
imap.h Modified the error system. 2015-12-11 19:02:47 +00:00
imultimap.h Modified the error system. 2015-12-11 19:02:47 +00:00
imultiset.h Modified the error system. 2015-12-11 19:02:47 +00:00
instance_count.h Added Github link to copyright notice. 2015-02-22 13:23:18 +00:00
integral_limits.h Added Github link to copyright notice. 2015-02-22 13:23:18 +00:00
intrusive_forward_list_node.h Modified the error system. 2015-12-10 13:45:29 +00:00
intrusive_forward_list.h Modified the error system. 2015-12-10 13:45:29 +00:00
io_port.h Added missing 'return *this' 2015-12-04 10:54:30 +00:00
ipool.h Modified the error system. 2015-12-11 19:02:47 +00:00
ipriority_queue.h Modified the error system. 2015-12-11 19:02:47 +00:00
iqueue.h Modified the error system. 2015-12-11 19:02:47 +00:00
iset.h Modified the error system. 2015-12-11 19:02:47 +00:00
istack.h Modified the error system. 2015-12-11 19:02:47 +00:00
ivector.h Modified the error system. 2015-12-11 19:02:47 +00:00
jenkins.h Modified the error system. 2015-12-10 13:45:29 +00:00
largest.h Added Github link to copyright notice. 2015-02-22 13:23:18 +00:00
LICENSE Initial commit 2014-10-16 12:12:24 +01:00
list.h Hoisted some functions to non-type base class to reduce compiled code size. 2015-12-04 10:34:29 +00:00
log.h Added Github link to copyright notice. 2015-02-22 13:23:18 +00:00
map.h Complete rewrite of aligned storage functionality and subsequent changes to the containers. 2015-03-15 16:29:46 +00:00
multimap.h add multimap and multiset containers 2015-04-25 20:10:13 -06:00
multiset.h add multimap and multiset containers 2015-04-25 20:10:13 -06:00
murmur3.h Modified the error system. 2015-12-10 13:45:29 +00:00
nullptr.h Added Github link to copyright notice. 2015-02-22 13:23:18 +00:00
numeric.h Added Github link to copyright notice. 2015-02-22 13:23:18 +00:00
observer.h Modified the error system. 2015-12-11 19:02:47 +00:00
optional.h Modified the error system. 2015-12-11 19:02:47 +00:00
parameter_type.h Added Github link to copyright notice. 2015-02-22 13:23:18 +00:00
pearson.cpp Added Pearson hash 2015-08-29 16:26:20 +01:00
pearson.h Changed from generic interface inherited from ihash. 2015-09-28 18:44:27 +01:00
pool.h Complete rewrite of aligned storage functionality and subsequent changes to the containers. 2015-03-15 16:29:46 +00:00
power.h Modified 'power' to be able to cope with 64 bit values. 2015-09-13 20:56:34 +01:00
priority_queue.h add priority_queue implementation 2015-06-13 21:22:49 -06:00
queue.h add priority_queue implementation 2015-06-13 21:22:49 -06:00
radix.h Added Github link to copyright notice. 2015-02-22 13:23:18 +00:00
README.md Merge remote-tracking branch 'origin/master' 2015-12-11 19:13:27 +00:00
set.h add multimap and multiset containers 2015-04-25 20:10:13 -06:00
smallest.h Added Github link to copyright notice. 2015-02-22 13:23:18 +00:00
stack.h Complete rewrite of aligned storage functionality and subsequent changes to the containers. 2015-03-15 16:29:46 +00:00
static_assert.h Added Github link to copyright notice. 2015-02-22 13:23:18 +00:00
type_traits.h Modigied wchar_t entries for compatibility with GCC. 2015-12-11 19:03:59 +00:00
variant.h Modified the error system. 2015-12-11 19:02:47 +00:00
vector.h Fixed serious error where etl::vector would always allocate N^2 storage instead of N. 2015-09-13 21:17:40 +01:00
visitor.h Added Github link to copyright notice. 2015-02-22 13:23:18 +00:00

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.)
  • Smart enumerations
  • 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.

See (http://www.etlcpp.com) for up-to-date information.