proxygen
|
#include <small_vector.h>
Classes | |
union | Data |
struct | HeapPtr |
struct | HeapPtrWithCapacity |
Public Types | |
typedef std::size_t | size_type |
typedef Value | value_type |
typedef value_type & | reference |
typedef value_type const & | const_reference |
typedef value_type * | iterator |
typedef value_type * | pointer |
typedef value_type const * | const_iterator |
typedef value_type const * | const_pointer |
typedef std::ptrdiff_t | difference_type |
typedef std::reverse_iterator< iterator > | reverse_iterator |
typedef std::reverse_iterator< const_iterator > | const_reverse_iterator |
Static Public Member Functions | |
static constexpr size_type | max_size () |
Private Types | |
typedef detail::small_vector_base< Value, RequestedMaxInline, PolicyA, PolicyB, PolicyC >::type | BaseType |
typedef BaseType::InternalSizeType | InternalSizeType |
typedef std::aligned_storage< sizeof(value_type)*MaxInline, alignof(value_type)>::type | InlineStorageDataType |
typedef std::conditional< sizeof(value_type)*MaxInline!=0, InlineStorageDataType, void * >::type | InlineStorageType |
typedef std::conditional< kHasInlineCapacity, HeapPtrWithCapacity, HeapPtr >::type | PointerType |
Private Member Functions | |
template<class It > | |
iterator | insertImpl (iterator pos, It first, It last, std::false_type) |
iterator | insertImpl (iterator pos, size_type n, const value_type &val, std::true_type) |
template<class It > | |
void | constructImpl (It first, It last, std::false_type) |
template<typename InitFunc > | |
void | doConstruct (size_type n, InitFunc &&func) |
void | constructImpl (size_type n, value_type const &val, std::true_type) |
size_type | computeNewSize () const |
void | makeSize (size_type newSize) |
template<typename EmplaceFunc > | |
void | makeSize (size_type newSize, EmplaceFunc &&emplaceFunc, size_type pos) |
template<typename EmplaceFunc > | |
void | makeSizeInternal (size_type newSize, bool insert, EmplaceFunc &&emplaceFunc, size_type pos) |
void | setCapacity (size_type newCapacity) |
Static Private Member Functions | |
static iterator | unconst (const_iterator it) |
Private Attributes | |
union folly::small_vector::Data | u |
Static Private Attributes | |
static constexpr std::size_t | MaxInline |
static bool constexpr | kHasInlineCapacity |
static size_t constexpr | kHeapifyCapacitySize |
static size_t constexpr | kHeapifyCapacityThreshold |
Definition at line 92 of file small_vector.h.
|
private |
Definition at line 411 of file small_vector.h.
typedef value_type const* folly::small_vector< Value, RequestedMaxInline, PolicyA, PolicyB, PolicyC >::const_iterator |
Definition at line 429 of file small_vector.h.
typedef value_type const* folly::small_vector< Value, RequestedMaxInline, PolicyA, PolicyB, PolicyC >::const_pointer |
Definition at line 430 of file small_vector.h.
typedef value_type const& folly::small_vector< Value, RequestedMaxInline, PolicyA, PolicyB, PolicyC >::const_reference |
Definition at line 426 of file small_vector.h.
typedef std::reverse_iterator<const_iterator> folly::small_vector< Value, RequestedMaxInline, PolicyA, PolicyB, PolicyC >::const_reverse_iterator |
Definition at line 434 of file small_vector.h.
typedef std::ptrdiff_t folly::small_vector< Value, RequestedMaxInline, PolicyA, PolicyB, PolicyC >::difference_type |
Definition at line 431 of file small_vector.h.
|
private |
Definition at line 1129 of file small_vector.h.
|
private |
Definition at line 1134 of file small_vector.h.
|
private |
Definition at line 412 of file small_vector.h.
typedef value_type* folly::small_vector< Value, RequestedMaxInline, PolicyA, PolicyB, PolicyC >::iterator |
Definition at line 427 of file small_vector.h.
typedef value_type* folly::small_vector< Value, RequestedMaxInline, PolicyA, PolicyB, PolicyC >::pointer |
Definition at line 428 of file small_vector.h.
|
private |
Definition at line 1150 of file small_vector.h.
typedef value_type& folly::small_vector< Value, RequestedMaxInline, PolicyA, PolicyB, PolicyC >::reference |
Definition at line 425 of file small_vector.h.
typedef std::reverse_iterator<iterator> folly::small_vector< Value, RequestedMaxInline, PolicyA, PolicyB, PolicyC >::reverse_iterator |
Definition at line 433 of file small_vector.h.
typedef std::size_t folly::small_vector< Value, RequestedMaxInline, PolicyA, PolicyB, PolicyC >::size_type |
Definition at line 423 of file small_vector.h.
typedef Value folly::small_vector< Value, RequestedMaxInline, PolicyA, PolicyB, PolicyC >::value_type |
Definition at line 424 of file small_vector.h.
|
default |
|
inline |
Definition at line 439 of file small_vector.h.
|
inline |
Definition at line 441 of file small_vector.h.
|
inlinenoexcept |
Definition at line 455 of file small_vector.h.
|
inline |
Definition at line 468 of file small_vector.h.
|
inlineexplicit |
Definition at line 472 of file small_vector.h.
|
inline |
Definition at line 476 of file small_vector.h.
|
inlineexplicit |
Definition at line 481 of file small_vector.h.
|
inline |
Definition at line 488 of file small_vector.h.
|
inline |
Definition at line 846 of file small_vector.h.
Referenced by TEST().
|
inline |
Definition at line 851 of file small_vector.h.
|
inline |
Definition at line 855 of file small_vector.h.
|
inline |
Definition at line 887 of file small_vector.h.
|
inline |
Definition at line 894 of file small_vector.h.
|
inline |
|
inline |
Definition at line 872 of file small_vector.h.
|
inline |
Definition at line 534 of file small_vector.h.
Referenced by folly::small_vector< Observer< T > *, InlineObservers >::operator<(), folly::small_vector< Observer< T > *, InlineObservers >::operator=(), folly::small_vector< Observer< T > *, InlineObservers >::operator==(), folly::small_vector< Observer< T > *, InlineObservers >::small_vector(), and TEST().
|
inline |
Definition at line 540 of file small_vector.h.
|
inline |
Definition at line 722 of file small_vector.h.
Referenced by folly::small_vector< Observer< T > *, InlineObservers >::swap(), and TEST().
|
inline |
Definition at line 546 of file small_vector.h.
|
inline |
Definition at line 549 of file small_vector.h.
|
inline |
Definition at line 841 of file small_vector.h.
|
inlineprivate |
Definition at line 989 of file small_vector.h.
|
inlineprivate |
Definition at line 941 of file small_vector.h.
|
inlineprivate |
Definition at line 982 of file small_vector.h.
|
inline |
Definition at line 568 of file small_vector.h.
|
inline |
Definition at line 571 of file small_vector.h.
|
inlinenoexcept |
Definition at line 684 of file small_vector.h.
|
inlinenoexcept |
Definition at line 688 of file small_vector.h.
|
inlineprivate |
Definition at line 967 of file small_vector.h.
|
inline |
Definition at line 693 of file small_vector.h.
Referenced by TEST().
|
inline |
|
inline |
|
inline |
|
inline |
Definition at line 543 of file small_vector.h.
|
inline |
Definition at line 822 of file small_vector.h.
Referenced by TEST().
|
inline |
Definition at line 829 of file small_vector.h.
|
inline |
|
inline |
Definition at line 868 of file small_vector.h.
|
inline |
Definition at line 769 of file small_vector.h.
Referenced by TEST().
|
inline |
Definition at line 794 of file small_vector.h.
|
inline |
Definition at line 800 of file small_vector.h.
|
inline |
Definition at line 811 of file small_vector.h.
|
inline |
Definition at line 818 of file small_vector.h.
|
inlineprivate |
Definition at line 909 of file small_vector.h.
|
inlineprivate |
Definition at line 931 of file small_vector.h.
|
inlineprivate |
Definition at line 993 of file small_vector.h.
|
inlineprivate |
Definition at line 998 of file small_vector.h.
|
inlineprivate |
Definition at line 1015 of file small_vector.h.
|
inlinestatic |
|
inline |
Definition at line 518 of file small_vector.h.
|
inline |
Definition at line 497 of file small_vector.h.
|
inline |
Definition at line 504 of file small_vector.h.
|
inline |
Definition at line 514 of file small_vector.h.
|
inline |
Definition at line 877 of file small_vector.h.
|
inline |
Definition at line 882 of file small_vector.h.
|
inline |
Definition at line 765 of file small_vector.h.
|
inline |
Definition at line 757 of file small_vector.h.
Referenced by wangle::Observable< T >::forEachObserver(), wangle::Observable< T >::observe(), and TEST().
|
inline |
Definition at line 761 of file small_vector.h.
|
inline |
Definition at line 553 of file small_vector.h.
|
inline |
Definition at line 560 of file small_vector.h.
|
inline |
Definition at line 556 of file small_vector.h.
|
inline |
Definition at line 564 of file small_vector.h.
|
inline |
|
inline |
Definition at line 662 of file small_vector.h.
Referenced by TEST().
|
inline |
Definition at line 673 of file small_vector.h.
|
inlineprivate |
Definition at line 1092 of file small_vector.h.
Referenced by folly::small_vector< Observer< T > *, InlineObservers >::swap().
|
inline |
|
inline |
|
inline |
Definition at line 583 of file small_vector.h.
Referenced by folly::small_vector< Observer< T > *, InlineObservers >::shrink_to_fit(), and folly::swap().
|
inlinestaticprivate |
Definition at line 902 of file small_vector.h.
|
staticprivate |
Definition at line 1136 of file small_vector.h.
|
staticprivate |
Definition at line 1140 of file small_vector.h.
|
staticprivate |
Definition at line 1145 of file small_vector.h.
|
staticprivate |
Definition at line 419 of file small_vector.h.
|
private |