2016-01-07 21:47:23 +00:00
private Changed error handling. Macros do not evaluate to true or false any more. 2015-12-24 12:08:04 +00:00
test Added ETL_CHECK_PUSH_POP to enable empry/full checks for push & pop functions. Normally this not be set as the code will be doing this check when necessary. 2016-01-07 17:34:37 +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-16 11:37:36 +00:00
alignment.h Added link to www.etlcpp.com in licence header. 2015-12-16 11:09:56 +00:00
array.h Added link to www.etlcpp.com in licence header. 2015-12-16 11:09:56 +00:00
basic_intrusive_forward_list_node.h Added link to www.etlcpp.com in licence header. 2015-12-16 11:09:56 +00:00
basic_intrusive_forward_list.h Added ETL_CHECK_PUSH_POP to enable empry/full checks for push & pop functions. Normally this not be set as the code will be doing this check when necessary. 2016-01-07 17:34:37 +00:00
binary.h Added link to www.etlcpp.com in licence header. 2015-12-16 11:09:56 +00:00
bitset.h Changed error handling. Macros do not evaluate to true or false any more. 2015-12-24 12:08:04 +00:00
bloom_filter.h Added link to www.etlcpp.com in licence header. 2015-12-16 11:09:56 +00:00
bsd_checksum.h Added link to www.etlcpp.com in licence header. 2015-12-16 11:09:56 +00:00
checksum.h Added link to www.etlcpp.com in licence header. 2015-12-16 11:09:56 +00:00
container.h Added link to www.etlcpp.com in licence header. 2015-12-16 11:09:56 +00:00
crc8_ccitt.cpp Added link to www.etlcpp.com in licence header. 2015-12-16 11:09:56 +00:00
crc8_ccitt.h Added link to www.etlcpp.com in licence header. 2015-12-16 11:09:56 +00:00
crc16_ccitt.cpp Added link to www.etlcpp.com in licence header. 2015-12-16 11:09:56 +00:00
crc16_ccitt.h Added link to www.etlcpp.com in licence header. 2015-12-16 11:09:56 +00:00
crc16_kermit.cpp Added link to www.etlcpp.com in licence header. 2015-12-16 11:09:56 +00:00
crc16_kermit.h Added link to www.etlcpp.com in licence header. 2015-12-16 11:09:56 +00:00
crc16.cpp Added link to www.etlcpp.com in licence header. 2015-12-16 11:09:56 +00:00
crc16.h Added link to www.etlcpp.com in licence header. 2015-12-16 11:09:56 +00:00
crc32.cpp Added link to www.etlcpp.com in licence header. 2015-12-16 11:09:56 +00:00
crc32.h Added link to www.etlcpp.com in licence header. 2015-12-16 11:09:56 +00:00
crc64_ecma.cpp Added link to www.etlcpp.com in licence header. 2015-12-16 11:09:56 +00:00
crc64_ecma.h Added link to www.etlcpp.com in licence header. 2015-12-16 11:09:56 +00:00
cyclic_value.h Added link to www.etlcpp.com in licence header. 2015-12-16 11:09:56 +00:00
deque.h Added link to www.etlcpp.com in licence header. 2015-12-16 11:09:56 +00:00
Doxyfile Added link to www.etlcpp.com in licence header. 2015-12-16 11:09:56 +00:00
doxygen.h Added link to www.etlcpp.com in licence header. 2015-12-16 11:09:56 +00:00
endian.h Added link to www.etlcpp.com in licence header. 2015-12-16 11:09:56 +00:00
enum_type.h Merge remote-tracking branch 'origin/development' 2015-12-16 11:37:36 +00:00
error_handler.cpp Added link to www.etlcpp.com in licence header. 2015-12-16 11:09:56 +00:00
error_handler.h Error in ETL_ASSERT definition. Condition should be (!(b)) 2015-12-25 00:01:11 +00:00
etl.jpg Added project logo 2014-10-31 15:55:13 +00:00
exception.h Added link to www.etlcpp.com in licence header. 2015-12-16 11:09:56 +00:00
factorial.h Added link to www.etlcpp.com in licence header. 2015-12-16 11:09:56 +00:00
favicon.ico Web icon for the project 2014-12-10 16:44:22 +00:00
fibonacci.h Added link to www.etlcpp.com in licence header. 2015-12-16 11:09:56 +00:00
fixed_iterator.h Added link to www.etlcpp.com in licence header. 2015-12-16 11:09:56 +00:00
flat_map.h IAR compatibilty. 2015-12-18 19:45:17 +00:00
flat_multimap.h IAR compatibilty. 2015-12-18 19:45:17 +00:00
flat_multiset.h IAR compatibilty. 2015-12-18 19:45:17 +00:00
flat_set.h IAR compatibilty. 2015-12-18 19:45:17 +00:00
fnv_1.h Added link to www.etlcpp.com in licence header. 2015-12-16 11:09:56 +00:00
forward_list.h Added link to www.etlcpp.com in licence header. 2015-12-16 11:09:56 +00:00
function.h Added ETL_CHECK_PUSH_POP to enable empry/full checks for push & pop functions. Normally this not be set as the code will be doing this check when necessary. 2016-01-07 17:34:37 +00:00
functional.h Added link to www.etlcpp.com in licence header. 2015-12-16 11:09:56 +00:00
hash.h Added link to www.etlcpp.com in licence header. 2015-12-16 11:09:56 +00:00
ibitset.h Added link to www.etlcpp.com in licence header. 2015-12-16 11:09:56 +00:00
ideque.h Added ETL_CHECK_PUSH_POP to enable empry/full checks for push & pop functions. Normally this not be set as the code will be doing this check when necessary. 2016-01-07 17:34:37 +00:00
iflat_map.h Changed error handling. Macros do not evaluate to true or false any more. 2015-12-24 12:08:04 +00:00
iflat_multimap.h Changed error handling. Macros do not evaluate to true or false any more. 2015-12-24 12:08:04 +00:00
iflat_multiset.h Changed error handling. Macros do not evaluate to true or false any more. 2015-12-24 12:08:04 +00:00
iflat_set.h Changed error handling. Macros do not evaluate to true or false any more. 2015-12-24 12:08:04 +00:00
iforward_list.h Added ETL_CHECK_PUSH_POP to enable empry/full checks for push & pop functions. Normally this not be set as the code will be doing this check when necessary. 2016-01-07 17:34:37 +00:00
ihash.h Added link to www.etlcpp.com in licence header. 2015-12-16 11:09:56 +00:00
ilist.h Added ETL_CHECK_PUSH_POP to enable empry/full checks for push & pop functions. Normally this not be set as the code will be doing this check when necessary. 2016-01-07 17:34:37 +00:00
imap.h Changed error handling. Macros do not evaluate to true or false any more. 2015-12-24 12:08:04 +00:00
imultimap.h Changed error handling. Macros do not evaluate to true or false any more. 2015-12-24 12:08:04 +00:00
imultiset.h Changed error handling. Macros do not evaluate to true or false any more. 2015-12-24 12:08:04 +00:00
instance_count.h Added link to www.etlcpp.com in licence header. 2015-12-16 11:09:56 +00:00
integral_limits.h Added link to www.etlcpp.com in licence header. 2015-12-16 11:09:56 +00:00
intrusive_forward_list_node.h Added link to www.etlcpp.com in licence header. 2015-12-16 11:09:56 +00:00
intrusive_forward_list.h Added ETL_CHECK_PUSH_POP to enable empry/full checks for push & pop functions. Normally this not be set as the code will be doing this check when necessary. 2016-01-07 17:34:37 +00:00
io_port.h Added link to www.etlcpp.com in licence header. 2015-12-16 11:09:56 +00:00
ipool.h Changed error handling. Macros do not evaluate to true or false any more. 2015-12-24 12:08:04 +00:00
ipriority_queue.h Added ETL_CHECK_PUSH_POP to enable empry/full checks for push & pop functions. Normally this not be set as the code will be doing this check when necessary. 2016-01-07 17:34:37 +00:00
iqueue.h Added ETL_CHECK_PUSH_POP to enable empry/full checks for push & pop functions. Normally this not be set as the code will be doing this check when necessary. 2016-01-07 17:34:37 +00:00
iset.h Changed error handling. Macros do not evaluate to true or false any more. 2015-12-24 12:08:04 +00:00
istack.h Added ETL_CHECK_PUSH_POP to enable empry/full checks for push & pop functions. Normally this not be set as the code will be doing this check when necessary. 2016-01-07 17:34:37 +00:00
ivector.h Added ETL_CHECK_PUSH_POP to enable empry/full checks for push & pop functions. Normally this not be set as the code will be doing this check when necessary. 2016-01-07 17:34:37 +00:00
jenkins.h Changed error handling. Macros do not evaluate to true or false any more. 2015-12-24 12:08:04 +00:00
largest.h Added link to www.etlcpp.com in licence header. 2015-12-16 11:09:56 +00:00
LICENSE Initial commit 2014-10-16 12:12:24 +01:00
list.h Added link to www.etlcpp.com in licence header. 2015-12-16 11:09:56 +00:00
log.h Added link to www.etlcpp.com in licence header. 2015-12-16 11:09:56 +00:00
map.h IAR compatibilty. 2015-12-18 19:45:17 +00:00
multimap.h IAR compatibilty. 2015-12-18 19:45:17 +00:00
multiset.h IAR compatibilty. 2015-12-18 19:45:17 +00:00
murmur3.h Changed error handling. Macros do not evaluate to true or false any more. 2015-12-24 12:08:04 +00:00
nullptr.h Added link to www.etlcpp.com in licence header. 2015-12-16 11:09:56 +00:00
numeric.h Added link to www.etlcpp.com in licence header. 2015-12-16 11:09:56 +00:00
observer.h Changed error handling. Macros do not evaluate to true or false any more. 2015-12-24 12:08:04 +00:00
optional.h Added link to www.etlcpp.com in licence header. 2015-12-16 11:09:56 +00:00
parameter_type.h Added link to www.etlcpp.com in licence header. 2015-12-16 11:09:56 +00:00
pearson.cpp Added link to www.etlcpp.com in licence header. 2015-12-16 11:09:56 +00:00
pearson.h Added link to www.etlcpp.com in licence header. 2015-12-16 11:09:56 +00:00
pool.h Added link to www.etlcpp.com in licence header. 2015-12-16 11:09:56 +00:00
power.h Added link to www.etlcpp.com in licence header. 2015-12-16 11:09:56 +00:00
priority_queue.h Added ETL_CHECK_PUSH_POP to enable empry/full checks for push & pop functions. Normally this not be set as the code will be doing this check when necessary. 2016-01-07 17:34:37 +00:00
queue.h Added link to www.etlcpp.com in licence header. 2015-12-16 11:09:56 +00:00
radix.h Added link to www.etlcpp.com in licence header. 2015-12-16 11:09:56 +00:00
README.md Merge remote-tracking branch 'origin/master' 2015-12-11 19:13:27 +00:00
set.h IAR compatibilty. 2015-12-18 19:45:17 +00:00
smallest.h Added link to www.etlcpp.com in licence header. 2015-12-16 11:09:56 +00:00
stack.h Added link to www.etlcpp.com in licence header. 2015-12-16 11:09:56 +00:00
static_assert.h Added link to www.etlcpp.com in licence header. 2015-12-16 11:09:56 +00:00
type_traits.h Added link to www.etlcpp.com in licence header. 2015-12-16 11:09:56 +00:00
variant.h Added link to www.etlcpp.com in licence header. 2015-12-16 11:09:56 +00:00
vector.h Added link to www.etlcpp.com in licence header. 2015-12-16 11:09:56 +00:00
visitor.h Added link to www.etlcpp.com in licence header. 2015-12-16 11:09:56 +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.