Scroll to navigation

__gnu_pbds::detail::pat_trie_base::_Node_citer< Node, Leaf, Head, Inode, _CIterator, Iterator, _Alloc >(3cxx) __gnu_pbds::detail::pat_trie_base::_Node_citer< Node, Leaf, Head, Inode, _CIterator, Iterator, _Alloc >(3cxx)

NAME

__gnu_pbds::detail::pat_trie_base::_Node_citer< Node, Leaf, Head, Inode, _CIterator, Iterator, _Alloc > - Node const iterator.

SYNOPSIS

#include <pat_trie_base.hpp>

Inherited by __gnu_pbds::detail::pat_trie_base::_Node_iter< Node, Leaf, Head, Inode, _CIterator, Iterator, _Alloc >.

Public Types


typedef _Alloc::template rebind< metadata_type > __rebind_m
Const metadata reference type. typedef __rebind_m::other __rebind_ma
typedef value_type const_reference
typedef trivial_iterator_difference_type difference_type
typedef trivial_iterator_tag iterator_category
typedef __rebind_ma::const_reference metadata_const_reference
typedef Node::metadata_type metadata_type
Metadata type. typedef value_type reference
typedef _Alloc::size_type size_type
typedef _CIterator value_type

Public Member Functions


_Node_citer (node_pointer p_nd=0, a_const_pointer p_traits=0)
_Node_citer get_child (size_type i) const
Returns a __const node __iterator to the corresponding node's i-th child. metadata_const_reference get_metadata () const
Metadata access. size_type num_children () const
Returns the number of children in the corresponding node. bool operator!= (const _Node_citer &other) const
Compares content (negatively) to a different iterator object. const_reference operator* () const
Const access; returns the __const iterator* associated with the current leaf. bool operator== (const _Node_citer &other) const
Compares content to a different iterator object. std::pair< a_const_iterator, a_const_iterator > valid_prefix () const
Subtree valid prefix.

Public Attributes


node_pointer m_p_nd
a_const_pointer m_p_traits

Protected Types


typedef _Alloc::template rebind< Inode > __rebind_in
typedef _Alloc::template rebind< Leaf > __rebind_l
typedef _Alloc::template rebind< Node > __rebind_n
typedef Node::a_const_iterator a_const_iterator
typedef Node::a_const_pointer a_const_pointer
typedef __rebind_in::other::const_pointer inode_const_pointer
typedef __rebind_in::other::pointer inode_pointer
typedef __rebind_l::other::const_pointer leaf_const_pointer
typedef __rebind_l::other::pointer leaf_pointer
typedef __rebind_n::other::pointer node_pointer

Detailed Description

template<typename Node, typename Leaf, typename Head, typename Inode, typename _CIterator, typename Iterator, typename _Alloc>

class __gnu_pbds::detail::pat_trie_base::_Node_citer< Node, Leaf, Head, Inode, _CIterator, Iterator, _Alloc >"Node const iterator.

Definition at line 814 of file pat_trie_base.hpp.

Member Typedef Documentation

template<typename Node , typename Leaf , typename Head , typename Inode , typename _CIterator , typename Iterator , typename _Alloc > typedef _Alloc::template rebind<Inode> __gnu_pbds::detail::pat_trie_base::_Node_citer< Node, Leaf, Head, Inode, _CIterator, Iterator, _Alloc >::__rebind_in [protected]

Definition at line 824 of file pat_trie_base.hpp.

template<typename Node , typename Leaf , typename Head , typename Inode , typename _CIterator , typename Iterator , typename _Alloc > typedef _Alloc::template rebind<Leaf> __gnu_pbds::detail::pat_trie_base::_Node_citer< Node, Leaf, Head, Inode, _CIterator, Iterator, _Alloc >::__rebind_l [protected]

Definition at line 820 of file pat_trie_base.hpp.

