|
xapian-core
2.0.0
|
#include <smallvector.h>
Inheritance diagram for Xapian::SmallVector_:Public Member Functions | |
| SmallVector_ () | |
| SmallVector_ (const SmallVector_ &)=delete | |
| void | operator= (const SmallVector_ &)=delete |
| SmallVector_ (SmallVector_ &&o) noexcept | |
| SmallVector_ (std::size_t n) | |
| std::size_t | size () const |
| std::size_t | capacity () const |
| bool | empty () const |
| void | reserve (std::size_t n) |
Protected Member Functions | |
| void | do_free () |
| void | do_reserve (std::size_t n) |
| void | do_clear () |
| bool | is_external () const |
| Return true if storage is external to the object. More... | |
| void *const * | do_begin () const |
| void *const * | do_end () const |
| void | do_push_back (void *elt) |
Private Attributes | |
| std::size_t | c = 0 |
| void * | p [INTERNAL_CAPACITY] |
Static Private Attributes | |
| static constexpr std::size_t | INTERNAL_CAPACITY = 2 |
Definition at line 413 of file smallvector.h.
|
inline |
Definition at line 421 of file smallvector.h.
|
delete |
|
inlinenoexcept |
Definition at line 429 of file smallvector.h.
|
inlineexplicit |
Definition at line 434 of file smallvector.h.
References reserve().
|
inline |
Definition at line 446 of file smallvector.h.
References c, INTERNAL_CAPACITY, and is_external().
Referenced by do_push_back().
|
inlineprotected |
Definition at line 476 of file smallvector.h.
References is_external(), and p.
Referenced by Xapian::SmallVectorI< TI >::begin().
|
inlineprotected |
Definition at line 465 of file smallvector.h.
References c, do_free(), and is_external().
Referenced by Xapian::SmallVectorI< TI >::clear().
|
inlineprotected |
Definition at line 480 of file smallvector.h.
References c, is_external(), and p.
Referenced by Xapian::SmallVectorI< TI >::end().
|
protected |
|
inlineprotected |
Definition at line 484 of file smallvector.h.
References c, capacity(), do_reserve(), INTERNAL_CAPACITY, p, and size().
Referenced by Xapian::SmallVectorI< TI >::push_back().
|
protected |
Definition at line 32 of file smallvector.cc.
References c, is_external(), p, and rare.
Referenced by do_push_back(), and reserve().
|
inline |
Definition at line 450 of file smallvector.h.
References c, is_external(), and p.
Referenced by Xapian::Internal::QueryAndNot::add_subquery(), Xapian::Internal::QueryAndMaybe::add_subquery(), Xapian::Internal::QueryAndLike::done(), Xapian::Internal::QueryOrLike::done(), and Xapian::Internal::QuerySynonym::done().
|
inlineprotected |
Return true if storage is external to the object.
Definition at line 472 of file smallvector.h.
References c, and INTERNAL_CAPACITY.
Referenced by capacity(), do_begin(), do_clear(), do_end(), do_reserve(), empty(), and size().
|
delete |
|
inline |
Definition at line 454 of file smallvector.h.
References c, do_reserve(), and INTERNAL_CAPACITY.
Referenced by MultiDatabase::reserve(), and SmallVector_().
|
inline |
Definition at line 438 of file smallvector.h.
References c, is_external(), and p.
Referenced by Xapian::Internal::QueryAndLike::add_subquery(), Xapian::Internal::QueryAndMaybe::add_subquery(), Xapian::Internal::QueryBranch::do_bool_or_like(), Xapian::Internal::QueryBranch::do_max(), Xapian::Internal::QueryBranch::do_or_like(), do_push_back(), Xapian::Internal::QueryBranch::do_synonym(), Xapian::Internal::QueryAndLike::done(), Xapian::Internal::QueryOrLike::done(), Xapian::Internal::QueryAndNot::done(), Xapian::Internal::QueryAndMaybe::done(), Xapian::Internal::QueryWindowed::done(), Xapian::Internal::QuerySynonym::done(), Xapian::Internal::QuerySynonym::get_description(), Xapian::Internal::QueryBranch::get_num_subqueries(), Xapian::Internal::QueryAndLike::postlist(), Xapian::Internal::QueryOr::postlist(), Xapian::Internal::QueryXor::postlist(), Xapian::Internal::QueryFilter::postlist(), Xapian::Internal::QueryEliteSet::postlist(), Xapian::Internal::QueryAndNot::postlist_sub_and_like(), Xapian::Internal::QueryAndMaybe::postlist_sub_and_like(), Xapian::Internal::QueryWindowed::postlist_windowed(), and Xapian::Internal::QueryBranch::serialise_().
|
private |
Definition at line 414 of file smallvector.h.
Referenced by capacity(), do_clear(), do_end(), do_push_back(), do_reserve(), empty(), is_external(), reserve(), size(), and SmallVector_().
|
staticconstexprprivate |
Definition at line 416 of file smallvector.h.
Referenced by capacity(), do_push_back(), is_external(), and reserve().
|
private |
Definition at line 418 of file smallvector.h.
Referenced by do_begin(), do_end(), do_push_back(), do_reserve(), empty(), size(), and SmallVector_().