22 #ifndef ZVISION_FOCUS_LIST_H 23 #define ZVISION_FOCUS_LIST_H 25 #include "common/array.h" 49 void set(
const T currentFocus) {
53 if (this->
front() != currentFocus) {
55 while (this->
size() > 0) {
56 if (this->
back() != currentFocus)
61 while (buffer.
size() > 0) {
73 void remove(
const T value) {
76 while (this->
size() > 0) {
77 if (this->
back() != value)
81 while (buffer.
size() > 0) {
T & front()
Definition: array.h:220
Definition: focus_list.h:27
void push_back(const T &element)
Definition: array.h:183
void pop_back()
Definition: array.h:202
size_type size() const
Definition: array.h:318
uint size_type
Definition: array.h:62
Definition: focus_list.h:41
T & back()
Definition: array.h:232