mirror of
https://github.com/ETLCPP/etl.git
synced 2026-04-30 19:09:10 +08:00
Squashed commit of the following:
commit c217b3ec12b26104e8f1027c1766cc9d49b93a29
Author: John Wellbelove <john.wellbelove@asterconsulting.co.uk>
Date: Thu Apr 21 11:57:55 2022 +0200
Added mutex traits
Added transparent comparator test to multimap
commit b6487b869e5599ea067d45af1778d5c0f90c6a52
Author: John Wellbelove <john.wellbelove@asterconsulting.co.uk>
Date: Thu Apr 21 10:42:06 2022 +0200
Modified char8_t, char16_t and char32_t macros.
Added conditional compilation on the presense of native char8_t, char16_t and char32_t types.
commit 2c2bd86ce3d5d5d698e922518421a93f70a9cc1e
Author: John Wellbelove <john.wellbelove@asterconsulting.co.uk>
Date: Thu Apr 21 10:29:04 2022 +0200
Modified char8_t, char16_t and char32_t macros.
Added conditional compilation on the presense of native char8_t, char16_t and char32_t types.
commit d16242d20e9b6df6752a926d862d0016a452bada
Author: John Wellbelove <john.wellbelove@asterconsulting.co.uk>
Date: Wed Apr 20 13:53:37 2022 +0200
Expanded constexpr test
commit fad097e6656cd4639c2d81bc8cad2467cae4b4ce
Author: John Wellbelove <john.wellbelove@asterconsulting.co.uk>
Date: Wed Apr 20 13:53:05 2022 +0200
Added ETL_OVERRIDE to state chart process_event()
commit 25403c2225f3aff0b99105a54cfc44f1cf88d527
Author: John Wellbelove <john.wellbelove@asterconsulting.co.uk>
Date: Wed Apr 20 13:41:00 2022 +0200
Added test_etl_traits
commit e42c778cf645cb8fc06e5930336e7f1183004dfe
Author: John Wellbelove <john.wellbelove@asterconsulting.co.uk>
Date: Wed Apr 20 13:38:22 2022 +0200
Removed unused code.
commit 5a25c0c1973f7094ef3aa5b6f29529e96450451c
Author: John Wellbelove <john.wellbelove@asterconsulting.co.uk>
Date: Sun Apr 17 13:17:29 2022 +0200
Large and small character support macros
commit 6a463fb65ef655b700a8dea381265a3c1b622658
Author: Melg Eight <public.melg8@gmail.com>
Date: Sun Apr 17 13:54:34 2022 +0300
Fix spelling (#535)
Signed-off-by: Melg Eight <public.melg8@gmail.com>
commit 5468eb659c8b4ecdb3d08e8b8f0442c5a2549a48
Author: Gabriel Arjones <arjones@arjones.com>
Date: Thu Apr 14 17:55:27 2022 -0300
cmake: write an arch independent version file (#534)
This commit is contained in:
parent
05e85b9e90
commit
36d126c93e
@ -37,6 +37,7 @@ if(${CMAKE_PROJECT_NAME} STREQUAL ${PROJECT_NAME})
|
||||
write_basic_package_version_file(
|
||||
"${PROJECT_NAME}ConfigVersion.cmake"
|
||||
COMPATIBILITY SameMajorVersion
|
||||
ARCH_INDEPENDENT
|
||||
)
|
||||
endif()
|
||||
configure_package_config_file(
|
||||
|
||||
@ -188,7 +188,7 @@ private:
|
||||
};
|
||||
|
||||
//*****************************************************************************
|
||||
// A message bus that can accomodate two subscribers.
|
||||
// A message bus that can accommodate two subscribers.
|
||||
//*****************************************************************************
|
||||
struct Bus : public etl::message_bus<2U>
|
||||
{
|
||||
|
||||
@ -106,14 +106,14 @@ namespace etl
|
||||
//***************************************************************************
|
||||
// swap_ranges
|
||||
//***************************************************************************
|
||||
template <typename T1terator1, typename TIterator2>
|
||||
template <typename TIterator1, typename TIterator2>
|
||||
#if ETL_USING_STD_NAMESPACE
|
||||
ETL_CONSTEXPR20
|
||||
#else
|
||||
ETL_CONSTEXPR14
|
||||
#endif
|
||||
TIterator2 swap_ranges(T1terator1 first1,
|
||||
T1terator1 last1,
|
||||
TIterator2 swap_ranges(TIterator1 first1,
|
||||
TIterator1 last1,
|
||||
TIterator2 first2)
|
||||
{
|
||||
while (first1 != last1)
|
||||
|
||||
@ -28,8 +28,8 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
SOFTWARE.
|
||||
******************************************************************************/
|
||||
|
||||
#ifndef ETL_ALIGNEMENT_INCLUDED
|
||||
#define ETL_ALIGNEMENT_INCLUDED
|
||||
#ifndef ETL_ALIGNMENT_INCLUDED
|
||||
#define ETL_ALIGNMENT_INCLUDED
|
||||
|
||||
#include <stdint.h>
|
||||
|
||||
|
||||
@ -362,7 +362,7 @@ namespace etl
|
||||
//*************************************************************************
|
||||
/// Fills the array from the range.
|
||||
/// If the range is smaller than the array then the unused array elements are left unmodified.
|
||||
///\param first The iterator to the first item in the ramge.
|
||||
///\param first The iterator to the first item in the range.
|
||||
///\param last The iterator to one past the final item in the range.
|
||||
//*************************************************************************
|
||||
template <typename TIterator>
|
||||
@ -374,7 +374,7 @@ namespace etl
|
||||
//*************************************************************************
|
||||
/// Fills the array from the range.
|
||||
/// If the range is smaller than the array then the unused array elements are initialised with the supplied value.
|
||||
///\param first The iterator to the first item in the ramge.
|
||||
///\param first The iterator to the first item in the range.
|
||||
///\param last The iterator to one past the final item in the range.
|
||||
//*************************************************************************
|
||||
template <typename TIterator>
|
||||
|
||||
@ -219,7 +219,7 @@ namespace etl
|
||||
}
|
||||
|
||||
//***************************************************************************
|
||||
/// Cconstructor.
|
||||
/// Constructor.
|
||||
//***************************************************************************
|
||||
ETL_CONSTEXPR basic_format_spec(uint_least8_t base__,
|
||||
uint_least8_t width__,
|
||||
|
||||
@ -1626,7 +1626,7 @@ namespace etl
|
||||
}
|
||||
|
||||
//*********************************************************************
|
||||
/// Replace characters from 'position' of 'length' with 'str' from 'subpsotion' of 'sublength'.
|
||||
/// Replace characters from 'position' of 'length' with 'str' from 'subposition' of 'sublength'.
|
||||
//*********************************************************************
|
||||
ibasic_string& replace(size_type position, size_type length_, const ibasic_string& str, size_type subposition, size_type sublength)
|
||||
{
|
||||
|
||||
@ -81,7 +81,7 @@ namespace etl
|
||||
}
|
||||
|
||||
//***************************************************
|
||||
/// Copy constuctor
|
||||
/// Copy constructor
|
||||
//***************************************************
|
||||
const_iterator(const const_iterator& other)
|
||||
: p_bresenham_line(other.p_bresenham_line)
|
||||
|
||||
@ -44,7 +44,7 @@ SOFTWARE.
|
||||
namespace etl
|
||||
{
|
||||
//***************************************************************************
|
||||
/// Defines <=, >, >= interms of <
|
||||
/// Defines <=, >, >= in terms of <
|
||||
/// Default
|
||||
//***************************************************************************
|
||||
template <typename T, typename TLess = etl::less<T> >
|
||||
|
||||
@ -159,7 +159,7 @@ namespace etl
|
||||
}
|
||||
|
||||
//*********************************
|
||||
/// Get the covaniance.
|
||||
/// Get the covariance.
|
||||
//*********************************
|
||||
double get_covariance() const
|
||||
{
|
||||
|
||||
@ -260,7 +260,7 @@ namespace etl
|
||||
private:
|
||||
|
||||
T average; ///< The current cumulative average.
|
||||
sample_t samples; ///< The nuimber of samples to average over.
|
||||
sample_t samples; ///< The number of samples to average over.
|
||||
};
|
||||
|
||||
//***************************************************************************
|
||||
|
||||
@ -43,8 +43,8 @@ namespace etl
|
||||
{
|
||||
//***************************************************************************
|
||||
///\ingroup fibonacci
|
||||
/// Defines <b>value</b> as the Nth Fibbonacci number.
|
||||
///\tparam N The number to find the Fibbonacci value of.
|
||||
/// Defines <b>value</b> as the Nth Fibonacci number.
|
||||
///\tparam N The number to find the Fibonacci value of.
|
||||
//***************************************************************************
|
||||
template <size_t N>
|
||||
struct fibonacci
|
||||
|
||||
@ -86,7 +86,7 @@ namespace etl
|
||||
private:
|
||||
|
||||
//*******************************************
|
||||
/// Return the first common ancester of the two states.
|
||||
/// Return the first common ancestor of the two states.
|
||||
//*******************************************
|
||||
static etl::ifsm_state* common_ancestor(etl::ifsm_state* s1, etl::ifsm_state* s2)
|
||||
{
|
||||
|
||||
@ -604,7 +604,7 @@ namespace etl
|
||||
|
||||
//*********************************************************************
|
||||
/// Does nothing.
|
||||
/// For compatilbilty with the STL vector API.
|
||||
/// For compatibility with the STL vector API.
|
||||
//*********************************************************************
|
||||
void reserve(size_t)
|
||||
{
|
||||
|
||||
@ -103,7 +103,7 @@ namespace etl
|
||||
private:
|
||||
|
||||
//*************************************************************************
|
||||
/// Get a referenceto the count.
|
||||
/// Get a reference to the count.
|
||||
//*************************************************************************
|
||||
static counter_type& current_instance_count()
|
||||
{
|
||||
|
||||
@ -41,7 +41,7 @@ SOFTWARE.
|
||||
|
||||
//*****************************************************************************
|
||||
///\defgroup integral_limits integral_limits
|
||||
/// A set of templated compile time constants that mirror some of std::numeric_limits funtionality.
|
||||
/// A set of templated compile time constants that mirror some of std::numeric_limits functionality.
|
||||
///\ingroup utilities
|
||||
//*****************************************************************************
|
||||
|
||||
|
||||
@ -128,7 +128,7 @@ namespace etl
|
||||
//*************************************************************************
|
||||
/// Removes the oldest item from the queue and pushes it to the destination.
|
||||
/// Undefined behaviour if the queue is already empty.
|
||||
/// NOTE: The destination must be an intrusize container that supports a push(TLink) member function.
|
||||
/// NOTE: The destination must be an intrusive container that supports a push(TLink) member function.
|
||||
//*************************************************************************
|
||||
template <typename TContainer>
|
||||
void pop_into(TContainer& destination)
|
||||
|
||||
@ -116,7 +116,7 @@ namespace etl
|
||||
//*************************************************************************
|
||||
/// Removes the oldest item from the queue and pushes it to the destination.
|
||||
/// Undefined behaviour if the queue is already empty.
|
||||
/// NOTE: The destination must be an intrusize container that supports a push(TLink) member function.
|
||||
/// NOTE: The destination must be an intrusive container that supports a push(TLink) member function.
|
||||
//*************************************************************************
|
||||
template <typename TContainer>
|
||||
void pop_into(TContainer& destination)
|
||||
|
||||
@ -1991,7 +1991,7 @@ namespace etl
|
||||
}
|
||||
else
|
||||
{
|
||||
// Attatch node to right
|
||||
// Attach node to right
|
||||
attach_node(found->children[found->dir], node);
|
||||
|
||||
// Return newly added node
|
||||
@ -2024,7 +2024,7 @@ namespace etl
|
||||
}
|
||||
else
|
||||
{
|
||||
// Attatch node to current position
|
||||
// Attach node to current position
|
||||
attach_node(position, node);
|
||||
|
||||
// Return newly added node at current position
|
||||
|
||||
@ -1629,7 +1629,7 @@ bool operator >=(const etl::unique_ptr<T1, TD1>&lhs, const etl::unique_ptr<T2, T
|
||||
namespace etl
|
||||
{
|
||||
//*****************************************************************************
|
||||
/// Default contruct an item at address p.
|
||||
/// Default construct an item at address p.
|
||||
///\ingroup memory
|
||||
//*****************************************************************************
|
||||
template <typename T>
|
||||
@ -1639,7 +1639,7 @@ namespace etl
|
||||
}
|
||||
|
||||
//*****************************************************************************
|
||||
/// Default contruct an item at address p.
|
||||
/// Default construct an item at address p.
|
||||
///\ingroup memory
|
||||
//*****************************************************************************
|
||||
template <typename T, typename TCounter>
|
||||
@ -1650,7 +1650,7 @@ namespace etl
|
||||
}
|
||||
|
||||
//*****************************************************************************
|
||||
/// Default contruct an item at address p.
|
||||
/// Default construct an item at address p.
|
||||
///\ingroup memory
|
||||
//*****************************************************************************
|
||||
template <typename T>
|
||||
@ -1661,7 +1661,7 @@ namespace etl
|
||||
}
|
||||
|
||||
//*****************************************************************************
|
||||
/// Default contruct an item at address p.
|
||||
/// Default construct an item at address p.
|
||||
///\ingroup memory
|
||||
//*****************************************************************************
|
||||
template <typename T, typename TCounter>
|
||||
|
||||
@ -35,7 +35,7 @@ SOFTWARE.
|
||||
#include "array.h"
|
||||
|
||||
///\defgroup multi_array multi_array
|
||||
/// A multi dimentional array.
|
||||
/// A multi dimensional array.
|
||||
///\ingroup containers
|
||||
|
||||
namespace etl
|
||||
|
||||
@ -35,7 +35,7 @@
|
||||
#include "vector.h"
|
||||
|
||||
///\defgroup multi_vector multi_vector
|
||||
/// A multi dimentional vector.
|
||||
/// A multi dimensional vector.
|
||||
///\ingroup containers
|
||||
|
||||
#if ETL_USING_CPP11
|
||||
|
||||
@ -2029,7 +2029,7 @@ namespace etl
|
||||
}
|
||||
else
|
||||
{
|
||||
// Attatch node to current position (which is assumed to be root)
|
||||
// Attach node to current position (which is assumed to be root)
|
||||
attach_node(ETL_NULLPTR, position, node);
|
||||
|
||||
// Return newly added node at current position
|
||||
|
||||
@ -92,7 +92,7 @@ namespace etl
|
||||
//*********************************************************************
|
||||
/// The object that is being observed.
|
||||
///\tparam TObserver The observer type.
|
||||
///\tparam MAX_OBSERVERS The maximum number of observers that can be accomodated.
|
||||
///\tparam MAX_OBSERVERS The maximum number of observers that can be accommodated.
|
||||
///\ingroup observer
|
||||
//*********************************************************************
|
||||
template <typename TObserver, const size_t MAX_OBSERVERS>
|
||||
|
||||
@ -41,7 +41,7 @@ namespace etl
|
||||
{
|
||||
//***************************************************************************
|
||||
///\ingroup permutations
|
||||
/// Calculates permutaions.
|
||||
/// Calculates permutations.
|
||||
//***************************************************************************
|
||||
template <const size_t NV, const size_t KV>
|
||||
struct permutations
|
||||
|
||||
@ -157,7 +157,7 @@ namespace etl
|
||||
|
||||
if (value == 0)
|
||||
{
|
||||
// If number is negative, append '-' (a negative zero might occure for fractional numbers > -1.0)
|
||||
// If number is negative, append '-' (a negative zero might occur for fractional numbers > -1.0)
|
||||
if ((format.get_base() == 10U) && negative)
|
||||
{
|
||||
str.push_back(type('-'));
|
||||
@ -377,7 +377,7 @@ namespace etl
|
||||
|
||||
iterator start = str.end();
|
||||
|
||||
// Caculate the denominator.
|
||||
// Calculate the denominator.
|
||||
working_t denominator = 1U;
|
||||
|
||||
for (uint32_t i = 0U; i < denominator_exponent; ++i)
|
||||
@ -558,11 +558,11 @@ namespace etl
|
||||
typename etl::enable_if<etl::is_integral<T>::value &&
|
||||
!etl::is_same<T, bool>::value &&
|
||||
!etl::is_one_of<T, int64_t, uint64_t>::value, const TIString&>::type
|
||||
to_string(const T value, uint32_t denominator_exponant, TIString& str, const etl::basic_format_spec<TIString>& format, const bool append = false)
|
||||
to_string(const T value, uint32_t denominator_exponent, TIString& str, const etl::basic_format_spec<TIString>& format, const bool append = false)
|
||||
{
|
||||
typedef typename etl::conditional<etl::is_signed<T>::value, int32_t, uint32_t>::type type;
|
||||
|
||||
etl::private_to_string::add_integral_denominated(type(value), denominator_exponant, str, format, append);
|
||||
etl::private_to_string::add_integral_denominated(type(value), denominator_exponent, str, format, append);
|
||||
|
||||
return str;
|
||||
}
|
||||
@ -574,9 +574,9 @@ namespace etl
|
||||
typename etl::enable_if<etl::is_integral<T>::value&&
|
||||
!etl::is_same<T, bool>::value&&
|
||||
etl::is_one_of<T, int64_t, uint64_t>::value, const TIString&>::type
|
||||
to_string(const T value, uint32_t denominator_exponant, TIString& str, const etl::basic_format_spec<TIString>& format, const bool append = false)
|
||||
to_string(const T value, uint32_t denominator_exponent, TIString& str, const etl::basic_format_spec<TIString>& format, const bool append = false)
|
||||
{
|
||||
etl::private_to_string::add_integral_denominated(value, denominator_exponant, str, format, append);
|
||||
etl::private_to_string::add_integral_denominated(value, denominator_exponent, str, format, append);
|
||||
|
||||
return str;
|
||||
}
|
||||
@ -602,9 +602,9 @@ namespace etl
|
||||
template <typename T, typename TIString>
|
||||
typename etl::enable_if<etl::is_integral<T>::value &&
|
||||
!etl::is_same<T, bool>::value>::value, const TIString& > ::type
|
||||
to_string(const T value, uint32_t denominator_exponant, TIString& str, const etl::basic_format_spec<TIString>& format, const bool append = false)
|
||||
to_string(const T value, uint32_t denominator_exponent, TIString& str, const etl::basic_format_spec<TIString>& format, const bool append = false)
|
||||
{
|
||||
etl::private_to_string::add_integral_denominated(type(value), denominator_exponant, str, format, append, false);
|
||||
etl::private_to_string::add_integral_denominated(type(value), denominator_exponent, str, format, append, false);
|
||||
|
||||
return str;
|
||||
}
|
||||
|
||||
@ -857,7 +857,7 @@ namespace etl
|
||||
|
||||
#if ETL_USING_CPP17 && !defined(ETL_VARIANT_FORCE_CPP11)
|
||||
//***************************************************************************
|
||||
/// Call the relevent visitor by attemptng each one.
|
||||
/// Call the relevent visitor by attempting each one.
|
||||
//***************************************************************************
|
||||
template <size_t... I>
|
||||
void do_accept(etl::visitor<TTypes...>& visitor, etl::index_sequence<I...>)
|
||||
@ -934,7 +934,7 @@ namespace etl
|
||||
|
||||
#if ETL_USING_CPP17 && !defined(ETL_VARIANT_FORCE_CPP11)
|
||||
//***************************************************************************
|
||||
/// Call the relevent visitor by attemptng each one.
|
||||
/// Call the relevent visitor by attempting each one.
|
||||
//***************************************************************************
|
||||
template <typename TVisitor, size_t... I>
|
||||
void do_operator(TVisitor& visitor, etl::index_sequence<I...>)
|
||||
|
||||
@ -28,8 +28,8 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
SOFTWARE.
|
||||
******************************************************************************/
|
||||
|
||||
#ifndef ETL_QUANTATIZE_INCLUDED
|
||||
#define ETL_QUANTATIZE_INCLUDED
|
||||
#ifndef ETL_QUANTIZE_INCLUDED
|
||||
#define ETL_QUANTIZE_INCLUDED
|
||||
|
||||
#include "platform.h"
|
||||
#include "functional.h"
|
||||
|
||||
@ -66,7 +66,7 @@ namespace etl
|
||||
//*************************************************************************
|
||||
size_type available_unlocked() const
|
||||
{
|
||||
return available_impementation();
|
||||
return available_implementation();
|
||||
}
|
||||
|
||||
//*************************************************************************
|
||||
@ -76,7 +76,7 @@ namespace etl
|
||||
{
|
||||
this->lock();
|
||||
|
||||
size_type result = available_impementation();
|
||||
size_type result = available_implementation();
|
||||
|
||||
this->unlock();
|
||||
|
||||
@ -89,7 +89,7 @@ namespace etl
|
||||
//*************************************************************************
|
||||
bool empty_unlocked() const
|
||||
{
|
||||
return empty_impementation();
|
||||
return empty_implementation();
|
||||
}
|
||||
|
||||
//*************************************************************************
|
||||
@ -99,7 +99,7 @@ namespace etl
|
||||
{
|
||||
this->lock();
|
||||
|
||||
size_type result = empty_impementation();
|
||||
size_type result = empty_implementation();
|
||||
|
||||
this->unlock();
|
||||
|
||||
@ -112,7 +112,7 @@ namespace etl
|
||||
//*************************************************************************
|
||||
bool full_unlocked() const
|
||||
{
|
||||
return full_impementation();
|
||||
return full_implementation();
|
||||
}
|
||||
|
||||
//*************************************************************************
|
||||
@ -122,7 +122,7 @@ namespace etl
|
||||
{
|
||||
this->lock();
|
||||
|
||||
size_type result = full_impementation();
|
||||
size_type result = full_implementation();
|
||||
|
||||
this->unlock();
|
||||
|
||||
@ -135,7 +135,7 @@ namespace etl
|
||||
//*************************************************************************
|
||||
size_type size_unlocked() const
|
||||
{
|
||||
return size_impementation();
|
||||
return size_implementation();
|
||||
}
|
||||
|
||||
//*************************************************************************
|
||||
@ -145,7 +145,7 @@ namespace etl
|
||||
{
|
||||
this->lock();
|
||||
|
||||
size_type result = size_impementation();
|
||||
size_type result = size_implementation();
|
||||
|
||||
this->unlock();
|
||||
|
||||
@ -209,7 +209,7 @@ namespace etl
|
||||
//*************************************************************************
|
||||
/// How much free space available in the queue.
|
||||
//*************************************************************************
|
||||
size_type available_impementation() const
|
||||
size_type available_implementation() const
|
||||
{
|
||||
return Max_Size - current_size;
|
||||
}
|
||||
@ -217,7 +217,7 @@ namespace etl
|
||||
//*************************************************************************
|
||||
/// Is the queue empty?
|
||||
//*************************************************************************
|
||||
bool empty_impementation() const
|
||||
bool empty_implementation() const
|
||||
{
|
||||
return (current_size == 0);
|
||||
}
|
||||
@ -225,7 +225,7 @@ namespace etl
|
||||
//*************************************************************************
|
||||
/// Is the queue full?
|
||||
//*************************************************************************
|
||||
bool full_impementation() const
|
||||
bool full_implementation() const
|
||||
{
|
||||
return (current_size == Max_Size);;
|
||||
}
|
||||
@ -233,7 +233,7 @@ namespace etl
|
||||
//*************************************************************************
|
||||
/// How many items in the queue?
|
||||
//*************************************************************************
|
||||
size_type size_impementation() const
|
||||
size_type size_implementation() const
|
||||
{
|
||||
return current_size;
|
||||
}
|
||||
|
||||
@ -120,7 +120,7 @@ namespace etl
|
||||
|
||||
//***************************************************************************
|
||||
///\ingroup queue_mpmc
|
||||
///\brief This is the base for all queue_mpmc_mutexs that contain a particular type.
|
||||
///\brief This is the base for all queue_mpmc_mutex's that contain a particular type.
|
||||
///\details Normally a reference to this type will be taken from a derived queue_mpmc_mutex.
|
||||
///\code
|
||||
/// etl::queue_mpmc_mutex<int, 10> myQueue;
|
||||
|
||||
@ -475,7 +475,7 @@ namespace etl
|
||||
}
|
||||
|
||||
//*********************************************************************
|
||||
/// Inserts a value to the flast_multi.
|
||||
/// Inserts a value to the flat_multi.
|
||||
/// If asserts or exceptions are enabled, emits flat_map_full if the flat_map is already full.
|
||||
///\param position The position to insert at.
|
||||
///\param value The value to insert.
|
||||
|
||||
@ -252,7 +252,7 @@ namespace etl
|
||||
//***************************************************************************
|
||||
/// Round toward infinity.
|
||||
/// \param value Scaled integral.
|
||||
/// \return Ccaled, rounded integral.
|
||||
/// \return Scaled, rounded integral.
|
||||
//***************************************************************************
|
||||
template <const size_t SCALING, typename T>
|
||||
T round_infinity_scaled(T value)
|
||||
|
||||
@ -1902,7 +1902,7 @@ namespace etl
|
||||
}
|
||||
else
|
||||
{
|
||||
// Attatch node to right
|
||||
// Attach node to right
|
||||
attach_node(found->children[found->dir], node);
|
||||
|
||||
// Return newly added node
|
||||
@ -1935,7 +1935,7 @@ namespace etl
|
||||
}
|
||||
else
|
||||
{
|
||||
// Attatch node to current position
|
||||
// Attach node to current position
|
||||
attach_node(position, node);
|
||||
|
||||
// Return newly added node at current position
|
||||
|
||||
@ -100,7 +100,7 @@ namespace etl
|
||||
//***************************************************************************
|
||||
///\ingroup stack
|
||||
/// A fixed capacity stack written in the STL style.
|
||||
/// \warntopg This stack cannot be used for concurrent access from multiple threads.
|
||||
/// \warning This stack cannot be used for concurrent access from multiple threads.
|
||||
//***************************************************************************
|
||||
class stack_base
|
||||
{
|
||||
@ -598,7 +598,7 @@ namespace etl
|
||||
|
||||
private:
|
||||
|
||||
/// The unintitialised buffer of T used in the stack.
|
||||
/// The uninitialised buffer of T used in the stack.
|
||||
container_type buffer[SIZE];
|
||||
};
|
||||
}
|
||||
|
||||
@ -212,7 +212,7 @@ namespace etl
|
||||
|
||||
//***************************************************************************
|
||||
/// trim_whitespace_right
|
||||
/// Trim firght of whitespace
|
||||
/// Trim from right of whitespace
|
||||
//***************************************************************************
|
||||
template <typename TIString>
|
||||
void trim_whitespace_right(TIString& s)
|
||||
|
||||
@ -269,7 +269,7 @@ namespace etl
|
||||
|
||||
//*********************************************************************
|
||||
/// Does nothing.
|
||||
/// For compatilbilty with the STL vector API.
|
||||
/// For compatibility with the STL vector API.
|
||||
//*********************************************************************
|
||||
void reserve(size_t)
|
||||
{
|
||||
|
||||
@ -28,7 +28,7 @@ Added etl::functor_wrapper for converting a member function operator to a static
|
||||
Added constexpr support for etl::unaligned_type.
|
||||
Added etl::traits namespace containing traits mirroring many ETL macros.
|
||||
Traits are const for C++03, constexpr for C++11 and above.
|
||||
Removed some uses of GCC builtins due to compatibilty with constexpr.
|
||||
Removed some uses of GCC builtins due to compatibility with constexpr.
|
||||
etl::swap is now ETL_CONSTEXPR14.
|
||||
Changed ETL_ENDIANNESS_IS_CONSTEXPR to ETL_HAS_CONSTEXPR_ENDIANNESS.
|
||||
Changed ETL_CONSTEXPR17 to ETL_CONSTEXPR14 for reverse iterators
|
||||
@ -58,7 +58,7 @@ Fixed send_message function signatures.
|
||||
|
||||
===============================================================================
|
||||
20.24.0
|
||||
#503 Algorithm transform uses expensive post increment operator - Fixed for all occurences of iterator increment.
|
||||
#503 Algorithm transform uses expensive post increment operator - Fixed for all occurrences of iterator increment.
|
||||
#504 ETL_CONSTANT vs const in binary.h - Fixed.
|
||||
Many algorithms will leverage built-ins, if available. Dependant on compiler version.
|
||||
Added detection or selection of built-ins.
|
||||
@ -90,7 +90,7 @@ Updated C++ standard detection.
|
||||
20.22.0
|
||||
Split callback and message timer to atomic and locked interrupt versions.
|
||||
#480 Fixed: Double formatting with precision > 9
|
||||
#481 Fixed: etl::span const datacannot be created from non const c array of data.
|
||||
#481 Fixed: etl::span const data cannot be created from non const c array of data.
|
||||
#482 Fixed: Two or more etl::span/array_view of different types create ambiguous overloading set
|
||||
#483 Fixed: Added Green Hills compiler to minmax push and pop.
|
||||
#484 Fixed: etl::vector test_uninitialized_resize_excess not calling uninitialized_resize.
|
||||
@ -106,7 +106,7 @@ etl::deque::resize throws etl::deque_full instead of etl::deque_out_of_bounds, i
|
||||
===============================================================================
|
||||
20.20.0
|
||||
Updated container 'insert' and 'erase' to C++11 style const_iterator parameters. (#463)
|
||||
Fixed container template function overload abiguity. (#466)
|
||||
Fixed container template function overload ambiguity. (#466)
|
||||
Harmonize copy ctor and assignment for etl::delegate. (#465)
|
||||
Added constexpr support for etl::enum_type. (#462)
|
||||
Added 'make' functions to construct containers.
|
||||
@ -140,7 +140,7 @@ Added .clang-format rules.
|
||||
Added etl::pool_ext and etl::generic_pool_ext.
|
||||
Added etl::multi_span.
|
||||
Added CMSIS RTOS2 mutex variant.
|
||||
Added 'unchecked' read and write membvers functions to byte_stream_reader and byte_stream_writer.
|
||||
Added 'unchecked' read and write members functions to byte_stream_reader and byte_stream_writer.
|
||||
Fixed byte_stream_reader to be able to use const buffers.
|
||||
Removed compiler warning messages.
|
||||
Fixed missing 'public' access for message_router_registry iterator.
|
||||
@ -202,7 +202,7 @@ Changed std::forward to etl::forward in etl::variant (variadic)
|
||||
|
||||
===============================================================================
|
||||
20.14.0
|
||||
Added a vaiadic version of etl::variant. Usable for C++11 and up.
|
||||
Added a variadic version of etl::variant. Usable for C++11 and up.
|
||||
Added etl::overload pattern class. Groups lambdas into a functor class.
|
||||
Refactored type_traits.h. Uses STL, compiler built-ins or user defined specialisations, dependent on settings.
|
||||
Added etl::conditional_t to type_traits.h
|
||||
@ -243,7 +243,7 @@ Fixed ambiguous function call in etl::mem_cast for clang.
|
||||
|
||||
===============================================================================
|
||||
20.11.0
|
||||
Added etl::mem_cast, etl::mem_cast_ptr & etl::mem_cast_types for reinterpretion of memory blocks.
|
||||
Added etl::mem_cast, etl::mem_cast_ptr & etl::mem_cast_types for reinterpretation of memory blocks.
|
||||
State tables in etl::debounce are now constexpr in C++11 or above.
|
||||
|
||||
===============================================================================
|
||||
@ -299,7 +299,7 @@ Added maths algorithms and functors.
|
||||
etl::gamma_encode
|
||||
etl:;gamma_decode
|
||||
etl::histogram
|
||||
etl::sparce_histogram
|
||||
etl::sparse_histogram
|
||||
etl::mean
|
||||
etl::invert
|
||||
etl::threshold
|
||||
@ -386,7 +386,7 @@ Fixed indexing error in find_next() for etl::bitset.
|
||||
|
||||
===============================================================================
|
||||
20.2.2
|
||||
Added non-const get_message() member funtions in shared message framework.
|
||||
Added non-const get_message() member functions in shared message framework.
|
||||
|
||||
===============================================================================
|
||||
20.2.1
|
||||
@ -413,7 +413,7 @@ Added move constructor and move assignment operator to etl::shared_message.
|
||||
===============================================================================
|
||||
19.5.2
|
||||
Fixed rollover error for etl::queue_spsc_atomic
|
||||
Added 'required_alignment' parameter to 'allocate' for etl::imemeory_block_allocator.
|
||||
Added 'required_alignment' parameter to 'allocate' for etl::imemory_block_allocator.
|
||||
Updated QueuedMessageRouter example.
|
||||
|
||||
===============================================================================
|
||||
@ -426,7 +426,7 @@ Added shared messages to the messaging framework + supporting allocator classes.
|
||||
Some refactoring of the messaging framework internals.
|
||||
Added example application for shared messages.
|
||||
Added a lockable queue with locks implemented as pure virtuals.
|
||||
Refeactored the other queues.
|
||||
Refactored the other queues.
|
||||
Fixed missing virtual destructor for C++11 observer.
|
||||
Added etl::successor class for consistant 'chain of responsibilty' pattern generation.
|
||||
Added missing constructors to unique_ptr.
|
||||
@ -474,7 +474,7 @@ Make etl::span compliant with STL API by adding missing overloads for span::firs
|
||||
|
||||
===============================================================================
|
||||
19.3.3
|
||||
Added check for existance of <new> in platform.h
|
||||
Added check for existence of <new> in platform.h
|
||||
Added placement_new.h which selects between <new> and ETL definitions.
|
||||
|
||||
===============================================================================
|
||||
@ -548,7 +548,7 @@ Expanded the use of constexpr in etl::flags
|
||||
|
||||
===============================================================================
|
||||
18.19.1
|
||||
Added ETL_CONSTEXPR for state_chart, transision and state constructors.
|
||||
Added ETL_CONSTEXPR for state_chart, transition and state constructors.
|
||||
Eliminate ARM compiler v5 warnings for state_chart.
|
||||
Fixed return type error for atomic GCC.
|
||||
|
||||
@ -908,8 +908,8 @@ Added partial compile time versions of binary_fill and has_zero_byte.
|
||||
===============================================================================
|
||||
17.0.0
|
||||
Recoded binary_fill, has_zero_byte and has_byte_n as runtime functions to fix
|
||||
compiler compatibilty issues. All functions may be constexpr if the compiler supports it.
|
||||
Added tests for binary constextr functions.
|
||||
compiler compatibility issues. All functions may be constexpr if the compiler supports it.
|
||||
Added tests for binary constexpr functions.
|
||||
|
||||
Added option to define ETL_NO_64BIT_TYPES macro if the compiler does not support 64bit types.
|
||||
Conditional compilation macros added to affected files.
|
||||
@ -1161,7 +1161,7 @@ Fixed unordered_map iterator operator* return type
|
||||
|
||||
===============================================================================
|
||||
14.29.3
|
||||
Minor updatess for etl::delegate
|
||||
Minor updates for etl::delegate
|
||||
|
||||
===============================================================================
|
||||
14.29.2
|
||||
@ -1313,13 +1313,13 @@ Finalised 'to string'.
|
||||
|
||||
===============================================================================
|
||||
14.18.1
|
||||
Changed etl::format_sepc template to etl::basic_firmat_spec.
|
||||
Changed etl::format_spec template to etl::basic_format_spec.
|
||||
Created individual format_spec typedefs for each string type.
|
||||
|
||||
===============================================================================
|
||||
14.18.0
|
||||
Added etl::to_string, etl::to_wstring, etl::to_u16string and etl::to_u32string
|
||||
plus formating support for integrals.
|
||||
plus formatting support for integrals.
|
||||
|
||||
===============================================================================
|
||||
14.17.0
|
||||
@ -1568,7 +1568,7 @@ Moved non-template code in pvoidvector to cpp file.
|
||||
|
||||
===============================================================================
|
||||
11.12.1
|
||||
Made atomic load const for non STL vesions
|
||||
Made atomic load const for non STL versions
|
||||
|
||||
===============================================================================
|
||||
11.12.0
|
||||
@ -1577,11 +1577,11 @@ Removed non-conforming std::nullptr
|
||||
|
||||
===============================================================================
|
||||
11.11.1
|
||||
Compatibilty changes for Segger IDE, GCC & STLPort
|
||||
Compatibility changes for Segger IDE, GCC & STLPort
|
||||
|
||||
===============================================================================
|
||||
11.11.0
|
||||
Compatibilty changes for Segger IDE, GCC & STLPort
|
||||
Compatibility changes for Segger IDE, GCC & STLPort
|
||||
|
||||
===============================================================================
|
||||
11.10.0
|
||||
|
||||
@ -84,7 +84,7 @@ namespace
|
||||
SUITE(test_correlation)
|
||||
{
|
||||
//*************************************************************************
|
||||
TEST(test_char_correlation_default_constuctor)
|
||||
TEST(test_char_correlation_default_constructor)
|
||||
{
|
||||
etl::correlation<etl::correlation_type::Population, char, int32_t> correlation;
|
||||
|
||||
@ -94,7 +94,7 @@ namespace
|
||||
}
|
||||
|
||||
//*************************************************************************
|
||||
TEST(test_float_correlation_default_constuctor)
|
||||
TEST(test_float_correlation_default_constructor)
|
||||
{
|
||||
etl::correlation<etl::correlation_type::Population, float> correlation;
|
||||
|
||||
@ -104,7 +104,7 @@ namespace
|
||||
}
|
||||
|
||||
//*************************************************************************
|
||||
TEST(test_double_correlation_default_constuctor)
|
||||
TEST(test_double_correlation_default_constructor)
|
||||
{
|
||||
etl::correlation<etl::correlation_type::Population, double> correlation;
|
||||
|
||||
@ -114,7 +114,7 @@ namespace
|
||||
}
|
||||
|
||||
//*************************************************************************
|
||||
TEST(test_char_correlation_constuctor_population)
|
||||
TEST(test_char_correlation_constructor_population)
|
||||
{
|
||||
double correlation_result;
|
||||
double covariance_result;
|
||||
@ -142,7 +142,7 @@ namespace
|
||||
}
|
||||
|
||||
//*************************************************************************
|
||||
TEST(test_char_correlation_constuctor_sample)
|
||||
TEST(test_char_correlation_constructor_sample)
|
||||
{
|
||||
double correlation_result;
|
||||
double covariance_result;
|
||||
@ -170,7 +170,7 @@ namespace
|
||||
}
|
||||
|
||||
//*************************************************************************
|
||||
TEST(test_float_correlation_constuctor_population)
|
||||
TEST(test_float_correlation_constructor_population)
|
||||
{
|
||||
double correlation_result;
|
||||
double covariance_result;
|
||||
@ -198,7 +198,7 @@ namespace
|
||||
}
|
||||
|
||||
//*************************************************************************
|
||||
TEST(test_float_correlation_constuctor_sample)
|
||||
TEST(test_float_correlation_constructor_sample)
|
||||
{
|
||||
double correlation_result;
|
||||
double covariance_result;
|
||||
@ -226,7 +226,7 @@ namespace
|
||||
}
|
||||
|
||||
//*************************************************************************
|
||||
TEST(test_double_correlation_constuctor_population)
|
||||
TEST(test_double_correlation_constructor_population)
|
||||
{
|
||||
double correlation_result;
|
||||
double covariance_result;
|
||||
@ -254,7 +254,7 @@ namespace
|
||||
}
|
||||
|
||||
//*************************************************************************
|
||||
TEST(test_double_correlation_constuctor_sample)
|
||||
TEST(test_double_correlation_constructor_sample)
|
||||
{
|
||||
double correlation_result;
|
||||
double covariance_result;
|
||||
|
||||
@ -84,7 +84,7 @@ namespace
|
||||
SUITE(test_covariance)
|
||||
{
|
||||
//*************************************************************************
|
||||
TEST(test_char_covariance_default_constuctor)
|
||||
TEST(test_char_covariance_default_constructor)
|
||||
{
|
||||
etl::covariance<etl::covariance_type::Population, char, int32_t> covariance;
|
||||
|
||||
@ -94,7 +94,7 @@ namespace
|
||||
}
|
||||
|
||||
//*************************************************************************
|
||||
TEST(test_float_covariance_default_constuctor)
|
||||
TEST(test_float_covariance_default_constructor)
|
||||
{
|
||||
etl::covariance<etl::covariance_type::Population, float> covariance;
|
||||
|
||||
@ -104,7 +104,7 @@ namespace
|
||||
}
|
||||
|
||||
//*************************************************************************
|
||||
TEST(test_double_covariance_default_constuctor)
|
||||
TEST(test_double_covariance_default_constructor)
|
||||
{
|
||||
etl::covariance<etl::covariance_type::Population, double> covariance;
|
||||
|
||||
@ -114,7 +114,7 @@ namespace
|
||||
}
|
||||
|
||||
//*************************************************************************
|
||||
TEST(test_char_covariance_constuctor_population)
|
||||
TEST(test_char_covariance_constructor_population)
|
||||
{
|
||||
double covariance_result;
|
||||
|
||||
@ -135,7 +135,7 @@ namespace
|
||||
}
|
||||
|
||||
//*************************************************************************
|
||||
TEST(test_char_covariance_constuctor_sample)
|
||||
TEST(test_char_covariance_constructor_sample)
|
||||
{
|
||||
double covariance_result;
|
||||
|
||||
@ -156,7 +156,7 @@ namespace
|
||||
}
|
||||
|
||||
//*************************************************************************
|
||||
TEST(test_float_covariance_constuctor_population)
|
||||
TEST(test_float_covariance_constructor_population)
|
||||
{
|
||||
double covariance_result;
|
||||
|
||||
@ -177,7 +177,7 @@ namespace
|
||||
}
|
||||
|
||||
//*************************************************************************
|
||||
TEST(test_float_covariance_constuctor_sample)
|
||||
TEST(test_float_covariance_constructor_sample)
|
||||
{
|
||||
double covariance_result;
|
||||
|
||||
@ -198,7 +198,7 @@ namespace
|
||||
}
|
||||
|
||||
//*************************************************************************
|
||||
TEST(test_double_covariance_constuctor_population)
|
||||
TEST(test_double_covariance_constructor_population)
|
||||
{
|
||||
double covariance_result;
|
||||
|
||||
@ -219,7 +219,7 @@ namespace
|
||||
}
|
||||
|
||||
//*************************************************************************
|
||||
TEST(test_double_covariance_constuctor_sample)
|
||||
TEST(test_double_covariance_constructor_sample)
|
||||
{
|
||||
double covariance_result;
|
||||
|
||||
|
||||
@ -341,7 +341,7 @@ namespace
|
||||
}
|
||||
|
||||
//*************************************************************************
|
||||
TEST(test_fibbonacci)
|
||||
TEST(test_fibonacci)
|
||||
{
|
||||
CHECK_EQUAL(0U, (size_t)etl::fibonacci<0>::value);
|
||||
CHECK_EQUAL(1U, (size_t)etl::fibonacci<1>::value);
|
||||
|
||||
@ -54,7 +54,7 @@ namespace
|
||||
SUITE(test_mean)
|
||||
{
|
||||
//*************************************************************************
|
||||
TEST(test_char_mean_default_constuctor)
|
||||
TEST(test_char_mean_default_constructor)
|
||||
{
|
||||
etl::mean<char, int32_t> mean;
|
||||
|
||||
@ -64,7 +64,7 @@ namespace
|
||||
}
|
||||
|
||||
//*************************************************************************
|
||||
TEST(test_float_mean_default_constuctor)
|
||||
TEST(test_float_mean_default_constructor)
|
||||
{
|
||||
etl::mean<float> mean;
|
||||
|
||||
@ -74,7 +74,7 @@ namespace
|
||||
}
|
||||
|
||||
//*************************************************************************
|
||||
TEST(test_double_mean_default_constuctor)
|
||||
TEST(test_double_mean_default_constructor)
|
||||
{
|
||||
etl::mean<double> mean;
|
||||
|
||||
@ -84,7 +84,7 @@ namespace
|
||||
}
|
||||
|
||||
//*************************************************************************
|
||||
TEST(test_char_mean_constuctor)
|
||||
TEST(test_char_mean_constructor)
|
||||
{
|
||||
double mean_result;
|
||||
|
||||
@ -94,7 +94,7 @@ namespace
|
||||
}
|
||||
|
||||
//*************************************************************************
|
||||
TEST(test_float_mean_constuctor)
|
||||
TEST(test_float_mean_constructor)
|
||||
{
|
||||
double mean_result;
|
||||
|
||||
@ -104,7 +104,7 @@ namespace
|
||||
}
|
||||
|
||||
//*************************************************************************
|
||||
TEST(test_double_mean_constuctor)
|
||||
TEST(test_double_mean_constructor)
|
||||
{
|
||||
double mean_result;
|
||||
|
||||
|
||||
@ -286,7 +286,7 @@ namespace
|
||||
}
|
||||
|
||||
//*************************************************************************
|
||||
TEST(message_packet_copy_consructor)
|
||||
TEST(message_packet_copy_constructor)
|
||||
{
|
||||
Message1 message1(1);
|
||||
Message2 message2(2.2);
|
||||
@ -309,7 +309,7 @@ namespace
|
||||
|
||||
#if !defined(ETL_MESSAGE_PACKET_FORCE_CPP03_IMPLEMENTATION)
|
||||
//*************************************************************************
|
||||
TEST(message_packet_move_consructor)
|
||||
TEST(message_packet_move_constructor)
|
||||
{
|
||||
Message1 message1(1);
|
||||
Message2 message2(2.2);
|
||||
|
||||
@ -264,7 +264,7 @@ namespace
|
||||
}
|
||||
|
||||
//*************************************************************************
|
||||
TEST(test_registery_contains)
|
||||
TEST(test_registry_contains)
|
||||
{
|
||||
etl::imessage_router* routers[] = { &router1, &router2, &router3 };
|
||||
etl::message_router_registry<Registry_Size> registry(std::begin(routers), std::end(routers));
|
||||
|
||||
@ -201,7 +201,7 @@ namespace
|
||||
}
|
||||
|
||||
//*************************************************************************
|
||||
TEST(test_random_lfsr_sequence)
|
||||
TEST(test_random_lsfr_sequence)
|
||||
{
|
||||
std::vector<uint32_t> out1(10000);
|
||||
etl::random_lsfr r;
|
||||
@ -237,7 +237,7 @@ namespace
|
||||
}
|
||||
|
||||
//*************************************************************************
|
||||
TEST(test_random_lfsr_range)
|
||||
TEST(test_random_lsfr_range)
|
||||
{
|
||||
etl::random_lsfr r;
|
||||
|
||||
|
||||
@ -590,7 +590,7 @@ namespace
|
||||
}
|
||||
|
||||
//*************************************************************************
|
||||
TEST_FIXTURE(SetupFixture, test_erase_key_using_transparent_comparitor)
|
||||
TEST_FIXTURE(SetupFixture, test_erase_key_using_transparent_comparator)
|
||||
{
|
||||
using CMap = std::map<int, NDC>;
|
||||
using EMap = etl::reference_flat_map<int, NDC, SIZE, etl::less<>>;
|
||||
@ -795,7 +795,7 @@ namespace
|
||||
}
|
||||
|
||||
//*************************************************************************
|
||||
TEST_FIXTURE(SetupFixture, test_find_using_transparent_comparitor)
|
||||
TEST_FIXTURE(SetupFixture, test_find_using_transparent_comparator)
|
||||
{
|
||||
using EMap = etl::reference_flat_map<int, NDC, SIZE, etl::less<>>;
|
||||
EMap data(initial_data.begin(), initial_data.end());
|
||||
@ -817,7 +817,7 @@ namespace
|
||||
}
|
||||
|
||||
//*************************************************************************
|
||||
TEST_FIXTURE(SetupFixture, test_find_not_present_using_transparent_comparitor)
|
||||
TEST_FIXTURE(SetupFixture, test_find_not_present_using_transparent_comparator)
|
||||
{
|
||||
using EMap = etl::reference_flat_map<int, NDC, SIZE, etl::less<>>;
|
||||
EMap data(initial_data.begin(), initial_data.end());
|
||||
@ -839,7 +839,7 @@ namespace
|
||||
}
|
||||
|
||||
//*************************************************************************
|
||||
TEST_FIXTURE(SetupFixture, test_find_const_using_transparent_comparitor)
|
||||
TEST_FIXTURE(SetupFixture, test_find_const_using_transparent_comparator)
|
||||
{
|
||||
using EMap = etl::reference_flat_map<int, NDC, SIZE, etl::less<>>;
|
||||
const EMap data(initial_data.begin(), initial_data.end());
|
||||
@ -861,7 +861,7 @@ namespace
|
||||
}
|
||||
|
||||
//*************************************************************************
|
||||
TEST_FIXTURE(SetupFixture, test_find_const_not_present_using_transparent_comparitor)
|
||||
TEST_FIXTURE(SetupFixture, test_find_const_not_present_using_transparent_comparator)
|
||||
{
|
||||
using EMap = etl::reference_flat_map<int, NDC, SIZE, etl::less<>>;
|
||||
const EMap data(initial_data.begin(), initial_data.end());
|
||||
|
||||
@ -380,7 +380,7 @@ namespace
|
||||
}
|
||||
|
||||
//*************************************************************************
|
||||
TEST_FIXTURE(SetupFixture, test_erase_key_using_transparent_comparitor)
|
||||
TEST_FIXTURE(SetupFixture, test_erase_key_using_transparent_comparator)
|
||||
{
|
||||
using CMap = std::multimap<int, NDC>;
|
||||
using EMap = etl::reference_flat_multimap<int, NDC, SIZE, etl::less<>>;
|
||||
@ -588,7 +588,7 @@ namespace
|
||||
}
|
||||
|
||||
//*************************************************************************
|
||||
TEST_FIXTURE(SetupFixture, test_find_using_transparent_comparitor)
|
||||
TEST_FIXTURE(SetupFixture, test_find_using_transparent_comparator)
|
||||
{
|
||||
using EMap = etl::reference_flat_multimap<int, NDC, SIZE, etl::less<>>;
|
||||
EMap data(initial_data.begin(), initial_data.end());
|
||||
@ -613,7 +613,7 @@ namespace
|
||||
}
|
||||
|
||||
//*************************************************************************
|
||||
TEST_FIXTURE(SetupFixture, test_find_not_present_using_transparent_comparitor)
|
||||
TEST_FIXTURE(SetupFixture, test_find_not_present_using_transparent_comparator)
|
||||
{
|
||||
using EMap = etl::reference_flat_multimap<int, NDC, SIZE, etl::less<>>;
|
||||
EMap data(initial_data.begin(), initial_data.end());
|
||||
@ -638,7 +638,7 @@ namespace
|
||||
}
|
||||
|
||||
//*************************************************************************
|
||||
TEST_FIXTURE(SetupFixture, test_find_const_using_transparent_comparitor)
|
||||
TEST_FIXTURE(SetupFixture, test_find_const_using_transparent_comparator)
|
||||
{
|
||||
using EMap = etl::reference_flat_multimap<int, NDC, SIZE, etl::less<>>;
|
||||
const EMap data(initial_data.begin(), initial_data.end());
|
||||
@ -663,7 +663,7 @@ namespace
|
||||
}
|
||||
|
||||
//*************************************************************************
|
||||
TEST_FIXTURE(SetupFixture, test_find_const_not_present_using_transparent_comparitor)
|
||||
TEST_FIXTURE(SetupFixture, test_find_const_not_present_using_transparent_comparator)
|
||||
{
|
||||
using EMap = etl::reference_flat_multimap<int, NDC, SIZE, etl::less<>>;
|
||||
const EMap data(initial_data.begin(), initial_data.end());
|
||||
@ -688,7 +688,7 @@ namespace
|
||||
}
|
||||
|
||||
//*************************************************************************
|
||||
TEST_FIXTURE(SetupFixture, test_lower_bound_using_transparent_comparitor)
|
||||
TEST_FIXTURE(SetupFixture, test_lower_bound_using_transparent_comparator)
|
||||
{
|
||||
using CMap = std::multimap<int, NDC>;
|
||||
using EMap = etl::reference_flat_multimap<int, NDC, SIZE, etl::less<>>;
|
||||
@ -715,7 +715,7 @@ namespace
|
||||
}
|
||||
|
||||
//*************************************************************************
|
||||
TEST_FIXTURE(SetupFixture, test_upper_bound_using_transparent_comparitor)
|
||||
TEST_FIXTURE(SetupFixture, test_upper_bound_using_transparent_comparator)
|
||||
{
|
||||
using CMap = std::multimap<int, NDC>;
|
||||
using EMap = etl::reference_flat_multimap<int, NDC, SIZE, etl::less<>>;
|
||||
@ -743,7 +743,7 @@ namespace
|
||||
}
|
||||
|
||||
//*************************************************************************
|
||||
TEST_FIXTURE(SetupFixture, test_equal_range_using_transparent_comparitor)
|
||||
TEST_FIXTURE(SetupFixture, test_equal_range_using_transparent_comparator)
|
||||
{
|
||||
using CMap = std::multimap<int, NDC>;
|
||||
using EMap = etl::reference_flat_multimap<int, NDC, SIZE, etl::less<>>;
|
||||
@ -775,7 +775,7 @@ namespace
|
||||
}
|
||||
|
||||
//*************************************************************************
|
||||
TEST_FIXTURE(SetupFixture, test_equal_range_not_present_using_transparent_comparitor)
|
||||
TEST_FIXTURE(SetupFixture, test_equal_range_not_present_using_transparent_comparator)
|
||||
{
|
||||
using EMap = etl::reference_flat_multimap<int, NDC, SIZE, etl::less<>>;
|
||||
EMap data(initial_data.begin(), initial_data.end());
|
||||
@ -852,7 +852,7 @@ namespace
|
||||
}
|
||||
|
||||
//*************************************************************************
|
||||
TEST_FIXTURE(SetupFixture, test_multi_using_transparent_comparitor)
|
||||
TEST_FIXTURE(SetupFixture, test_multi_using_transparent_comparator)
|
||||
{
|
||||
using CMap = std::multimap<int, NDC>;
|
||||
using EMap = etl::reference_flat_multimap<int, NDC, SIZE, etl::less<>>;
|
||||
@ -903,7 +903,7 @@ namespace
|
||||
}
|
||||
|
||||
//*************************************************************************
|
||||
TEST_FIXTURE(SetupFixture, test_count_using_transparent_comparitor)
|
||||
TEST_FIXTURE(SetupFixture, test_count_using_transparent_comparator)
|
||||
{
|
||||
using CMap = std::multimap<int, NDC>;
|
||||
using EMap = etl::reference_flat_multimap<int, NDC, SIZE, etl::less<>>;
|
||||
|
||||
@ -90,7 +90,7 @@ namespace
|
||||
using ResultM = etl::result<ValueM, ErrorM>;
|
||||
}
|
||||
|
||||
// Definitions for when the STL and compiler built-ins are not avalable.
|
||||
// Definitions for when the STL and compiler built-ins are not available.
|
||||
#if ETL_NOT_USING_STL && !defined(ETL_USE_TYPE_TRAITS_BUILTINS)
|
||||
|
||||
using etl::is_copy_constructible;
|
||||
|
||||
@ -34,7 +34,7 @@ SOFTWARE.
|
||||
|
||||
namespace
|
||||
{
|
||||
SUITE(test_smallst)
|
||||
SUITE(test_smallest)
|
||||
{
|
||||
//*************************************************************************
|
||||
TEST(test_pod)
|
||||
|
||||
@ -54,7 +54,7 @@ namespace
|
||||
SUITE(test_standard_deviation)
|
||||
{
|
||||
//*************************************************************************
|
||||
TEST(test_char_standard_deviation_default_constuctor)
|
||||
TEST(test_char_standard_deviation_default_constructor)
|
||||
{
|
||||
etl::standard_deviation<etl::standard_deviation_type::Population, char, int32_t> standard_deviation;
|
||||
|
||||
@ -64,7 +64,7 @@ namespace
|
||||
}
|
||||
|
||||
//*************************************************************************
|
||||
TEST(test_float_standard_deviation_default_constuctor)
|
||||
TEST(test_float_standard_deviation_default_constructor)
|
||||
{
|
||||
etl::standard_deviation<etl::standard_deviation_type::Population, float> standard_deviation;
|
||||
|
||||
@ -74,7 +74,7 @@ namespace
|
||||
}
|
||||
|
||||
//*************************************************************************
|
||||
TEST(test_double_standard_deviation_default_constuctor)
|
||||
TEST(test_double_standard_deviation_default_constructor)
|
||||
{
|
||||
etl::standard_deviation<etl::standard_deviation_type::Population, double> standard_deviation;
|
||||
|
||||
@ -84,7 +84,7 @@ namespace
|
||||
}
|
||||
|
||||
//*************************************************************************
|
||||
TEST(test_char_standard_deviation_constuctor_population)
|
||||
TEST(test_char_standard_deviation_constructor_population)
|
||||
{
|
||||
double standard_deviation_result;
|
||||
double variance_result;
|
||||
@ -97,7 +97,7 @@ namespace
|
||||
}
|
||||
|
||||
//*************************************************************************
|
||||
TEST(test_char_standard_deviation_constuctor_sample)
|
||||
TEST(test_char_standard_deviation_constructor_sample)
|
||||
{
|
||||
double standard_deviation_result;
|
||||
double variance_result;
|
||||
@ -110,7 +110,7 @@ namespace
|
||||
}
|
||||
|
||||
//*************************************************************************
|
||||
TEST(test_float_standard_deviation_constuctor_population)
|
||||
TEST(test_float_standard_deviation_constructor_population)
|
||||
{
|
||||
double standard_deviation_result;
|
||||
double variance_result;
|
||||
@ -123,7 +123,7 @@ namespace
|
||||
}
|
||||
|
||||
//*************************************************************************
|
||||
TEST(test_float_standard_deviation_constuctor_sample)
|
||||
TEST(test_float_standard_deviation_constructor_sample)
|
||||
{
|
||||
double standard_deviation_result;
|
||||
double variance_result;
|
||||
@ -136,7 +136,7 @@ namespace
|
||||
}
|
||||
|
||||
//*************************************************************************
|
||||
TEST(test_double_standard_deviation_constuctor_population)
|
||||
TEST(test_double_standard_deviation_constructor_population)
|
||||
{
|
||||
double standard_deviation_result;
|
||||
double variance_result;
|
||||
@ -149,7 +149,7 @@ namespace
|
||||
}
|
||||
|
||||
//*************************************************************************
|
||||
TEST(test_double_standard_deviation_constuctor_sample)
|
||||
TEST(test_double_standard_deviation_constructor_sample)
|
||||
{
|
||||
double standard_deviation_result;
|
||||
double variance_result;
|
||||
|
||||
@ -3348,7 +3348,7 @@ namespace
|
||||
}
|
||||
|
||||
//*************************************************************************
|
||||
TEST_FIXTURE(SetupFixture, test_compare_positon_length_string)
|
||||
TEST_FIXTURE(SetupFixture, test_compare_position_length_string)
|
||||
{
|
||||
Compare_Text compare_text(STR("xxxABCDEFyyy"));
|
||||
Text text(STR("xxxABCDEFyyy"));
|
||||
@ -3383,7 +3383,7 @@ namespace
|
||||
}
|
||||
|
||||
//*************************************************************************
|
||||
TEST_FIXTURE(SetupFixture, test_compare_positon_length_string_subposition_sublength)
|
||||
TEST_FIXTURE(SetupFixture, test_compare_position_length_string_subposition_sublength)
|
||||
{
|
||||
Compare_Text compare_text(STR("xxxABCDEFyyy"));
|
||||
Text text(STR("xxxABCDEFyyy"));
|
||||
@ -3453,7 +3453,7 @@ namespace
|
||||
}
|
||||
|
||||
//*************************************************************************
|
||||
TEST_FIXTURE(SetupFixture, test_compare_positon_length_c_string)
|
||||
TEST_FIXTURE(SetupFixture, test_compare_position_length_c_string)
|
||||
{
|
||||
Compare_Text compare_text(STR("xxxABCDEFyyy"));
|
||||
Text text(STR("xxxABCDEFyyy"));
|
||||
@ -3488,7 +3488,7 @@ namespace
|
||||
}
|
||||
|
||||
//*************************************************************************
|
||||
TEST_FIXTURE(SetupFixture, test_compare_positon_length_c_string_n)
|
||||
TEST_FIXTURE(SetupFixture, test_compare_position_length_c_string_n)
|
||||
{
|
||||
Compare_Text compare_text(STR("xxxABCDEFyyy"));
|
||||
Text text(STR("xxxABCDEFyyy"));
|
||||
|
||||
@ -3629,7 +3629,7 @@ namespace
|
||||
}
|
||||
|
||||
//*************************************************************************
|
||||
TEST_FIXTURE(SetupFixture, test_compare_positon_length_string)
|
||||
TEST_FIXTURE(SetupFixture, test_compare_position_length_string)
|
||||
{
|
||||
Compare_Text compare_text(STR("xxxABCDEFyyy"));
|
||||
|
||||
@ -3666,7 +3666,7 @@ namespace
|
||||
}
|
||||
|
||||
//*************************************************************************
|
||||
TEST_FIXTURE(SetupFixture, test_compare_positon_length_string_subposition_sublength)
|
||||
TEST_FIXTURE(SetupFixture, test_compare_position_length_string_subposition_sublength)
|
||||
{
|
||||
Compare_Text compare_text(STR("xxxABCDEFyyy"));
|
||||
|
||||
@ -3740,7 +3740,7 @@ namespace
|
||||
}
|
||||
|
||||
//*************************************************************************
|
||||
TEST_FIXTURE(SetupFixture, test_compare_positon_length_c_string)
|
||||
TEST_FIXTURE(SetupFixture, test_compare_position_length_c_string)
|
||||
{
|
||||
Compare_Text compare_text(STR("xxxABCDEFyyy"));
|
||||
|
||||
@ -3777,7 +3777,7 @@ namespace
|
||||
}
|
||||
|
||||
//*************************************************************************
|
||||
TEST_FIXTURE(SetupFixture, test_compare_positon_length_c_string_n)
|
||||
TEST_FIXTURE(SetupFixture, test_compare_position_length_c_string_n)
|
||||
{
|
||||
Compare_Text compare_text(STR("xxxABCDEFyyy"));
|
||||
|
||||
|
||||
@ -3364,7 +3364,7 @@ namespace
|
||||
}
|
||||
|
||||
//*************************************************************************
|
||||
TEST_FIXTURE(SetupFixture, test_compare_positon_length_string)
|
||||
TEST_FIXTURE(SetupFixture, test_compare_position_length_string)
|
||||
{
|
||||
Compare_Text compare_text(STR("xxxABCDEFyyy"));
|
||||
Text text(STR("xxxABCDEFyyy"));
|
||||
@ -3399,7 +3399,7 @@ namespace
|
||||
}
|
||||
|
||||
//*************************************************************************
|
||||
TEST_FIXTURE(SetupFixture, test_compare_positon_length_string_subposition_sublength)
|
||||
TEST_FIXTURE(SetupFixture, test_compare_position_length_string_subposition_sublength)
|
||||
{
|
||||
Compare_Text compare_text(STR("xxxABCDEFyyy"));
|
||||
Text text(STR("xxxABCDEFyyy"));
|
||||
@ -3469,7 +3469,7 @@ namespace
|
||||
}
|
||||
|
||||
//*************************************************************************
|
||||
TEST_FIXTURE(SetupFixture, test_compare_positon_length_c_string)
|
||||
TEST_FIXTURE(SetupFixture, test_compare_position_length_c_string)
|
||||
{
|
||||
Compare_Text compare_text(STR("xxxABCDEFyyy"));
|
||||
Text text(STR("xxxABCDEFyyy"));
|
||||
@ -3504,7 +3504,7 @@ namespace
|
||||
}
|
||||
|
||||
//*************************************************************************
|
||||
TEST_FIXTURE(SetupFixture, test_compare_positon_length_c_string_n)
|
||||
TEST_FIXTURE(SetupFixture, test_compare_position_length_c_string_n)
|
||||
{
|
||||
Compare_Text compare_text(STR("xxxABCDEFyyy"));
|
||||
Text text(STR("xxxABCDEFyyy"));
|
||||
|
||||
@ -3662,7 +3662,7 @@ namespace
|
||||
}
|
||||
|
||||
//*************************************************************************
|
||||
TEST_FIXTURE(SetupFixture, test_compare_positon_length_string)
|
||||
TEST_FIXTURE(SetupFixture, test_compare_position_length_string)
|
||||
{
|
||||
Compare_Text compare_text(STR("xxxABCDEFyyy"));
|
||||
|
||||
@ -3699,7 +3699,7 @@ namespace
|
||||
}
|
||||
|
||||
//*************************************************************************
|
||||
TEST_FIXTURE(SetupFixture, test_compare_positon_length_string_subposition_sublength)
|
||||
TEST_FIXTURE(SetupFixture, test_compare_position_length_string_subposition_sublength)
|
||||
{
|
||||
Compare_Text compare_text(STR("xxxABCDEFyyy"));
|
||||
|
||||
@ -3773,7 +3773,7 @@ namespace
|
||||
}
|
||||
|
||||
//*************************************************************************
|
||||
TEST_FIXTURE(SetupFixture, test_compare_positon_length_c_string)
|
||||
TEST_FIXTURE(SetupFixture, test_compare_position_length_c_string)
|
||||
{
|
||||
Compare_Text compare_text(STR("xxxABCDEFyyy"));
|
||||
|
||||
@ -3810,7 +3810,7 @@ namespace
|
||||
}
|
||||
|
||||
//*************************************************************************
|
||||
TEST_FIXTURE(SetupFixture, test_compare_positon_length_c_string_n)
|
||||
TEST_FIXTURE(SetupFixture, test_compare_position_length_c_string_n)
|
||||
{
|
||||
Compare_Text compare_text(STR("xxxABCDEFyyy"));
|
||||
|
||||
|
||||
@ -3364,7 +3364,7 @@ namespace
|
||||
}
|
||||
|
||||
//*************************************************************************
|
||||
TEST_FIXTURE(SetupFixture, test_compare_positon_length_string)
|
||||
TEST_FIXTURE(SetupFixture, test_compare_position_length_string)
|
||||
{
|
||||
Compare_Text compare_text(STR("xxxABCDEFyyy"));
|
||||
Text text(STR("xxxABCDEFyyy"));
|
||||
@ -3399,7 +3399,7 @@ namespace
|
||||
}
|
||||
|
||||
//*************************************************************************
|
||||
TEST_FIXTURE(SetupFixture, test_compare_positon_length_string_subposition_sublength)
|
||||
TEST_FIXTURE(SetupFixture, test_compare_position_length_string_subposition_sublength)
|
||||
{
|
||||
Compare_Text compare_text(STR("xxxABCDEFyyy"));
|
||||
Text text(STR("xxxABCDEFyyy"));
|
||||
@ -3469,7 +3469,7 @@ namespace
|
||||
}
|
||||
|
||||
//*************************************************************************
|
||||
TEST_FIXTURE(SetupFixture, test_compare_positon_length_c_string)
|
||||
TEST_FIXTURE(SetupFixture, test_compare_position_length_c_string)
|
||||
{
|
||||
Compare_Text compare_text(STR("xxxABCDEFyyy"));
|
||||
Text text(STR("xxxABCDEFyyy"));
|
||||
@ -3504,7 +3504,7 @@ namespace
|
||||
}
|
||||
|
||||
//*************************************************************************
|
||||
TEST_FIXTURE(SetupFixture, test_compare_positon_length_c_string_n)
|
||||
TEST_FIXTURE(SetupFixture, test_compare_position_length_c_string_n)
|
||||
{
|
||||
Compare_Text compare_text(STR("xxxABCDEFyyy"));
|
||||
Text text(STR("xxxABCDEFyyy"));
|
||||
|
||||
@ -3662,7 +3662,7 @@ namespace
|
||||
}
|
||||
|
||||
//*************************************************************************
|
||||
TEST_FIXTURE(SetupFixture, test_compare_positon_length_string)
|
||||
TEST_FIXTURE(SetupFixture, test_compare_position_length_string)
|
||||
{
|
||||
Compare_Text compare_text(STR("xxxABCDEFyyy"));
|
||||
|
||||
@ -3699,7 +3699,7 @@ namespace
|
||||
}
|
||||
|
||||
//*************************************************************************
|
||||
TEST_FIXTURE(SetupFixture, test_compare_positon_length_string_subposition_sublength)
|
||||
TEST_FIXTURE(SetupFixture, test_compare_position_length_string_subposition_sublength)
|
||||
{
|
||||
Compare_Text compare_text(STR("xxxABCDEFyyy"));
|
||||
|
||||
@ -3773,7 +3773,7 @@ namespace
|
||||
}
|
||||
|
||||
//*************************************************************************
|
||||
TEST_FIXTURE(SetupFixture, test_compare_positon_length_c_string)
|
||||
TEST_FIXTURE(SetupFixture, test_compare_position_length_c_string)
|
||||
{
|
||||
Compare_Text compare_text(STR("xxxABCDEFyyy"));
|
||||
|
||||
@ -3810,7 +3810,7 @@ namespace
|
||||
}
|
||||
|
||||
//*************************************************************************
|
||||
TEST_FIXTURE(SetupFixture, test_compare_positon_length_c_string_n)
|
||||
TEST_FIXTURE(SetupFixture, test_compare_position_length_c_string_n)
|
||||
{
|
||||
Compare_Text compare_text(STR("xxxABCDEFyyy"));
|
||||
|
||||
|
||||
@ -3363,7 +3363,7 @@ namespace
|
||||
}
|
||||
|
||||
//*************************************************************************
|
||||
TEST_FIXTURE(SetupFixture, test_compare_positon_length_string)
|
||||
TEST_FIXTURE(SetupFixture, test_compare_position_length_string)
|
||||
{
|
||||
Compare_Text compare_text(STR("xxxABCDEFyyy"));
|
||||
Text text(STR("xxxABCDEFyyy"));
|
||||
@ -3398,7 +3398,7 @@ namespace
|
||||
}
|
||||
|
||||
//*************************************************************************
|
||||
TEST_FIXTURE(SetupFixture, test_compare_positon_length_string_subposition_sublength)
|
||||
TEST_FIXTURE(SetupFixture, test_compare_position_length_string_subposition_sublength)
|
||||
{
|
||||
Compare_Text compare_text(STR("xxxABCDEFyyy"));
|
||||
Text text(STR("xxxABCDEFyyy"));
|
||||
@ -3468,7 +3468,7 @@ namespace
|
||||
}
|
||||
|
||||
//*************************************************************************
|
||||
TEST_FIXTURE(SetupFixture, test_compare_positon_length_c_string)
|
||||
TEST_FIXTURE(SetupFixture, test_compare_position_length_c_string)
|
||||
{
|
||||
Compare_Text compare_text(STR("xxxABCDEFyyy"));
|
||||
Text text(STR("xxxABCDEFyyy"));
|
||||
@ -3503,7 +3503,7 @@ namespace
|
||||
}
|
||||
|
||||
//*************************************************************************
|
||||
TEST_FIXTURE(SetupFixture, test_compare_positon_length_c_string_n)
|
||||
TEST_FIXTURE(SetupFixture, test_compare_position_length_c_string_n)
|
||||
{
|
||||
Compare_Text compare_text(STR("xxxABCDEFyyy"));
|
||||
Text text(STR("xxxABCDEFyyy"));
|
||||
|
||||
@ -3662,7 +3662,7 @@ namespace
|
||||
}
|
||||
|
||||
//*************************************************************************
|
||||
TEST_FIXTURE(SetupFixture, test_compare_positon_length_string)
|
||||
TEST_FIXTURE(SetupFixture, test_compare_position_length_string)
|
||||
{
|
||||
Compare_Text compare_text(STR("xxxABCDEFyyy"));
|
||||
|
||||
@ -3699,7 +3699,7 @@ namespace
|
||||
}
|
||||
|
||||
//*************************************************************************
|
||||
TEST_FIXTURE(SetupFixture, test_compare_positon_length_string_subposition_sublength)
|
||||
TEST_FIXTURE(SetupFixture, test_compare_position_length_string_subposition_sublength)
|
||||
{
|
||||
Compare_Text compare_text(STR("xxxABCDEFyyy"));
|
||||
|
||||
@ -3773,7 +3773,7 @@ namespace
|
||||
}
|
||||
|
||||
//*************************************************************************
|
||||
TEST_FIXTURE(SetupFixture, test_compare_positon_length_c_string)
|
||||
TEST_FIXTURE(SetupFixture, test_compare_position_length_c_string)
|
||||
{
|
||||
Compare_Text compare_text(STR("xxxABCDEFyyy"));
|
||||
|
||||
@ -3810,7 +3810,7 @@ namespace
|
||||
}
|
||||
|
||||
//*************************************************************************
|
||||
TEST_FIXTURE(SetupFixture, test_compare_positon_length_c_string_n)
|
||||
TEST_FIXTURE(SetupFixture, test_compare_position_length_c_string_n)
|
||||
{
|
||||
Compare_Text compare_text(STR("xxxABCDEFyyy"));
|
||||
|
||||
|
||||
@ -205,7 +205,7 @@ namespace
|
||||
s.set_idle_callback(common.idle_callback);
|
||||
s.set_watchdog_callback(common.watchdog_callback);
|
||||
s.add_task_list(taskList, std::size(taskList));
|
||||
s.start(); // If 'start' returns then the idle callback was sucessfully called.
|
||||
s.start(); // If 'start' returns then the idle callback was successfully called.
|
||||
|
||||
WorkList_t expected = { "T3W1", "T2W1", "T1W1", "T3W2", "T2W2", "T1W2", "T3W3", "T2W3", "T1W3", "T2W4" };
|
||||
|
||||
@ -230,7 +230,7 @@ namespace
|
||||
s.set_idle_callback(common.idle_callback);
|
||||
s.set_watchdog_callback(common.watchdog_callback);
|
||||
s.add_task_list(taskList, std::size(taskList));
|
||||
s.start(); // If 'start' returns then the idle callback was sucessfully called.
|
||||
s.start(); // If 'start' returns then the idle callback was successfully called.
|
||||
|
||||
WorkList_t expected = { "T3W1", "T3W2", "T2W1", "T2W2", "T2W3", "T2W4", "T1W1", "T1W2", "T1W3", "T3W3" };
|
||||
|
||||
@ -255,7 +255,7 @@ namespace
|
||||
s.set_idle_callback(common.idle_callback);
|
||||
s.set_watchdog_callback(common.watchdog_callback);
|
||||
s.add_task_list(taskList, std::size(taskList));
|
||||
s.start(); // If 'start' returns then the idle callback was sucessfully called.
|
||||
s.start(); // If 'start' returns then the idle callback was successfully called.
|
||||
|
||||
WorkList_t expected = { "T3W1", "T3W2", "T2W1", "T2W2", "T3W3", "T2W3", "T2W4", "T1W1", "T1W2", "T1W3" };
|
||||
|
||||
@ -280,7 +280,7 @@ namespace
|
||||
s.set_idle_callback(common.idle_callback);
|
||||
s.set_watchdog_callback(common.watchdog_callback);
|
||||
s.add_task_list(taskList, std::size(taskList));
|
||||
s.start(); // If 'start' returns then the idle callback was sucessfully called.
|
||||
s.start(); // If 'start' returns then the idle callback was successfully called.
|
||||
|
||||
WorkList_t expected = { "T2W1", "T2W2", "T1W1", "T3W1", "T2W3", "T3W2", "T1W2", "T3W3", "T2W4", "T1W3" };
|
||||
|
||||
|
||||
@ -89,7 +89,7 @@ namespace
|
||||
};
|
||||
}
|
||||
|
||||
// Definitions for when the STL and compiler built-ins are not avalable.
|
||||
// Definitions for when the STL and compiler built-ins are not available.
|
||||
#if ETL_NOT_USING_STL && !defined(ETL_USE_TYPE_TRAITS_BUILTINS)
|
||||
|
||||
using etl::is_assignable;
|
||||
|
||||
@ -142,7 +142,7 @@ namespace
|
||||
}
|
||||
|
||||
//*************************************************************************
|
||||
TEST(test_muliply_equal)
|
||||
TEST(test_multiply_equal)
|
||||
{
|
||||
CompassDirection value = CompassDirection::North;
|
||||
value *= 3;
|
||||
|
||||
@ -54,7 +54,7 @@ namespace
|
||||
SUITE(test_variance)
|
||||
{
|
||||
//*************************************************************************
|
||||
TEST(test_char_variance_default_constuctor)
|
||||
TEST(test_char_variance_default_constructor)
|
||||
{
|
||||
etl::variance<etl::variance_type::Population, char, int32_t> variance;
|
||||
|
||||
@ -64,7 +64,7 @@ namespace
|
||||
}
|
||||
|
||||
//*************************************************************************
|
||||
TEST(test_float_variance_default_constuctor)
|
||||
TEST(test_float_variance_default_constructor)
|
||||
{
|
||||
etl::variance<etl::variance_type::Population, float> variance;
|
||||
|
||||
@ -74,7 +74,7 @@ namespace
|
||||
}
|
||||
|
||||
//*************************************************************************
|
||||
TEST(test_double_variance_default_constuctor)
|
||||
TEST(test_double_variance_default_constructor)
|
||||
{
|
||||
etl::variance<etl::variance_type::Population, double> variance;
|
||||
|
||||
@ -84,7 +84,7 @@ namespace
|
||||
}
|
||||
|
||||
//*************************************************************************
|
||||
TEST(test_char_variance_constuctor_population)
|
||||
TEST(test_char_variance_constructor_population)
|
||||
{
|
||||
double variance_result;
|
||||
|
||||
@ -94,7 +94,7 @@ namespace
|
||||
}
|
||||
|
||||
//*************************************************************************
|
||||
TEST(test_char_variance_constuctor_sample)
|
||||
TEST(test_char_variance_constructor_sample)
|
||||
{
|
||||
double variance_result;
|
||||
|
||||
@ -104,7 +104,7 @@ namespace
|
||||
}
|
||||
|
||||
//*************************************************************************
|
||||
TEST(test_float_variance_constuctor_population)
|
||||
TEST(test_float_variance_constructor_population)
|
||||
{
|
||||
double variance_result;
|
||||
|
||||
@ -114,7 +114,7 @@ namespace
|
||||
}
|
||||
|
||||
//*************************************************************************
|
||||
TEST(test_float_variance_constuctor_sample)
|
||||
TEST(test_float_variance_constructor_sample)
|
||||
{
|
||||
double variance_result;
|
||||
|
||||
@ -124,7 +124,7 @@ namespace
|
||||
}
|
||||
|
||||
//*************************************************************************
|
||||
TEST(test_double_variance_constuctor_population)
|
||||
TEST(test_double_variance_constructor_population)
|
||||
{
|
||||
double variance_result;
|
||||
|
||||
@ -134,7 +134,7 @@ namespace
|
||||
}
|
||||
|
||||
//*************************************************************************
|
||||
TEST(test_double_variance_constuctor_sample)
|
||||
TEST(test_double_variance_constructor_sample)
|
||||
{
|
||||
double variance_result;
|
||||
|
||||
|
||||
@ -290,7 +290,7 @@ namespace
|
||||
};
|
||||
}
|
||||
|
||||
// Definitions for when the STL and compiler built-ins are not avalable.
|
||||
// Definitions for when the STL and compiler built-ins are not available.
|
||||
#if ETL_NOT_USING_STL && !defined(ETL_USE_TYPE_TRAITS_BUILTINS)
|
||||
|
||||
using etl::is_copy_constructible;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user