33#include <NDEVR/Buffer.h>
39 template <
class t_type,
class t_buffer>
92 template<
class t_type,
class t_memory_allocator,
class t_memory_manager>
97 auto final_iter = std::set_intersection(a.
begin(), a.
end(), b.
begin(), b.
end(), iter);
102 template<
class t_type,
class t_memory_allocator,
class t_memory_manager>
114 return intersect_buf;
117 template<
class t_type,
class t_memory_allocator,
class t_memory_manager>
123 union_buf.makeUnique();
127 template<
class t_type,
class t_memory_allocator,
class t_memory_manager>
138 template<
class t_type,
class t_memory_allocator,
class t_memory_manager>
147 return intersect_buf;
149 template<
class t_type,
class t_memory_allocator,
class t_memory_manager>
#define lib_assert(expression, message)
Asserts some logic in the code. Disabled in non debug mode by default. Can be re-enabled in release u...
Definition LibAssert.h:70
Definition BufferFunctions.h:38
The equivelent of std::vector but with a bit more control. The basic array unit of the library.
Definition Buffer.hpp:64
bool contains(const t_type &element) const
Definition Buffer.hpp:674
void sort()
Definition Buffer.hpp:1611
constexpr t_index_type size() const
Definition Buffer.hpp:1461
bool isSorted() const
Definition Buffer.hpp:2037
void addAll(const Buffer< t_type, t_other_index_type, t_other_memory_allocator, t_other_memory_manager > &buffer)
Definition Buffer.hpp:248
decltype(auto) end()
Definition Buffer.hpp:746
void setSize(t_index_type new_size)
Definition Buffer.hpp:1413
void removeIndex(t_index_type location)
Definition Buffer.hpp:1037
void setUniquePresorted()
Definition Buffer.hpp:1664
decltype(auto) begin()
Definition Buffer.hpp:504
Definition BufferFunctions.h:41
BufferInsertIterator< t_type, t_buffer > & operator++(int val)
Definition BufferFunctions.h:76
t_type value_type
Definition BufferFunctions.h:47
const BufferInsertIterator< t_type, t_buffer > & operator*() const
Definition BufferFunctions.h:87
t_type & reference
Definition BufferFunctions.h:50
t_type * pointer
Definition BufferFunctions.h:49
t_buffer * m_container
Definition BufferFunctions.h:43
std::random_access_iterator_tag iterator_category
Definition BufferFunctions.h:46
BufferInsertIterator< t_type, t_buffer > & operator*()
Definition BufferFunctions.h:83
BufferInsertIterator(t_buffer &container, int i)
Definition BufferFunctions.h:52
BufferInsertIterator< t_type, t_buffer > & operator++()
Definition BufferFunctions.h:69
BufferInsertIterator< t_type, t_buffer > & operator=(const t_type &value)
Definition BufferFunctions.h:57
ptrdiff_t difference_type
Definition BufferFunctions.h:48
uint04 m_location
Definition BufferFunctions.h:44
Buffer< t_type, t_memory_allocator, t_memory_manager > IntersectSorted(const Buffer< t_type, t_memory_allocator, t_memory_manager > &a, const Buffer< t_type, t_memory_allocator, t_memory_manager > &b)
Definition BufferFunctions.h:93
Buffer< t_type, t_memory_allocator, t_memory_manager > Intersect(const Buffer< t_type, t_memory_allocator, t_memory_manager > &a, const Buffer< t_type, t_memory_allocator, t_memory_manager > &b)
Definition BufferFunctions.h:128
Buffer< t_type, t_memory_allocator, t_memory_manager > ExceptSorted(const Buffer< t_type, t_memory_allocator, t_memory_manager > &a, const Buffer< t_type, t_memory_allocator, t_memory_manager > &b)
Definition BufferFunctions.h:103
Buffer< t_type, t_memory_allocator, t_memory_manager > Union(const Buffer< t_type, t_memory_allocator, t_memory_manager > &a, const Buffer< t_type, t_memory_allocator, t_memory_manager > &b)
Definition BufferFunctions.h:118
uint32_t uint04
-Defines an alias representing a 4 byte, unsigned integer -Can represent exact integer values 0 throu...
Definition BaseValues.hpp:120
constexpr t_to cast(const Angle< t_from > &value)
Definition Angle.h:514
Buffer< t_type, t_memory_allocator, t_memory_manager > IntersectPreserveOrderA(const Buffer< t_type, t_memory_allocator, t_memory_manager > &a, const Buffer< t_type, t_memory_allocator, t_memory_manager > &b)
Definition BufferFunctions.h:139
constexpr bool isNaN(const t_type &value)
Query if 'value' is valid or invalid.
Definition BaseFunctions.hpp:200
Buffer< t_type, t_memory_allocator, t_memory_manager > Except(const Buffer< t_type, t_memory_allocator, t_memory_manager > &a, const Buffer< t_type, t_memory_allocator, t_memory_manager > &b)
Definition BufferFunctions.h:150
constexpr t_type getMin(const t_type &left, const t_type &right)
Finds the minimum of the given arguments based on the < operator.
Definition BaseFunctions.hpp:67