2016-01-15 08:13:53 +00:00
private Added and modified capacity functions to better match the standard container APIs. 2016-01-11 23:58:01 +00:00
test Fixed GCC warnings 2016-01-15 08:13:53 +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 Added link to www.etlcpp.com in licence header. 2015-12-16 11:09:56 +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 Changed node base pointer to more unique name 2016-01-09 10:25:27 +00:00
basic_intrusive_forward_list.h Simplified erase_after code. 2016-01-13 18:57:50 +00:00
basic_string.h Initial parts of string support. Incomplete. 2016-01-13 13:53:52 +00:00
binary.h Added link to www.etlcpp.com in licence header. 2015-12-16 11:09:56 +00:00
bitset.h Removed commented out code. 2016-01-14 18:07:30 +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
char_traits.h Updated with full set of types and functions. 2016-01-12 11:00:24 +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_hash.h Experimental rolling hash 2016-01-12 09:45:17 +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 self assignement guard. 2016-01-14 18:33:36 +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 Added link to www.etlcpp.com in licence header. 2015-12-16 11:09:56 +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 Modified comment 2016-01-13 18:57:20 +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 Changed to assign() for initialisation. 2016-01-14 18:19:07 +00:00
flat_multimap.h Changed to assign() for initialisation. 2016-01-14 18:19:27 +00:00
flat_multiset.h Changed to assign() for initialisation. 2016-01-14 18:19:27 +00:00
flat_set.h Changed to assign() for initialisation. 2016-01-14 18:19:27 +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 Greater compliance with C++ spec. 2016-01-09 11:22:31 +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 Disabled copy constructor. 2016-01-14 18:31:43 +00:00
ideque.h Disabled copy constructor. 2016-01-14 18:31:43 +00:00
iflat_map.h Disabled copy constructor. 2016-01-14 18:31:43 +00:00
iflat_multimap.h Disabled copy constructor. 2016-01-14 18:31:43 +00:00
iflat_multiset.h Disabled copy constructor. 2016-01-14 18:31:43 +00:00
iflat_set.h Disabled copy constructor. 2016-01-14 18:31:43 +00:00
iforward_list.h Disabled copy constructor. 2016-01-14 18:31:43 +00:00
ihash.h Added link to www.etlcpp.com in licence header. 2015-12-16 11:09:56 +00:00
ilist.h Disabled copy constructor. 2016-01-14 18:31:43 +00:00
imap.h Disabled copy constructor. 2016-01-14 18:31:43 +00:00
imultimap.h Disabled copy constructor. 2016-01-14 18:31:43 +00:00
imultiset.h Disabled copy constructor. 2016-01-14 18:31:43 +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 Disabled copy constructor. 2016-01-14 18:31:43 +00:00
ipriority_queue.h Disabled copy constructor. 2016-01-14 18:31:43 +00:00
iqueue.h Disabled copy constructor. 2016-01-14 18:31:43 +00:00
iset.h Disabled copy constructor. 2016-01-14 18:31:43 +00:00
istack.h Disabled copy constructor. 2016-01-14 18:31:43 +00:00
iunordered_map.h New unordered_map 2016-01-14 18:38:48 +00:00
ivector.h Disabled copy constructor. 2016-01-14 18:31:43 +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 self assignement guard. 2016-01-14 18:29:03 +00:00
log.h Added link to www.etlcpp.com in licence header. 2015-12-16 11:09:56 +00:00
map.h Greater compliance with C++ spec. 2016-01-09 11:22:31 +00:00
multimap.h Greater compliance with C++ spec. 2016-01-09 11:22:31 +00:00
multiset.h Greater compliance with C++ spec. 2016-01-09 11:22:31 +00:00
murmur3.h Removed redundant comment 2016-01-13 12:55:35 +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 Modified functions comments about exceptions. 2016-01-11 23:56:09 +00:00
optional.h Added self assignement guard. 2016-01-14 18:30:24 +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 Disabled copy constructor and assignment operator. 2016-01-14 18:30:02 +00:00
power.h Added link to www.etlcpp.com in licence header. 2015-12-16 11:09:56 +00:00
priority_queue.h Removed unnecessary priority_queue_base 2016-01-09 10:23:53 +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 Added more text 2014-12-08 20:24:56 +00:00
set.h Greater compliance with C++ spec. 2016-01-09 11:22:31 +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 Fixed Linux/GCC error for whar_t 2016-01-13 16:08:46 +00:00
unordered_map.h New unordered_map 2016-01-14 18:06:07 +00:00
variant.h Added link to www.etlcpp.com in licence header. 2015-12-16 11:09:56 +00:00
vector.h Disabled copy constructor. 2016-01-14 18:31:43 +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 open ended sized containers.

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:

  • No dynamic memory allocation.
  • A set of fixed capacity containers. (stack, queue, list, forward_list, vector, deque)
  • 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
  • Many utilities for template support.
  • Variants (a type that can store many types in a type-safe interface)
  • Optional exceptions on errors.