template<typename Node , typename Leaf , typename Head , typename Inode , typename _CIterator , typename Iterator , typename _Alloc > typedef _Alloc::template rebind<metadata_type> __gnu_pbds::detail::pat_trie_base::_Node_citer< Node, Leaf, Head, Inode, _CIterator, Iterator, _Alloc >::__rebind_m

Const metadata reference type.

Definition at line 869 of file pat_trie_base.hpp.

template<typename Node , typename Leaf , typename Head , typename Inode , typename _CIterator , typename Iterator , typename _Alloc > typedef __rebind_m::other __gnu_pbds::detail::pat_trie_base::_Node_citer< Node, Leaf, Head, Inode, _CIterator, Iterator, _Alloc >::__rebind_ma

Definition at line 870 of file pat_trie_base.hpp.

template<typename Node , typename Leaf , typename Head , typename Inode , typename _CIterator , typename Iterator , typename _Alloc > typedef _Alloc::template rebind<Node> __gnu_pbds::detail::pat_trie_base::_Node_citer< Node, Leaf, Head, Inode, _CIterator, Iterator, _Alloc >::__rebind_n [protected]

Definition at line 817 of file pat_trie_base.hpp.

template<typename Node , typename Leaf , typename Head , typename Inode , typename _CIterator , typename Iterator , typename _Alloc > typedef Node::a_const_iterator __gnu_pbds::detail::pat_trie_base::_Node_citer< Node, Leaf, Head, Inode, _CIterator, Iterator, _Alloc >::a_const_iterator [protected]

Definition at line 829 of file pat_trie_base.hpp.

template<typename Node , typename Leaf , typename Head , typename Inode , typename _CIterator , typename Iterator , typename _Alloc > typedef Node::a_const_pointer __gnu_pbds::detail::pat_trie_base::_Node_citer< Node, Leaf, Head, Inode, _CIterator, Iterator, _Alloc >::a_const_pointer [protected]

Definition at line 828 of file pat_trie_base.hpp.

template<typename Node , typename Leaf , typename Head , typename Inode , typename _CIterator , typename Iterator , typename _Alloc > typedef value_type __gnu_pbds::detail::pat_trie_base::_Node_citer< Node, Leaf, Head, Inode, _CIterator, Iterator, _Alloc >::const_reference

Definition at line 863 of file pat_trie_base.hpp.

template<typename Node , typename Leaf , typename Head , typename Inode , typename _CIterator , typename Iterator , typename _Alloc > typedef trivial_iterator_difference_type __gnu_pbds::detail::pat_trie_base::_Node_citer< Node, Leaf, Head, Inode, _CIterator, Iterator, _Alloc >::difference_type

Definition at line 858 of file pat_trie_base.hpp.

template<typename Node , typename Leaf , typename Head , typename Inode , typename _CIterator , typename Iterator , typename _Alloc > typedef __rebind_in::other::const_pointer __gnu_pbds::detail::pat_trie_base::_Node_citer< Node, Leaf, Head, Inode, _CIterator, Iterator, _Alloc >::inode_const_pointer [protected]

Definition at line 826 of file pat_trie_base.hpp.

template<typename Node , typename Leaf , typename Head , typename Inode , typename _CIterator , typename Iterator , typename _Alloc > typedef __rebind_in::other::pointer __gnu_pbds::detail::pat_trie_base::_Node_citer< Node, Leaf, Head, Inode, _CIterator, Iterator, _Alloc >::inode_pointer [protected]

Definition at line 825 of file pat_trie_base.hpp.

template<typename Node , typename Leaf , typename Head , typename Inode , typename _CIterator , typename Iterator , typename _Alloc > typedef trivial_iterator_tag __gnu_pbds::detail::pat_trie_base::_Node_citer< Node, Leaf, Head, Inode, _CIterator, Iterator, _Alloc >::iterator_category

Definition at line 857 of file pat_trie_base.hpp.

