416 Commits

Author SHA1 Message Date
John Wellbelove
c279c0ce03 Modified error_handler include. 2015-12-11 19:01:12 +00:00
John Wellbelove
19c10d3ef7 Modified error_handler include. 2015-12-11 19:00:57 +00:00
John Wellbelove
d587ec7fc2 Modified error_handler include. 2015-12-11 19:00:28 +00:00
John Wellbelove
b46357da05 Added mask to final result of fold_bits() 2015-12-11 18:59:55 +00:00
John Wellbelove
69575b0e99 Removed redundant make_fixed_iterator() 2015-12-11 13:05:12 +00:00
John Wellbelove
64c33cb4dd Moved non-user headers to private sub-directory. 2015-12-10 14:09:57 +00:00
John Wellbelove
72fc0e451d Moved non-user headers to private sub-directory. 2015-12-10 14:09:22 +00:00
John Wellbelove
62f807ca72 Moved non-user headers to private sub-directory. 2015-12-10 14:08:59 +00:00
John Wellbelove
34e4351e85 Moved non-user headers to private sub-directory. 2015-12-10 14:08:47 +00:00
John Wellbelove
632bc59f9c Modified the error system.
Remove ETL_ERROR and replaced with ETL_ASSERT.
ETL_ASSERT will eveluate to 'true' in all cases except for error logging.
This will allow 'if' statements that contain the macro to be optimised away for all cases except logging.
Added ETL_NO_CHECKS and ETL_LOG_ERRORS macro checks.

The options are now:-
ETL_NO_CHECKS         ETL_ASSERT does nothing. Evaluates to 'true'.
ETL_THROW_EXCEPTIONS) ETL_ASSERT throws an exception if the condition fails. Evaluates to 'true'.
ETL_LOG_ERRORS        ETL_ASSERT logs the error if the condition fails. Evaluates to the result of the condition.
If none of the above are defined:-
NDEBUG ETL_ASSERT does nothing. Evaluates to 'true'.
Otherwise:-
ETL_ASSERT asserts if the condition fails. Evaluates to 'true'.
2015-12-10 13:45:29 +00:00
John Wellbelove
a7d9b44f33 Modified some tests to check return values of operators 2015-12-10 13:38:51 +00:00
John Wellbelove
6f7e26523e Moved more code to base class. 2015-12-10 13:38:08 +00:00
John Wellbelove
8f7b16dc9c Redesigned bitset to use no virtual functions.
Fixed storage array type as uint8_t.
2015-12-09 15:31:41 +00:00
John Wellbelove
1ffa608734 Added extra debug runtime check for assign() 2015-12-07 10:55:25 +00:00
John Wellbelove
b6cb3640db Changed error handler to new macro 2015-12-07 10:54:50 +00:00
John Wellbelove
b0102026ae Added test for begin() == end() for empty container. 2015-12-07 10:47:01 +00:00
John Wellbelove
26c31eb05b Fixed begin() != end() for empty container.
Added test for above.
2015-12-07 10:46:30 +00:00
John Wellbelove
8426565b9b Created multiset_base.h and derived imultiset from it.
Moved non-type code to base classes.
2015-12-05 15:57:16 +00:00
John Wellbelove
b3b9426a69 Created multiset_base.h and derived imultiset from it.
Moved non-type code to base classes.
2015-12-05 15:56:57 +00:00
John Wellbelove
5794aebd8b Created multimap_base.h and derived imultimap from it.
Moved non-type code to base classes.
2015-12-05 14:57:14 +00:00
John Wellbelove
4df6cf4c38 Moved code to non-type base class. 2015-12-05 12:26:30 +00:00
John Wellbelove
e95ec5a98c Added basic_forward_intrusive_list and updated intrusive_forward_list 2015-12-05 11:17:10 +00:00
John Wellbelove
db35249319 Added basic_forward_intrusive_list and updated intrusive_forward_list 2015-12-05 11:16:52 +00:00
John Wellbelove
9a4c0e693b Changed size_t type for count result to int32_t. 2015-12-04 11:40:51 +00:00
John Wellbelove
7645b14072 Added missing 'return *this' 2015-12-04 10:54:30 +00:00
John Wellbelove
aa2fcf7d42 Hoisted some functions to non-type base class to reduce compiled code size. 2015-12-04 10:34:29 +00:00
John Wellbelove
a0c0f46035 Removed files. Now using Keil default install directory 2015-12-03 11:31:41 +00:00
John Wellbelove
abe2bd50e5 Added intrusive_forward_list 2015-10-13 10:56:02 +01:00
John Wellbelove
7c0e5f42cd Fixed bug in push_front. Items were not linked correctly. 2015-10-10 16:55:33 +01:00
John Wellbelove
02211e969c Added nullptr check in remove_node_after 2015-10-08 11:06:12 +01:00
John Wellbelove
1ba191fa51 Comment correction 2015-10-07 17:27:20 +01:00
John Wellbelove
49d6c70910 Removed the need for the 'end' node. Reduces the container size by one pointer. 2015-10-07 17:26:54 +01:00
John Wellbelove
736770394f Updated to VS2015 2015-09-28 18:44:48 +01:00
John Wellbelove
04a50d2b8a Changed from generic interface inherited from ihash. 2015-09-28 18:44:27 +01:00
John Wellbelove
31e828b4bb Minor change to template paramter value. 2015-09-28 18:31:19 +01:00
John Wellbelove
7bea827b94 Modified tests due to hash changes 2015-09-28 18:30:32 +01:00
John Wellbelove
5ac3c81d90 Modified tests due to hash changes 2015-09-28 18:30:11 +01:00
John Wellbelove
b3e93e38d6 Removed redundant header 2015-09-28 18:29:45 +01:00
John Wellbelove
8347c263c8 Added 'native' element 2015-09-28 18:29:22 +01:00
John Wellbelove
db359ecbab Changed from generic interface inherited from ihash. 2015-09-28 18:29:03 +01:00
John Wellbelove
1dae6210dd Changed CRCs from generic interface inherited from ihash. 2015-09-28 17:59:20 +01:00
John Wellbelove
318a0230d1 Changed bsd_checksum from generic interface inherited from ihash. 2015-09-28 09:51:30 +01:00
John Wellbelove
a2ca71731e Changed Murmur3 hash from generic interface inherited from ihash.
Added hash sum type as a non-type template parameter.
2015-09-28 09:40:45 +01:00
John Wellbelove
6a81573c2a Changed Jenkins hash from generic interface inherited from ihash.
Added hash sum type as a non-type template parameter.
2015-09-28 09:22:27 +01:00
John Wellbelove
16117d9a5c Added etl::max_value_for_nbits
Fixed etl::fold_bits by using etl::max_value_for_nbits in while loop.
2015-09-25 12:00:18 +01:00
John Wellbelove
0c75aed0fe Fixed comment 2015-09-25 11:59:20 +01:00
John Wellbelove
0e4d57b05c Changed size_t to TValue in 'fold_bits' 2015-09-19 14:45:16 +01:00
John Wellbelove
138bb98399 Added a test to check that the allocated size of the class is as expected. 2015-09-19 14:44:36 +01:00
John Wellbelove
2a4b6a1e19 Spelling mistake in comment 2015-09-19 14:43:54 +01:00
John Wellbelove
a31cae151d Fixed serious error where etl::vector would always allocate N^2 storage instead of N. 2015-09-13 21:13:53 +01:00