Template unidirectional container interface. More...
#include <tucontainable.hpp>
Public Member Functions | |
| virtual ncnt | len () const =0 |
| nbool | in (const T &it) const |
| nbool | in (const T *it) const BY_SIDE_FUNC(in) |
| nbool | in (std::function< nbool(const T &)> l) const |
| template<typename T1 > | |
| nbool | in (std::function< nbool(const T1 &)> l) const |
| nbool | isEmpty () const |
| template<typename T1 > | |
| std::conditional_t< _IS_POINTER, T1 *, tmay< T1 > > | get (std::function< nbool(const T1 &)> l) |
| std::conditional_t< _IS_POINTER, R, tmay< R > > | get (std::function< nbool(const T &)> l) |
| template<typename T1 > | |
| std::conditional_t< _IS_POINTER, const T1 *, tmay< T1 > > get(std::function< nbool(const T1 &)> l) const std tnarr< T, strTactic > | getAll (std::function< nbool(const T &)> l) const |
| template<typename T1 > | |
| void | each (std::function< nbool(T1 &)> l) |
| void | each (std::function< nbool(T &)> l) |
| virtual iter | end () const |
| virtual iter | rend () const |
| virtual iter | last () const |
| iter | iterate (ncnt step) const |
| iter | iterate (const T &it) const |
| iter | riterate (ncnt step) const |
| iter | riterate (const T &it) const |
| virtual nbool | set (const iter &at, const T &new1)=0 |
| virtual nbool | set (const iter &at, const T *new1) BY_SIDE_FUNC(new1 |
| virtual nbool | set (at, *new1) |
| virtual nbool | add (const iter &at, const T &new1)=0 |
| nbool | add (const iter &at, const T *new1) BY_SIDE_FUNC(new1 |
| nbool | add (at, *new1) |
| nbool | add (std::initializer_list< const T * > elems) |
| nbool | add (const T &new1) |
| nbool | add (const T *it) BY_SIDE_FUNC(add) |
| virtual void | add (const iter &here, const iter &from, const iter &to)=0 |
| void | add (const iter &from, const iter &to) |
| void | add (const iter &here, me &rhs) |
| void | add (const me &rhs) |
| void | add (const me *rhs) BY_SIDE_FUNC(rhs |
| void add | void ()) |
| template<typename E > | |
| ncnt | add (const typename tucontainable< E >::iter &from, const typename tucontainable< E >::iter &to) |
| template<typename E > | |
| ncnt | add (const tucontainable< E > &rhs) |
| template<typename K , typename V > | |
| ncnt | add (const tbicontainable< K, V > &rhs) |
| nbool | del () |
| delete last element if exists. | |
| nbool | del (const T &it) |
| nbool | del (const T *it) BY_SIDE_FUNC(del) |
| virtual nbool | del (const iter &it)=0 |
| virtual nbool | del (const iter &from, const iter &end)=0 |
| nbool | del (const me &rhs) |
| nbool | del (const me *rhs) BY_SIDE_FUNC(rhs |
| virtual void | rel ()=0 |
Public Attributes | |
| template<typename T1 > | |
| void each(std::function< nbool(const T1 &)> l) const BY_CONST_FUNC(each(l)) void each(std iter | rbegin () const |
| virtual nbool | false |
| nbool | false |
| void add | rhs |
| nbool del | rhs |
| nbool del | false |
Protected Member Functions | |
| virtual iteration * | _onMakeIteration (ncnt step, nbool isReversed) const =0 |
Template unidirectional container interface.
Container template with iterator support and element access API.