NEST
2.6.0,not_revisioned_source_dir@0
|
#include <sparsetable.h>
Classes | |
class | Settings |
Public Types | |
typedef T | value_type |
typedef Alloc | allocator_type |
typedef value_alloc_type::size_type | size_type |
typedef value_alloc_type::difference_type | difference_type |
typedef value_alloc_type::reference | reference |
typedef value_alloc_type::const_reference | const_reference |
typedef value_alloc_type::pointer | pointer |
typedef value_alloc_type::const_pointer | const_pointer |
typedef table_iterator < sparsetable< T, GROUP_SIZE, Alloc > > | iterator |
typedef const_table_iterator < sparsetable< T, GROUP_SIZE, Alloc > > | const_iterator |
typedef table_element_adaptor < sparsetable< T, GROUP_SIZE, Alloc > > | element_adaptor |
typedef std::reverse_iterator < const_iterator > | const_reverse_iterator |
typedef std::reverse_iterator < iterator > | reverse_iterator |
typedef two_d_iterator < std::vector< sparsegroup < value_type, GROUP_SIZE, value_alloc_type > , vector_alloc > > | nonempty_iterator |
typedef const_two_d_iterator < std::vector< sparsegroup < value_type, GROUP_SIZE, value_alloc_type > , vector_alloc > > | const_nonempty_iterator |
typedef std::reverse_iterator < nonempty_iterator > | reverse_nonempty_iterator |
typedef std::reverse_iterator < const_nonempty_iterator > | const_reverse_nonempty_iterator |
typedef destructive_two_d_iterator < std::vector< sparsegroup < value_type, GROUP_SIZE, value_alloc_type > , vector_alloc > > | destructive_iterator |
typedef sparsegroup < value_type, GROUP_SIZE, allocator_type > | group_type |
typedef std::vector < group_type, vector_alloc > | group_vector_type |
typedef group_vector_type::reference | GroupsReference |
typedef group_vector_type::const_reference | GroupsConstReference |
typedef group_vector_type::iterator | GroupsIterator |
typedef group_vector_type::const_iterator | GroupsConstIterator |
typedef sparsehash_internal::pod_serializer < value_type > | NopointerSerializer |
Static Public Member Functions | |
static size_type | num_groups (size_type num) |
Private Types | |
typedef Alloc::template rebind < T >::other | value_alloc_type |
typedef Alloc::template rebind < sparsegroup< T, GROUP_SIZE, value_alloc_type > >::other | vector_alloc |
typedef unsigned long | MagicNumberType |
Static Private Member Functions | |
template<typename OUTPUT , typename IntType > | |
static bool | write_32_or_64 (OUTPUT *fp, IntType value) |
template<typename INPUT , typename IntType > | |
static bool | read_32_or_64 (INPUT *fp, IntType *value) |
Private Attributes | |
group_vector_type | groups |
Settings | settings |
Static Private Attributes | |
static const MagicNumberType | MAGIC_NUMBER = 0x24687531 |
typedef Alloc sparsetable< T, GROUP_SIZE, Alloc >::allocator_type |
typedef const_table_iterator<sparsetable<T, GROUP_SIZE, Alloc> > sparsetable< T, GROUP_SIZE, Alloc >::const_iterator |
typedef const_two_d_iterator< std::vector< sparsegroup<value_type, GROUP_SIZE, value_alloc_type>, vector_alloc> > sparsetable< T, GROUP_SIZE, Alloc >::const_nonempty_iterator |
typedef value_alloc_type::const_pointer sparsetable< T, GROUP_SIZE, Alloc >::const_pointer |
typedef value_alloc_type::const_reference sparsetable< T, GROUP_SIZE, Alloc >::const_reference |
typedef std::reverse_iterator<const_iterator> sparsetable< T, GROUP_SIZE, Alloc >::const_reverse_iterator |
typedef std::reverse_iterator<const_nonempty_iterator> sparsetable< T, GROUP_SIZE, Alloc >::const_reverse_nonempty_iterator |
typedef destructive_two_d_iterator< std::vector< sparsegroup<value_type, GROUP_SIZE, value_alloc_type>, vector_alloc> > sparsetable< T, GROUP_SIZE, Alloc >::destructive_iterator |
typedef value_alloc_type::difference_type sparsetable< T, GROUP_SIZE, Alloc >::difference_type |
typedef table_element_adaptor<sparsetable<T, GROUP_SIZE, Alloc> > sparsetable< T, GROUP_SIZE, Alloc >::element_adaptor |
typedef sparsegroup<value_type, GROUP_SIZE, allocator_type> sparsetable< T, GROUP_SIZE, Alloc >::group_type |
typedef std::vector<group_type, vector_alloc > sparsetable< T, GROUP_SIZE, Alloc >::group_vector_type |
typedef group_vector_type::const_iterator sparsetable< T, GROUP_SIZE, Alloc >::GroupsConstIterator |
typedef group_vector_type::const_reference sparsetable< T, GROUP_SIZE, Alloc >::GroupsConstReference |
typedef group_vector_type::iterator sparsetable< T, GROUP_SIZE, Alloc >::GroupsIterator |
typedef group_vector_type::reference sparsetable< T, GROUP_SIZE, Alloc >::GroupsReference |
typedef table_iterator<sparsetable<T, GROUP_SIZE, Alloc> > sparsetable< T, GROUP_SIZE, Alloc >::iterator |
|
private |
typedef two_d_iterator< std::vector< sparsegroup<value_type, GROUP_SIZE, value_alloc_type>, vector_alloc> > sparsetable< T, GROUP_SIZE, Alloc >::nonempty_iterator |
typedef sparsehash_internal::pod_serializer<value_type> sparsetable< T, GROUP_SIZE, Alloc >::NopointerSerializer |
typedef value_alloc_type::pointer sparsetable< T, GROUP_SIZE, Alloc >::pointer |
typedef value_alloc_type::reference sparsetable< T, GROUP_SIZE, Alloc >::reference |
typedef std::reverse_iterator<iterator> sparsetable< T, GROUP_SIZE, Alloc >::reverse_iterator |
typedef std::reverse_iterator<nonempty_iterator> sparsetable< T, GROUP_SIZE, Alloc >::reverse_nonempty_iterator |
typedef value_alloc_type::size_type sparsetable< T, GROUP_SIZE, Alloc >::size_type |
|
private |
typedef T sparsetable< T, GROUP_SIZE, Alloc >::value_type |
|
private |
|
inlineexplicit |
|
inline |
|
inline |
|
inline |
|
inline |
References sparsetable< T, GROUP_SIZE, Alloc >::groups.
|
inline |
References sparsetable< T, GROUP_SIZE, Alloc >::groups.
|
inline |
|
inline |
References sparsetable< T, GROUP_SIZE, Alloc >::size().
Referenced by sparsetable< T, GROUP_SIZE, Alloc >::operator<(), and sparsetable< T, GROUP_SIZE, Alloc >::rbegin().
|
inline |
References sparsetable< T, GROUP_SIZE, Alloc >::size().
|
inline |
References assert(), sparsetable< T, GROUP_SIZE, Alloc >::Settings::num_buckets, sparsetable< T, GROUP_SIZE, Alloc >::pos_in_group(), sparsetable< T, GROUP_SIZE, Alloc >::settings, sparsetable< T, GROUP_SIZE, Alloc >::Settings::table_size, and sparsetable< T, GROUP_SIZE, Alloc >::which_group().
Referenced by sparsetable< T, GROUP_SIZE, Alloc >::erase().
|
inline |
|
inline |
References sparsetable< T, GROUP_SIZE, Alloc >::erase().
|
inline |
|
inline |
References sparsetable< T, GROUP_SIZE, Alloc >::settings.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
References sparsetable< T, GROUP_SIZE, Alloc >::settings.
|
inline |
|
inline |
References sparsetable< T, GROUP_SIZE, Alloc >::groups.
Referenced by sparsetable< T, GROUP_SIZE, Alloc >::nonempty_rend(), sparsetable< T, GROUP_SIZE, Alloc >::read_nopointer_data(), sparsetable< T, GROUP_SIZE, Alloc >::serialize(), sparsetable< T, GROUP_SIZE, Alloc >::unserialize(), and sparsetable< T, GROUP_SIZE, Alloc >::write_nopointer_data().
|
inline |
References sparsetable< T, GROUP_SIZE, Alloc >::groups.
|
inline |
References sparsetable< T, GROUP_SIZE, Alloc >::groups.
Referenced by sparsetable< T, GROUP_SIZE, Alloc >::nonempty_rbegin(), sparsetable< T, GROUP_SIZE, Alloc >::read_nopointer_data(), sparsetable< T, GROUP_SIZE, Alloc >::serialize(), sparsetable< T, GROUP_SIZE, Alloc >::unserialize(), and sparsetable< T, GROUP_SIZE, Alloc >::write_nopointer_data().
|
inline |
References sparsetable< T, GROUP_SIZE, Alloc >::groups.
|
inline |
|
inline |
|
inline |
|
inline |
|
inlinestatic |
|
inline |
|
inline |
References nest::names::x.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
References nest::names::x.
|
inline |
|
inline |
|
inline |
Referenced by sparsetable< T, GROUP_SIZE, Alloc >::erase(), sparsetable< T, GROUP_SIZE, Alloc >::get(), sparsetable< T, GROUP_SIZE, Alloc >::get_iter(), sparsetable< T, GROUP_SIZE, Alloc >::mutating_get(), sparsetable< T, GROUP_SIZE, Alloc >::resize(), sparsetable< T, GROUP_SIZE, Alloc >::set(), sparsetable< T, GROUP_SIZE, Alloc >::test(), and sparsetable< T, GROUP_SIZE, Alloc >::unsafe_get().
|
inline |
References sparsetable< T, GROUP_SIZE, Alloc >::end().
|
inline |
References sparsetable< T, GROUP_SIZE, Alloc >::end().
|
inlinestaticprivate |
References sparsehash_internal::read_bigendian_number().
Referenced by sparsetable< T, GROUP_SIZE, Alloc >::read_metadata().
|
inline |
References sparsetable< T, GROUP_SIZE, Alloc >::clear(), sparsetable< T, GROUP_SIZE, Alloc >::groups, sparsetable< T, GROUP_SIZE, Alloc >::MAGIC_NUMBER, sparsetable< T, GROUP_SIZE, Alloc >::Settings::num_buckets, sparsetable< T, GROUP_SIZE, Alloc >::read_32_or_64(), sparsetable< T, GROUP_SIZE, Alloc >::resize(), sparsetable< T, GROUP_SIZE, Alloc >::settings, and sparsetable< T, GROUP_SIZE, Alloc >::Settings::table_size.
Referenced by sparsetable< T, GROUP_SIZE, Alloc >::unserialize().
|
inline |
|
inline |
References sparsetable< T, GROUP_SIZE, Alloc >::begin().
|
inline |
References sparsetable< T, GROUP_SIZE, Alloc >::begin().
|
inline |
References sparsetable< T, GROUP_SIZE, Alloc >::groups, sparsetable< T, GROUP_SIZE, Alloc >::Settings::num_buckets, sparsetable< T, GROUP_SIZE, Alloc >::num_groups(), sparsetable< T, GROUP_SIZE, Alloc >::pos_in_group(), sparsetable< T, GROUP_SIZE, Alloc >::settings, and sparsetable< T, GROUP_SIZE, Alloc >::Settings::table_size.
Referenced by sparsetable< T, GROUP_SIZE, Alloc >::read_metadata().
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
References assert(), sparsetable< T, GROUP_SIZE, Alloc >::pos_in_group(), sparsetable< T, GROUP_SIZE, Alloc >::settings, sparsetable< T, GROUP_SIZE, Alloc >::Settings::table_size, and sparsetable< T, GROUP_SIZE, Alloc >::which_group().
Referenced by sparsetable< T, GROUP_SIZE, Alloc >::get_iter(), and sparsetable< T, GROUP_SIZE, Alloc >::unsafe_get().
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
References sparsetable< T, GROUP_SIZE, Alloc >::group_num(), and sparsetable< T, GROUP_SIZE, Alloc >::groups.
Referenced by sparsetable< T, GROUP_SIZE, Alloc >::erase(), sparsetable< T, GROUP_SIZE, Alloc >::get(), sparsetable< T, GROUP_SIZE, Alloc >::mutating_get(), sparsetable< T, GROUP_SIZE, Alloc >::set(), sparsetable< T, GROUP_SIZE, Alloc >::test(), and sparsetable< T, GROUP_SIZE, Alloc >::unsafe_get().
|
inline |
|
inlinestaticprivate |
References sparsehash_internal::write_bigendian_number().
Referenced by sparsetable< T, GROUP_SIZE, Alloc >::write_metadata().
|
inline |
References sparsetable< T, GROUP_SIZE, Alloc >::groups, sparsetable< T, GROUP_SIZE, Alloc >::MAGIC_NUMBER, sparsetable< T, GROUP_SIZE, Alloc >::Settings::num_buckets, sparsetable< T, GROUP_SIZE, Alloc >::settings, sparsetable< T, GROUP_SIZE, Alloc >::Settings::table_size, and sparsetable< T, GROUP_SIZE, Alloc >::write_32_or_64().
Referenced by sparsetable< T, GROUP_SIZE, Alloc >::serialize().
|
inline |
|
private |
Referenced by sparsetable< T, GROUP_SIZE, Alloc >::clear(), sparsetable< T, GROUP_SIZE, Alloc >::destructive_begin(), sparsetable< T, GROUP_SIZE, Alloc >::destructive_end(), sparsetable< T, GROUP_SIZE, Alloc >::get_iter(), sparsetable< T, GROUP_SIZE, Alloc >::get_pos(), sparsetable< T, GROUP_SIZE, Alloc >::nonempty_begin(), sparsetable< T, GROUP_SIZE, Alloc >::nonempty_end(), sparsetable< T, GROUP_SIZE, Alloc >::operator==(), sparsetable< T, GROUP_SIZE, Alloc >::read_metadata(), sparsetable< T, GROUP_SIZE, Alloc >::resize(), sparsetable< T, GROUP_SIZE, Alloc >::sparsetable(), sparsetable< T, GROUP_SIZE, Alloc >::swap(), sparsetable< T, GROUP_SIZE, Alloc >::which_group(), and sparsetable< T, GROUP_SIZE, Alloc >::write_metadata().
|
staticprivate |
|
private |
Referenced by sparsetable< T, GROUP_SIZE, Alloc >::clear(), sparsetable< T, GROUP_SIZE, Alloc >::empty(), sparsetable< T, GROUP_SIZE, Alloc >::erase(), sparsetable< T, GROUP_SIZE, Alloc >::get(), sparsetable< T, GROUP_SIZE, Alloc >::get_allocator(), sparsetable< T, GROUP_SIZE, Alloc >::max_size(), sparsetable< T, GROUP_SIZE, Alloc >::mutating_get(), sparsetable< T, GROUP_SIZE, Alloc >::num_nonempty(), sparsetable< T, GROUP_SIZE, Alloc >::operator==(), sparsetable< T, GROUP_SIZE, Alloc >::read_metadata(), sparsetable< T, GROUP_SIZE, Alloc >::resize(), sparsetable< T, GROUP_SIZE, Alloc >::set(), sparsetable< T, GROUP_SIZE, Alloc >::size(), sparsetable< T, GROUP_SIZE, Alloc >::sparsetable(), sparsetable< T, GROUP_SIZE, Alloc >::swap(), sparsetable< T, GROUP_SIZE, Alloc >::test(), sparsetable< T, GROUP_SIZE, Alloc >::unsafe_get(), and sparsetable< T, GROUP_SIZE, Alloc >::write_metadata().