2 # ifndef TPL_DYNLISTQUEUE_H
3 # define TPL_DYNLISTQUEUE_H
30 std::swap(num_items, q.num_items);
53 num_items = q.num_items;
60 std::swap(num_items, q.num_items);
65 const size_t & size()
const {
return num_items; }
86 T &
put(
const T & data)
88 T & ret_val = this->append(data);
95 T & ret_val = this->append(std::move(data));
109 T ret_val = this->remove_first();
117 return this->get_first();
123 return this->get_last();
129 return this->get_first();
135 return this->get_last();
143 template <
class Operation>
144 bool traverse(Operation & operation)
149 template <
class Operation>
150 bool traverse(Operation & operation)
const
155 template <
class Operation>
156 bool traverse(Operation && operation = Operation())
const
161 template <
class Operation>
162 bool traverse(Operation && operation = Operation())
167 Functional_Methods(T);
173 # endif // TPL_DYNLISTQUEUE_H
T & rear()
Retorna una referencia modificable al trasero de la cola.
Definition: tpl_dynListQueue.H:121
T & front()
Retorna una referencia modificable al frente de la cola.
Definition: tpl_dynListQueue.H:115
DynListQueue Set_Type
El tipo de conjunto sobre el cual se itera.
Definition: tpl_dynListQueue.H:70
const T & front() const
Retorna una referencia constante al frente de la cola.
Definition: tpl_dynListQueue.H:127
Definition: tpl_dynListQueue.H:22
const T & rear() const
Retorna una referencia constante al trasero de la cola.
Definition: tpl_dynListQueue.H:133
T Item_Type
El tipo de elemento que retorna get_current().
Definition: tpl_dynListQueue.H:73
Recorre condicionalmente el contenedor y ejecuta una operation mientras ésta retorne true...
T & put(const T &data)
Definition: tpl_dynListQueue.H:86