template<typename Node , typename Leaf , typename Head , typename Inode , typename _CIterator , typename Iterator , typename _Alloc > typedef __rebind_l::other::const_pointer __gnu_pbds::detail::pat_trie_base::_Node_citer< Node, Leaf, Head, Inode, _CIterator, Iterator, _Alloc >::leaf_const_pointer [protected]

Definition at line 822 of file pat_trie_base.hpp.

template<typename Node , typename Leaf , typename Head , typename Inode , typename _CIterator , typename Iterator , typename _Alloc > typedef __rebind_l::other::pointer __gnu_pbds::detail::pat_trie_base::_Node_citer< Node, Leaf, Head, Inode, _CIterator, Iterator, _Alloc >::leaf_pointer [protected]

Definition at line 821 of file pat_trie_base.hpp.

template<typename Node , typename Leaf , typename Head , typename Inode , typename _CIterator , typename Iterator , typename _Alloc > typedef __rebind_ma::const_reference __gnu_pbds::detail::pat_trie_base::_Node_citer< Node, Leaf, Head, Inode, _CIterator, Iterator, _Alloc >::metadata_const_reference

Definition at line 871 of file pat_trie_base.hpp.

template<typename Node , typename Leaf , typename Head , typename Inode , typename _CIterator , typename Iterator , typename _Alloc > typedef Node::metadata_type __gnu_pbds::detail::pat_trie_base::_Node_citer< Node, Leaf, Head, Inode, _CIterator, Iterator, _Alloc >::metadata_type

Metadata type.

Definition at line 866 of file pat_trie_base.hpp.

template<typename Node , typename Leaf , typename Head , typename Inode , typename _CIterator , typename Iterator , typename _Alloc > typedef __rebind_n::other::pointer __gnu_pbds::detail::pat_trie_base::_Node_citer< Node, Leaf, Head, Inode, _CIterator, Iterator, _Alloc >::node_pointer [protected]

Definition at line 818 of file pat_trie_base.hpp.

template<typename Node , typename Leaf , typename Head , typename Inode , typename _CIterator , typename Iterator , typename _Alloc > typedef value_type __gnu_pbds::detail::pat_trie_base::_Node_citer< Node, Leaf, Head, Inode, _CIterator, Iterator, _Alloc >::reference

Definition at line 862 of file pat_trie_base.hpp.

template<typename Node , typename Leaf , typename Head , typename Inode , typename _CIterator , typename Iterator , typename _Alloc > typedef _Alloc::size_type __gnu_pbds::detail::pat_trie_base::_Node_citer< Node, Leaf, Head, Inode, _CIterator, Iterator, _Alloc >::size_type

Definition at line 859 of file pat_trie_base.hpp.

template<typename Node , typename Leaf , typename Head , typename Inode , typename _CIterator , typename Iterator , typename _Alloc > typedef _CIterator __gnu_pbds::detail::pat_trie_base::_Node_citer< Node, Leaf, Head, Inode, _CIterator, Iterator, _Alloc >::value_type

Definition at line 861 of file pat_trie_base.hpp.

Constructor & Destructor Documentation

template<typename Node , typename Leaf , typename Head , typename Inode , typename _CIterator , typename Iterator , typename _Alloc > __gnu_pbds::detail::pat_trie_base::_Node_citer< Node, Leaf, Head, Inode, _CIterator, Iterator, _Alloc >::_Node_citer (node_pointer p_nd = 0, a_const_pointer p_traits = 0) [inline]

Definition at line 874 of file pat_trie_base.hpp.

Member Function Documentation

template<typename Node , typename Leaf , typename Head , typename Inode , typename _CIterator , typename Iterator , typename _Alloc > _Node_citer __gnu_pbds::detail::pat_trie_base::_Node_citer< Node, Leaf, Head, Inode, _CIterator, Iterator, _Alloc >::get_child (size_type i) const [inline]

Returns a __const node __iterator to the corresponding node's i-th child.

Definition at line 911 of file pat_trie_base.hpp.

References std::advance().

