![]() |
NDEVR
API Documentation
|
Stores objects in a first-in, first out queue based Buffer with push and pop functions. More...
Public Member Functions | |
| decltype(auto) | front () |
| decltype(auto) | front () const |
Additional Inherited Members | |
| Protected Member Functions inherited from Buffer< t_type, t_memory_manager > | |
| constexpr | Buffer () noexcept |
| Creates an empty buffer. | |
| constexpr | Buffer (Buffer &&buffer) noexcept |
| Optimized move constructor. | |
| constexpr | Buffer (const Buffer &buffer) |
| Optimized copy consturctor. | |
| template<class t_iterator> | |
| Buffer (const t_iterator &begin, const t_iterator &end) | |
| Constructor that allows for an iterator begin and end. | |
| constexpr | Buffer (const t_type *buffer, t_index_type size) |
| Constructor that allows for an a start pointer, and size, and adds all elements to the buffer. | |
| Buffer (std::initializer_list< t_type > l) | |
| Constructor that allows for an initializer list, allowing { and } to be used. | |
| Buffer (t_index_type size) | |
| Constructor that reserves space. | |
| constexpr | Buffer (t_index_type size, const t_type &fill_object) |
| Constructor that allows for a set size, and then fills the buffer with the specified object. | |
| ~Buffer () | |
| void | add (const t_type &object) |
| Adds object to the end of the buffer. | |
| void | add (t_index_type location, const t_type &object) |
| Adds and object to a specific location. | |
| void | add (t_index_type location, t_type &&object) |
| Adds an object to a specific location. | |
| void | add (t_type &&object) |
| Adds object to the end of the buffer. | |
| template<bool t_managed> | |
| void | addSpace (t_index_type space_to_add) |
| Adds a space to the end of the buffer. | |
| operator decltype | auto () |
| Gets the first location of type* in the array. | |
| operator decltype | auto () const |
| Gets the first location of type* in the array. | |
| sint04 | compare (const Buffer &value) const |
| Compares this Buffer to another to determine their relative ordering. | |
| template<class t_other_type, class t_other_memory_manager = t_memory_manager> | |
| Buffer< t_other_type, t_other_memory_manager > | getAs () const |
| Gets a copy of this buffer, with filled objects t_other_type, where all objects are created using the contents of this buffer. | |
| void | insert (const t_index_type location, const t_type *buffer) |
| Inserts data into the buffer, assumed to be null terminated. | |
| void | insert (t_index_type location, const t_type &object) |
| Adds an object to a specific location. | |
| void | insert (t_index_type location, t_type &&object) |
| Adds an object to a specific location. | |
| void | insert (t_index_type offset, const t_type *const buffer, t_index_type buffer_size) |
| Inserts data into the buffer. | |
| void | removeAllOrdered (const t_type &object) |
| Removes all instances of the object. | |
| template<class t_functor> | |
| void | removeAllOrderedFn (const t_functor &functor) |
| Removes all items based on the functor. | |
| template<class t_functor> | |
| void | removeAllUnordered (const t_functor &functor) |
| Removes all items based on the functor. | |
| void | removeAllUnordered (const t_type &object) |
| Removes all unordered described by object. | |
Stores objects in a first-in, first out queue based Buffer with push and pop functions.
Definition at line 9 of file QueueBuffer.hpp.
|
inlinenodiscard |
Constructor.
Author: Tyler Parke
Date: 2017-11-19
Parameters: parameter1 - The first parameter.
Definition at line 103 of file QueueBuffer.hpp.
|
inlinenodiscard |
Constructor.
Author: Tyler Parke
Date: 2017-11-19
Parameters: parameter1 - The first parameter.
Definition at line 119 of file QueueBuffer.hpp.