Loading...
Searching...
No Matches
by::tnmap< K, V, TACTIC > Class Template Reference
Inheritance diagram for by::tnmap< K, V, TACTIC >:
by::tnbicontainer< K, V > by::tbicontainable< K, V > by::tndumMap< K, V, TACTIC >

Public Types

typedef tstr< V, TACTICwrap
 
typedef smultimap< K, wrapcmap
 
typedef cmap::iterator citer
 
typedef std::pair< K, Vcpair
 
typedef super::iter iter
 
typedef super::iteration iteration
 

Public Member Functions

 tnmap (const std::initializer_list< std::pair< K, V * > > &elems)
 
ncnt len () const override
 
nbool in (const K &key) const override
 
Vget (const K &key) override
 
nbool add (const K &key, const V &new1) override
 
nbool del (const K &key) override
 
nbool del (const iter &at) override
 
nbool del (const iter &from, const iter &end) override
 
void rel () override
 
void onCloneDeep (const clonable &from) override
 
- Public Member Functions inherited from by::tbicontainable< K, V >
Voperator[] (const K &key)
 
const Voperator[] (const K &key) const
 
ncnt isEmpty () const
 
nbool in (const K *it) const BY_SIDE_FUNC(in)
 
nbool in (const V &val) const
 
nbool in (const V *it) const BY_SIDE_FUNC(in)
 
nbool in (std::function< nbool(const K &key, const V &val)> l) const
 
template<typename V1 >
nbool in (std::function< nbool(const K &key, const V1 &val)> l) const
 
const Vget (const K &key) const BY_CONST_FUNC(get(key)) V *get(const K *it) BY_SIDE_FUNC(get)
 
template<typename V1 >
V1get ()
 
template<typename V1 >
const V1get () const BY_CONST_FUNC(get< V1 >()) template< typename V1 > V1 *get(const K &key)
 
template<typename V1 >
const V1get (const K &key) const BY_CONST_FUNC(get< V1 >(key)) template< typename V1 > V1 *get(const K *it) BY_SIDE_FUNC(get< V1 >)
 
template<typename V1 >
tnarr< V1, strTactic > getAll () const
 
template<typename V1 >
tnarr< V1, strTactic > getAll (std::function< nbool(const K &, const V1 &)> l) const
 
tnarr< V, strTactic > getAll (std::function< nbool(const K &, const V &)> l) const
 
template<typename V1 >
void each (std::function< nbool(const K &, V1 &)> l)
 
void each (std::function< nbool(const K &, V &)> l)
 
iter begin (const K *it) const BY_SIDE_FUNC(it
 
iter begin iterate (0))
 
iter rbegin () const
 
iter rbegin (const K &key) const
 
iter rbegin (const K *it) const BY_SIDE_FUNC(it
 
iter rbegin riterate (0))
 
virtual iter end () const
 
virtual iter rend () const
 
virtual iter last () const
 
iter iterate (ncnt step) const
 
iter iterate (ncnt step, nbool isBoundary) const
 
iter iterate (const K &key) const
 
iter iterate (const K *it) const BY_SIDE_FUNC(it
 
iter iterate begin ())
 
iter iterate (const K &key, nbool isBoundary) const
 
iter iterate (const K *key, nbool isBoundary) const BY_SIDE_FUNC(key
 
iter iterate iterate (0, isBoundary))
 
iter riterate (ncnt step) const
 
iter riterate (ncnt step, nbool isBoundary) const
 
iter riterate (const K &key) const
 
iter riterate (const K *it) const BY_SIDE_FUNC(it
 
iter riterate rbegin ())
 
iter riterate (const K &key, nbool isBoundary) const
 
iter riterate (const K *key, nbool isBoundary) const BY_SIDE_FUNC(key
 
iter riterate riterate (0, isBoundary))
 
