33#include <NDEVR/Buffer.h>
46 template <
class t_type,
class t_buffer>
99 template<
class t_type,
class t_memory_allocator,
class t_memory_manager>
104 auto final_iter = std::set_intersection(a.
begin(), a.
end(), b.
begin(), b.
end(), iter);
106 return intersect_buf;
109 template<
class t_type,
class t_memory_allocator,
class t_memory_manager>
121 return intersect_buf;
124 template<
class t_type,
class t_memory_allocator,
class t_memory_manager>
130 union_buf.makeUnique();
134 template<
class t_type,
class t_memory_allocator,
class t_memory_manager>
145 template<
class t_type,
class t_memory_allocator,
class t_memory_manager>
154 return intersect_buf;
156 template<
class t_type,
class t_memory_allocator,
class t_memory_manager>
#define lib_assert(expression, message)
Definition LibAssert.h:61
A dummy class to include complex Buffer insert and sort functions Functions that enhance the function...
Definition BufferFunctions.h:42
The equivelent of std::vector but with a bit more control. The basic array unit of the library.
Definition Buffer.hpp:56
bool contains(const t_type &element) const
Definition Buffer.hpp:465
void sort()
Definition Buffer.hpp:892
constexpr t_index_type size() const
Definition Buffer.hpp:823
bool isSorted() const
Definition Buffer.hpp:1009
void addAll(const Buffer< t_type, t_other_index_type, t_other_memory_allocator, t_other_memory_manager > &buffer)
Definition Buffer.hpp:243
decltype(auto) end()
Definition Buffer.hpp:507
void setSize(t_index_type new_size)
Definition Buffer.hpp:803
void removeIndex(t_index_type location)
Definition Buffer.hpp:606
void setUniquePresorted()
Definition Buffer.hpp:908
decltype(auto) begin()
Definition Buffer.hpp:402
Used by stl library to insert objects into the buffer.
Definition BufferFunctions.h:48
BufferInsertIterator< t_type, t_buffer > & operator++(int val)
Definition BufferFunctions.h:83
t_type value_type
Definition BufferFunctions.h:54
const BufferInsertIterator< t_type, t_buffer > & operator*() const
Definition BufferFunctions.h:94
t_type & reference
Definition BufferFunctions.h:57
BufferInsertIterator< t_type, t_buffer > & operator=(t_type &&value)
Definition BufferFunctions.h:70
t_type * pointer
Definition BufferFunctions.h:56
t_buffer * m_container
Definition BufferFunctions.h:50
std::random_access_iterator_tag iterator_category
Definition BufferFunctions.h:53
BufferInsertIterator< t_type, t_buffer > & operator*()
Definition BufferFunctions.h:90
BufferInsertIterator(t_buffer &container, int i)
Definition BufferFunctions.h:59
BufferInsertIterator< t_type, t_buffer > & operator++()
Definition BufferFunctions.h:76
BufferInsertIterator< t_type, t_buffer > & operator=(const t_type &value)
Definition BufferFunctions.h:64
ptrdiff_t difference_type
Definition BufferFunctions.h:55
uint04 m_location
Definition BufferFunctions.h:51
constexpr bool IsInvalid(const t_type &value)
Query if 'value' is valid or invalid. Invalid values should return invalid if used for calculations o...
Definition BaseFunctions.hpp:170
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:100
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:135
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:110
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:125
uint32_t uint04
-Defines an alias representing a 4 byte, unsigned integer -Can represent exact integer values 0 throu...
Definition BaseValues.hpp:96
constexpr t_to cast(const Angle< t_from > &value)
Definition Angle.h:375
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:146
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:157
constexpr t_type getMin(const t_type &left, const t_type &right)
Finds the minimum of the given arguments based on the < operator Author: Tyler Parke Date: 2017-11-05...
Definition BaseFunctions.hpp:56