template<typename Node , typename Leaf , typename Head , typename Inode , typename _CIterator , typename Iterator , typename _Alloc > metadata_const_reference __gnu_pbds::detail::pat_trie_base::_Node_citer< Node, Leaf, Head, Inode, _CIterator, Iterator, _Alloc >::get_metadata () const [inline]

Metadata access.

Definition at line 894 of file pat_trie_base.hpp.

template<typename Node , typename Leaf , typename Head , typename Inode , typename _CIterator , typename Iterator , typename _Alloc > size_type __gnu_pbds::detail::pat_trie_base::_Node_citer< Node, Leaf, Head, Inode, _CIterator, Iterator, _Alloc >::num_children () const [inline]

Returns the number of children in the corresponding node.

Definition at line 899 of file pat_trie_base.hpp.

References std::distance().

Referenced by __gnu_pbds::detail::pat_trie_base::_Node_citer< Node, Leaf, Head, Inode, _CIterator, Iterator, _Alloc >::operator*(), and __gnu_pbds::detail::pat_trie_base::_Node_iter< Node, Leaf, Head, Inode, _CIterator, Iterator, _Alloc >::operator*().

template<typename Node , typename Leaf , typename Head , typename Inode , typename _CIterator , typename Iterator , typename _Alloc > bool __gnu_pbds::detail::pat_trie_base::_Node_citer< Node, Leaf, Head, Inode, _CIterator, Iterator, _Alloc >::operator!= (const _Node_citer< Node, Leaf, Head, Inode, _CIterator, Iterator, _Alloc > & other) const [inline]

Compares content (negatively) to a different iterator object.

Definition at line 927 of file pat_trie_base.hpp.

template<typename Node , typename Leaf , typename Head , typename Inode , typename _CIterator , typename Iterator , typename _Alloc > const_reference __gnu_pbds::detail::pat_trie_base::_Node_citer< Node, Leaf, Head, Inode, _CIterator, Iterator, _Alloc >::operator* () const [inline]

Const access; returns the __const iterator* associated with the current leaf.

Definition at line 886 of file pat_trie_base.hpp.

References __gnu_pbds::detail::pat_trie_base::_Node_citer< Node, Leaf, Head, Inode, _CIterator, Iterator, _Alloc >::num_children().

template<typename Node , typename Leaf , typename Head , typename Inode , typename _CIterator , typename Iterator , typename _Alloc > bool __gnu_pbds::detail::pat_trie_base::_Node_citer< Node, Leaf, Head, Inode, _CIterator, Iterator, _Alloc >::operator== (const _Node_citer< Node, Leaf, Head, Inode, _CIterator, Iterator, _Alloc > & other) const [inline]

Compares content to a different iterator object.

Definition at line 922 of file pat_trie_base.hpp.

template<typename Node , typename Leaf , typename Head , typename Inode , typename _CIterator , typename Iterator , typename _Alloc > std::pair< a_const_iterator, a_const_iterator > __gnu_pbds::detail::pat_trie_base::_Node_citer< Node, Leaf, Head, Inode, _CIterator, Iterator, _Alloc >::valid_prefix () const [inline]

Subtree valid prefix.

Definition at line 880 of file pat_trie_base.hpp.

References std::make_pair().

Member Data Documentation

template<typename Node , typename Leaf , typename Head , typename Inode , typename _CIterator , typename Iterator , typename _Alloc > node_pointer __gnu_pbds::detail::pat_trie_base::_Node_citer< Node, Leaf, Head, Inode, _CIterator, Iterator, _Alloc >::m_p_nd

Definition at line 930 of file pat_trie_base.hpp.

template<typename Node , typename Leaf , typename Head , typename Inode , typename _CIterator , typename Iterator , typename _Alloc > a_const_pointer __gnu_pbds::detail::pat_trie_base::_Node_citer< Node, Leaf, Head, Inode, _CIterator, Iterator, _Alloc >::m_p_traits

Definition at line 931 of file pat_trie_base.hpp.

Author

Generated automatically by Doxygen for libstdc++ from the source code.

libstdc++