2089 Commits

Author SHA1 Message Date
jwellbelove
f7eb9dd04e Initial parts of string support. Incomplete. 2016-01-13 13:53:52 +00:00
jwellbelove
5208751a8c Added compiler #if to exclude Windows header for Linux platforms. 2016-01-13 13:53:28 +00:00
jwellbelove
2926a72ea2 Removed redundant comment 2016-01-13 12:55:35 +00:00
jwellbelove
f7b9907767 Added compilation macro to change the element type from default uint8_t.
Define ETL_BITSET_ELEMENT_TYPE to customise.
2016-01-13 12:18:34 +00:00
jwellbelove
07d5e63510 Updated with full set of types and functions. 2016-01-12 11:00:24 +00:00
jwellbelove
674b3fe343 Experimental rolling hash 2016-01-12 09:45:17 +00:00
John Wellbelove
1ecbbe5c05 Added and modified capacity functions to better match the standard container APIs. 2016-01-11 23:58:01 +00:00
John Wellbelove
e8a365ff75 Removed unneeded base class 2016-01-11 23:57:10 +00:00
John Wellbelove
ea12a09364 Modified functions comments about exceptions. 2016-01-11 23:56:09 +00:00
jwellbelove
bbf835a8a6 Initial parts of string support. Incomplete. 2016-01-11 15:13:01 +00:00
John Wellbelove
d1651535e1 Added tests to check for inserts overwriting existing values. 2016-01-09 13:07:14 +00:00
John Wellbelove
1c9cf2246b Fixed insert overwriting existing value. 2016-01-09 13:06:38 +00:00
John Wellbelove
fff1b4d7d4 Greater compliance with C++ spec. 2016-01-09 11:22:31 +00:00
John Wellbelove
760f08db0b Comment spelling 2016-01-09 11:21:45 +00:00
John Wellbelove
737c1c8abd Removed unecessary base class 2016-01-09 11:21:12 +00:00
John Wellbelove
b794ce623a Added iterator test for empty container 2016-01-09 10:28:56 +00:00
John Wellbelove
1c4dbac759 Added an etl::map test. 2016-01-09 10:28:14 +00:00
John Wellbelove
2abef4aa40 Added a "No Unit Tests" debug configuration 2016-01-09 10:27:08 +00:00
John Wellbelove
231721a980 Changed node base pointer to more unique name 2016-01-09 10:25:27 +00:00
John Wellbelove
0e1eaa3aef Removed unnecessary priority_queue_base 2016-01-09 10:23:53 +00:00
John Wellbelove
31a22d93af Moved call to initialise() to after construction completed. 2016-01-09 10:05:14 +00:00
John Wellbelove
9cfbe76358 Merge remote-tracking branch 'origin/development' 2016-01-07 21:47:23 +00:00
John Wellbelove
8aff17435c 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
John Wellbelove
94914dc31d Merge remote-tracking branch 'origin/development' 7.2 2015-12-25 00:02:59 +00:00
John Wellbelove
dc374a3185 Error in ETL_ASSERT definition. Condition should be (!(b)) 2015-12-25 00:01:11 +00:00
John Wellbelove
c7abb82309 Merge remote-tracking branch 'origin/development' 7.1 2015-12-24 12:17:29 +00:00
John Wellbelove
6d2170ad3e Keil project changes 2015-12-24 12:16:07 +00:00
John Wellbelove
7b9c598226 Changed error handling. Macros do not evaluate to true or false any more.
If ETL_LOG_ERRORS is defined then the error handler is called before the exception is thrown or the assert is called.
ETL_LOG_ERRORS may be used in conjunction with ETL_THROW_EXCEPTIONS or default assert methods. It is not valid for ETL_NO_CHECKS.
2015-12-24 12:08:04 +00:00
John Wellbelove
831d5dc98e Merge branch 'development' 7 7.0 2015-12-18 19:49:51 +00:00
John Wellbelove
d96a10cdcf IAR compatibilty. 2015-12-18 19:46:02 +00:00
John Wellbelove
f04e9d7302 Added tests for multiple same value insert. 2015-12-18 19:45:52 +00:00
John Wellbelove
922a5abf28 IAR compatibilty. 2015-12-18 19:45:17 +00:00
John Wellbelove
4a0fcb0f70 IAR compatibilty.
Fixed bug in 'insert' where existing element was not checked for.
2015-12-18 19:44:53 +00:00
John Wellbelove
e744c11b50 Fixes for IAR compiler compatibilty 2015-12-17 10:46:20 +00:00
John Wellbelove
57011fc1f3 Merge remote-tracking branch 'origin/development' 2015-12-16 11:37:36 +00:00
John Wellbelove
16a1978f43 Added link to www.etlcpp.com in licence header. 2015-12-16 11:09:56 +00:00
John Wellbelove
a048784285 Changed the way that errors are produced and handled.
Compile time macros control the type and verbosity of the errors to allow space and performance optimisation.
2015-12-15 19:28:12 +00:00
John Wellbelove
81f76302f2 Merge remote-tracking branch 'origin/development' 2015-12-11 21:00:12 +00:00
John Wellbelove
57b3864449 Missing closing ) 2015-12-11 20:58:52 +00:00
John Wellbelove
a2c8ea9e77 Merge remote-tracking branch 'origin/master' 2015-12-11 19:13:27 +00:00
John Wellbelove
4aea474a4b Merge remote-tracking branch 'origin/development' 2015-12-11 19:11:02 +00:00
John Wellbelove
f6ee2b50f9 Updated Code::Blocks projects files 2015-12-11 19:07:41 +00:00
John Wellbelove
b48c6e052b Updated VS projects files 2015-12-11 19:07:19 +00:00
John Wellbelove
ac291bab2a Updated Keil projects files 2015-12-11 19:07:01 +00:00
John Wellbelove
2645cdf3e0 Casts to keep GCC happy 2015-12-11 19:06:33 +00:00
John Wellbelove
dea534aaa8 Modified to eradicate unused variable warning. 2015-12-11 19:06:12 +00:00
John Wellbelove
eb2a60ee8f Modified to eradicate unused variable warning in GCC 2015-12-11 19:05:49 +00:00
John Wellbelove
ee916a3c48 Modigied wchar_t entries for compatibility with GCC. 2015-12-11 19:03:59 +00:00
John Wellbelove
b055c3722e Modified error_handler include. 2015-12-11 19:03:23 +00:00
John Wellbelove
48919b3c15 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-11 19:02:47 +00:00