nbool add (const K *key, const V &val) BY_SIDE_FUNC(key
 
nbool add (const K &key, const V *val) BY_SIDE_FUNC(val
 
nbool add (key, *val)
 
nbool add (const K *key, const V *val) BY_SIDE_FUNC(key||val
 
ncnt add (const iter &from, const iter &to)
 
ncnt add (const tbicontainable &rhs)
 
ncnt add (const tbicontainable *it) BY_SIDE_FUNC(add)
 
nbool del (const K *it) BY_SIDE_FUNC(del)
 
virtual nbool del (const iter &at)=0
 
nbool del (const iter *it) BY_SIDE_FUNC(del)
 
virtual nbool del (const iter &from, const iter &end)=0
 
nbool del (const iter *from, const iter &end) BY_SIDE_FUNC(from
 
nbool del (const iter &from, const iter *end) BY_SIDE_FUNC(end
 
nbool del (from, *end)
 
nbool del (const iter *from, const iter *end) BY_SIDE_FUNC(from &&end
 
nbool del (const tbicontainable &rhs)
 
nbool del (const tbicontainable *it) BY_SIDE_FUNC(del)
 

Protected Member Functions

iteration_onMakeIteration (const K *key, nbool isReversed, ncnt step, nbool isBoundary) const override
 
void _getAll (const K &key, narr &tray) const override
 

Additional Inherited Members

- Public Attributes inherited from by::tbicontainable< K, V >
template<typename V1 >
const V1 *get(const K *key) const BY_CONST_FUNC(get< V1 >(key)) template< typename V1 > V1 *get(std V get )(std::function< nbool(const K &, const V &)> l)
 
template<typename V1 >
const V1 *get(std::function< nbool(const K &, const V1 &)> l) const BY_CONST_FUNC(get(l)) const V *get(std tnarr< V, strTactic getAll )(const K *it) const BY_SIDE_FUNC(getAll)
 
template<typename V1 >
void each(std::function< nbool(const K &, const V1 &)> l) const BY_CONST_FUNC(each(l)) void each(std ite begin )(const K &key) const
 
iter begin it
 
iter rbegin it
 
iter iterate it
 
iter iterate key
 
iter riterate it
 
iter riterate key
 
nbool add key
 
nbool add false
 
nbool false
 
nbool del from
 
nbool del false
 

Member Function Documentation

◆ _getAll()

template<typename K , typename V , typename TACTIC = strTactic>
void by::tnmap< K, V, TACTIC >::_getAll ( const K & key,
narr & tray ) const
overrideprotectedvirtual

◆ _onMakeIteration()

template<typename K , typename V , typename TACTIC = strTactic>
iteration * by::tnmap< K, V, TACTIC >::_onMakeIteration ( const K * key,
nbool isReversed,
ncnt step,
nbool isBoundary ) const
overrideprotectedvirtual

◆ add()

template<typename K , typename V , typename TACTIC = strTactic>
nbool by::tnmap< K, V, TACTIC >::add ( const K & key,
const V & new1 )
overridevirtual

◆ del()

template<typename K , typename V , typename TACTIC = strTactic>
nbool by::tnmap< K, V, TACTIC >::del ( const K & key)
overridevirtual

delete all elements matched by given key.

Parameters
keykey to be deleted

Implements by::tbicontainable< K, V >.

◆ get()

template<typename K , typename V , typename TACTIC = strTactic>
V * by::tnmap< K, V, TACTIC >::get ( const K & key)
overridevirtual

◆ in()

template<typename K , typename V , typename TACTIC = strTactic>
nbool by::tnmap< K, V, TACTIC >::in ( const K & key) const
overridevirtual

◆ len()

template<typename K , typename V , typename TACTIC = strTactic>
ncnt by::tnmap< K, V, TACTIC >::len ( ) const
overridevirtual

◆ onCloneDeep()

template<typename K , typename V , typename TACTIC = strTactic>
void by::tnmap< K, V, TACTIC >::onCloneDeep ( const clonable & from)
override
Remarks
unlike 'clone()' func, this does deepcopy. so, the output isFrom completely different instance compared to 'this'. however, it doesn't mean that deepcopy for each element.

◆ rel()

template<typename K , typename V , typename TACTIC = strTactic>
void by::tnmap< K, V, TACTIC >::rel ( )
overridevirtual

The documentation for this class was generated from the following file:
to Top