로딩중...
검색중...
일치하는것 없음
by::tnchain< K, V, _defaultContainer > 클래스 템플릿 참조
by::tnchain< K, V, _defaultContainer >에 대한 상속 다이어그램 :
by::tnbicontainer< K, V > by::tbicontainable< K, V > by::tndumChain< K, V, defaultContainer >

Public 타입

typedef super::iter iter
 
typedef super::iteration iteration
 
typedef _defaultContainer defaultContainer
 

Public 멤버 함수

 tnchain (const super &arr)
 
 tnchain (const super &org, const me &next)
 
 tnchain (std::initializer_list< std::pair< K, V * > > elems)
 
nbool in (const K &key) const override
 
ncnt len () const override
 
ncnt chainLen () const
 
Vget (const K &key) override
 
nbool add (const K &key, const V &val) override
 
virtual nbool link (const iter &portion)
 link to another chain instance. if iterator is not the begin of another chain, this chain won't link unaccessible elements via given iterator. using this point, you can choose which elements to link and which elements not. even if you specified a reverse iterator to link, this chain will only traverse in reverse way for that container refered by the reversed iterator.
 
nbool link (const me &new1)
 
nbool link (const me *it) BY_SIDE_FUNC(link)
 
nbool unlink ()
 
nbool del (const K &key) override
 
nbool del (const iter &at) override
 
nbool del (const iter &from, const iter &end) override
 
void rel () override
 
super & getContainer ()
 
const super & getContainer () const
 
me * getNext ()
 
const me * getNext () const BY_CONST_FUNC(getNext()) me *getPrev()
 
const me * getPrev () const BY_CONST_FUNC(getPrev()) me *getTail()
 
const me * getTail () const BY_CONST_FUNC(getTail()) void onCloneDeep(const clonable &from) override
 
me * cloneChain (const super *until) const
 
me * cloneChain (const me *until) const
 
me * cloneChain () const
 
- by::tbicontainable< K, V >(으)로부터 상속된 Public 멤버 함수
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)
 

정적 Public 멤버 함수

template<typename T >
static T * wrap (const super &toShallowWrap)
 
template<typename T >
static T * wrap (const super *it) BY_SIDE_FUNC(it
 
static me * wrap (const super &toShallowWrap)
 
static me * wrap (const super *it) BY_SIDE_FUNC(wrap)
 

Public 속성

static T wrap< T > it
 
static T wrap< T > nullptr
 
- by::tbicontainable< K, V >(으)로부터 상속된 Public 속성
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
 

Protected 멤버 함수

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

Friends

class nchainIteration
 

멤버 함수 문서화

◆ _getAll()

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

◆ _onMakeIteration()

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

◆ add()

template<typename K , typename V , typename _defaultContainer = tnmap<K, V>>
nbool by::tnchain< K, V, _defaultContainer >::add ( const K & key,
const V & val )
overridevirtual

◆ cloneChain() [1/2]

template<typename K , typename V , typename _defaultContainer = tnmap<K, V>>
me * by::tnchain< K, V, _defaultContainer >::cloneChain ( ) const

mock all of this chain until 'next' is null.

◆ cloneChain() [2/2]

template<typename K , typename V , typename _defaultContainer = tnmap<K, V>>
me * by::tnchain< K, V, _defaultContainer >::cloneChain ( const super * until) const

mock this chain and let it chain another container differ to original. this func keep accessing next element to chain it.

매개변수
untilthe loop will be terminated when next element has same address to this. chain you assigned to 'until' will be cloned to.

◆ del()

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

delete all elements matching by given key.

by::tbicontainable< K, V >를 구현.

◆ get()

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

◆ getPrev()

template<typename K , typename V , typename _defaultContainer = tnmap<K, V>>
const me * by::tnchain< K, V, _defaultContainer >::getPrev ( ) const

return most not null next element of this chain.

◆ getTail()

template<typename K , typename V , typename _defaultContainer = tnmap<K, V>>
const me * by::tnchain< K, V, _defaultContainer >::getTail ( ) const &
override

returned deep cloned of this instance with all chained ones.

Remarks
when the chain has already linked to the another chain instance, not only this object, but also all of chained instances will be deep cloned.

◆ in()

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

◆ len()

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

◆ link()

template<typename K , typename V , typename _defaultContainer = tnmap<K, V>>
virtual nbool by::tnchain< K, V, _defaultContainer >::link ( const iter & portion)
virtual

link to another chain instance. if iterator is not the begin of another chain, this chain won't link unaccessible elements via given iterator. using this point, you can choose which elements to link and which elements not. even if you specified a reverse iterator to link, this chain will only traverse in reverse way for that container refered by the reversed iterator.

매개변수
portionthis iterator should be belong to another chain instance. of course you can input this iterator with reversed one. if this iterator reached to the end, chain iterator will be forward to next chain instance.
반환값
false when to make a link didn't work. for instance, if iterator is belonged to this chain or nullptr.

◆ rel()

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

◆ wrap()

template<typename K , typename V , typename _defaultContainer = tnmap<K, V>>
template<typename T >
static T * by::tnchain< K, V, _defaultContainer >::wrap ( const super & toShallowWrap)
inlinestatic

wrap given container as the same level to this chain.

매개변수
toShallowWrapif this is a chain, then the wrap func returns it as it is. if this is any container except chain, then it returns after wrapping given container.

이 클래스에 대한 문서화 페이지는 다음의 파일들로부터 생성되었습니다.:
to Top