|
Aleph-w 7.10.0
A C++ Library for Data Structures and Algorithms
|
Classes | |
| struct | BPlusTreeNode |
| struct | BTreeNode |
| struct | is_stream_insertable |
| struct | is_stream_insertable< T, std::void_t< decltype(std::declval< std::ostringstream & >()<< std::declval< T >())> > |
| struct | Ordered_Tree_Snapshot_Header |
| struct | Paged_Bounded_String_Codec |
| struct | Paged_Value_Codec |
| struct | Paged_Value_Codec< std::array< T, N > > |
| struct | Paged_Value_Codec< T > |
| struct | PersistentTreapNodeOps |
| class | Pid_File_Lock |
| struct | SPP_ITri |
| struct | SPP_Portal |
Concepts | |
| concept | Fixed_Paged_Value_Codec |
Enumerations | |
| enum class | Pid_File_Lock_Mode : std::uint8_t { Shared , Exclusive } |
Functions | |
| void | build_msg_impl (std::ostringstream &) |
| template<typename T , typename... Args> | |
| void | build_msg_impl (std::ostringstream &stream, T &&value, Args &&... rest) |
| template<typename Container , typename Pred > | |
| bool | fallback_all_of (const Container &c, Pred &&pred) |
| template<typename Container , typename Pred > | |
| bool | fallback_any_of (const Container &c, Pred &&pred) |
| template<typename Container , typename Pred > | |
| bool | fallback_none_of (const Container &c, Pred &&pred) |
| template<typename Container , typename T , typename BinaryOp > | |
| constexpr T | ranges_fold_left (Container &&c, T init, BinaryOp &&op) |
| Fallback fold_left using range-based for loop. | |
| template<typename Container , typename Pred > | |
| bool | ranges_all_of (const Container &c, Pred &&pred) |
| Fallback all_of using range-based for loop. | |
| template<typename Container , typename Pred > | |
| bool | ranges_any_of (const Container &c, Pred &&pred) |
| Fallback any_of using range-based for loop. | |
| template<typename Container , typename Pred > | |
| bool | ranges_none_of (const Container &c, Pred &&pred) |
| Fallback none_of using range-based for loop. | |
| template<typename Container , typename Pred > | |
| auto | ranges_count_if (const Container &c, Pred &&pred) |
| Fallback count_if using range-based for loop. | |
| uint64_t | pollard_rho_step (const uint64_t n, const uint64_t seed, const uint64_t c) |
| Inner function for Pollard's rho algorithm. | |
| uint64_t | find_any_factor (const uint64_t n) |
| Helper to repeatedly apply Pollard's rho until a factor is found. | |
| void | extract_prime_factors (const uint64_t n, Array< uint64_t > &factors) |
| Recursive extraction of all prime factors. | |
| bool | check_composite (uint64_t n, uint64_t a, uint64_t d, int s) noexcept |
| Helper function for Miller-Rabin test. | |
| std::string | tikz_palette_color (const size_t idx) |
| size_t | spp_find_index (const Array< Point > &pts, const Point &p) |
| Array< SPP_ITri > | spp_build_tris (const Array< Point > &pts, const DynList< Triangle > &tl) |
| bool | spp_point_in_triangle (const Array< Point > &pts, const SPP_ITri &t, const Point &p) |
| size_t | spp_find_tri (const Array< Point > &pts, const Array< SPP_ITri > &tris, const Point &p) |
| Array< size_t > | spp_find_sleeve (const Array< SPP_ITri > &tris, const size_t src, const size_t dst) |
| Geom_Number | spp_cross (const Point &a, const Point &b, const Point &c) |
| Array< SPP_Portal > | shortest_path_portals (const Polygon &polygon, const Point &source, const Point &target) |
| template<typename Compare , typename Key > | |
| bool | equiv (const Compare &cmp, const Key &lhs, const Key &rhs) |
| template<typename Compare , typename Key > | |
| bool | bplus_equiv (const Compare &cmp, const Key &lhs, const Key &rhs) |
| void | sync_parent_directory (const std::string &path, const char *kind) |
| void | sync_file_by_path (const std::string &path, const char *kind) |
| void | sync_file_descriptor (const int fd, const std::string &path, const char *kind) |
| void | remove_file_if_exists (const std::string &path, const char *kind) |
| void | rename_file_atomic (const std::string &src, const std::string &dst, const char *kind) |
| void | copy_file_contents (const std::string &src, const std::string &dst, const char *kind) |
| std::uint32_t | crc32_begin () noexcept |
| std::uint32_t | crc32_add_bytes (std::uint32_t crc, const void *data, const size_t size) noexcept |
| template<typename T > | |
| std::uint32_t | crc32_add (std::uint32_t crc, const T &value) noexcept |
| std::uint32_t | crc32_finish (const std::uint32_t crc) noexcept |
| long long | current_process_id () noexcept |
| bool | process_is_alive (const long long pid) noexcept |
| constexpr std::uint32_t | mix_codec_id (const std::uint32_t seed, const std::uint32_t value) noexcept |
| template<typename UInt > requires (std::is_unsigned_v<UInt>) | |
| void | encode_unsigned_le (UInt value, unsigned char *out) noexcept |
| template<typename UInt > requires (std::is_unsigned_v<UInt>) | |
| UInt | decode_unsigned_le (const unsigned char *in) noexcept |
| std::uint64_t | persistent_treap_priority (const std::uint64_t n) noexcept |
| template<size_t N> | |
| constexpr std::array< char, Ordered_Tree_Snapshot_Magic_Size > | ordered_tree_snapshot_magic (const char(&text)[N]) noexcept |
| bool | ordered_tree_snapshot_exists (const std::string &file_path) |
| void | ensure_ordered_tree_snapshot_parent_dir (const std::string &file_path, const char *kind) |
| template<typename Key > | |
| Key | ordered_tree_read_key (std::istream &in, const std::string &file_path, const char *kind, const std::uint64_t index) |
| template<typename Key > | |
| void | ordered_tree_write_key (std::ostream &out, const Key &key, const std::string &file_path, const char *kind, const std::uint64_t index) |
| void | ordered_tree_validate_header (const Ordered_Tree_Snapshot_Header &header, const std::array< char, Ordered_Tree_Snapshot_Magic_Size > &expected_magic, const std::uint32_t expected_key_size, const std::uint64_t expected_min_degree, const std::string &file_path, const char *kind) |
| template<typename Key > | |
| Array< Key > | load_ordered_tree_snapshot (const std::string &file_path, const std::array< char, Ordered_Tree_Snapshot_Magic_Size > &expected_magic, const std::uint64_t expected_min_degree, const char *kind) |
| template<typename Key > | |
| void | save_ordered_tree_snapshot (const std::string &file_path, const std::array< char, Ordered_Tree_Snapshot_Magic_Size > &expected_magic, const std::uint64_t expected_min_degree, const Array< Key > &keys, const char *kind) |
Variables | |
| constexpr size_t | tm_epoch_year = 1900u |
| constexpr size_t | max_supported_year |
| constexpr time_t | seconds_per_day |
| template<typename... Args> | |
| constexpr bool | are_stream_insertable_v |
| constexpr size_t | SPP_NONE = ~static_cast<size_t>(0) |
| constexpr size_t | Ordered_Tree_Snapshot_Magic_Size = 16 |
| constexpr std::uint32_t | Ordered_Tree_Snapshot_Version = 1 |
|
strong |
| Enumerator | |
|---|---|
| Shared | |
| Exclusive | |
Definition at line 83 of file tpl_paged_tree_durability.H.
| bool Aleph::detail::bplus_equiv | ( | const Compare & | cmp, |
| const Key & | lhs, | ||
| const Key & | rhs | ||
| ) |
Definition at line 70 of file tpl_bplus_tree.H.
References Aleph::and, and cmp().
Referenced by Aleph::Gen_BPlus_Tree< Key, Compare, MinDegree >::equals().
|
inline |
Definition at line 56 of file ah-msg.H.
Referenced by build_msg_impl().
|
inline |
Definition at line 59 of file ah-msg.H.
References build_msg_impl(), and value.
|
inlinenoexcept |
Helper function for Miller-Rabin test.
Checks if 'a' is a composite witness for 'n'.
| n | The number being tested. |
| a | The base to test. |
| d | The odd part of n-1 (n-1 = d * 2^s). |
| s | The power of 2 dividing n-1. |
Definition at line 63 of file primality.H.
References Aleph::mod_exp(), Aleph::mod_mul(), and r.
Referenced by Aleph::miller_rabin().
|
inline |
Definition at line 174 of file tpl_paged_tree_durability.H.
References ah_runtime_error_unless, Aleph::and, Aleph::count(), out, sync_file_by_path(), and sync_parent_directory().
Referenced by Aleph::Gen_File_B_Tree< Key, Compare, MinDegree, Codec >::recover_if_needed(), and Aleph::Gen_File_BPlus_Tree< Key, Compare, MinDegree, Codec >::recover_if_needed().
|
inlinenoexcept |
Definition at line 230 of file tpl_paged_tree_durability.H.
References crc32_add_bytes(), and value.
Referenced by Aleph::Gen_File_BPlus_Tree< Key, Compare, MinDegree, Codec >::header_checksum(), Aleph::Gen_File_B_Tree< Key, Compare, MinDegree, Codec >::header_checksum(), Aleph::Gen_File_BPlus_Tree< Key, Compare, MinDegree, Codec >::header_checksum_v2(), Aleph::Gen_File_B_Tree< Key, Compare, MinDegree, Codec >::header_checksum_v2(), Aleph::Gen_File_B_Tree< Key, Compare, MinDegree, Codec >::page_checksum(), Aleph::Gen_File_BPlus_Tree< Key, Compare, MinDegree, Codec >::page_checksum(), Aleph::Gen_File_B_Tree< Key, Compare, MinDegree, Codec >::page_checksum_v3(), Aleph::Gen_File_BPlus_Tree< Key, Compare, MinDegree, Codec >::page_checksum_v3(), Aleph::Gen_File_B_Tree< Key, Compare, MinDegree, Codec >::page_checksum_v4(), Aleph::Gen_File_BPlus_Tree< Key, Compare, MinDegree, Codec >::page_checksum_v4(), Aleph::Gen_File_BPlus_Tree< Key, Compare, MinDegree, Codec >::wal_header_checksum(), Aleph::Gen_File_B_Tree< Key, Compare, MinDegree, Codec >::wal_header_checksum(), Aleph::Gen_File_B_Tree< Key, Compare, MinDegree, Codec >::wal_record_checksum_add(), Aleph::Gen_File_BPlus_Tree< Key, Compare, MinDegree, Codec >::wal_record_checksum_add(), Aleph::Gen_File_B_Tree< Key, Compare, MinDegree, Codec >::wal_record_checksum_add_v2(), Aleph::Gen_File_BPlus_Tree< Key, Compare, MinDegree, Codec >::wal_record_checksum_add_v2(), Aleph::Gen_File_B_Tree< Key, Compare, MinDegree, Codec >::wal_record_checksum_add_v3(), and Aleph::Gen_File_BPlus_Tree< Key, Compare, MinDegree, Codec >::wal_record_checksum_add_v3().
|
inlinenoexcept |
Definition at line 215 of file tpl_paged_tree_durability.H.
References Aleph::size().
Referenced by Aleph::Gen_File_B_Tree< Key, Compare, MinDegree, Codec >::add_native_key_to_crc(), Aleph::Gen_File_BPlus_Tree< Key, Compare, MinDegree, Codec >::add_native_key_to_crc(), Aleph::Gen_File_B_Map< Key, Value, Compare, MinDegree, KeyCodec, ValueCodec >::Record_Codec::add_to_crc(), Aleph::Gen_File_BPlus_Map< Key, Value, Compare, MinDegree, KeyCodec, ValueCodec >::Record_Codec::add_to_crc(), Aleph::detail::Paged_Bounded_String_Codec< Capacity, SizeType >::add_to_crc(), Aleph::detail::Paged_Value_Codec< T >::add_to_crc(), crc32_add(), Aleph::Gen_File_BPlus_Tree< Key, Compare, MinDegree, Codec >::header_checksum(), Aleph::Gen_File_B_Tree< Key, Compare, MinDegree, Codec >::header_checksum(), Aleph::Gen_File_BPlus_Tree< Key, Compare, MinDegree, Codec >::header_checksum_v2(), Aleph::Gen_File_B_Tree< Key, Compare, MinDegree, Codec >::header_checksum_v2(), Aleph::Gen_File_B_Tree< Key, Compare, MinDegree, Codec >::page_checksum(), Aleph::Gen_File_BPlus_Tree< Key, Compare, MinDegree, Codec >::page_checksum(), Aleph::Gen_File_B_Tree< Key, Compare, MinDegree, Codec >::page_checksum_v3(), Aleph::Gen_File_BPlus_Tree< Key, Compare, MinDegree, Codec >::page_checksum_v3(), Aleph::Gen_File_B_Tree< Key, Compare, MinDegree, Codec >::page_checksum_v4(), Aleph::Gen_File_BPlus_Tree< Key, Compare, MinDegree, Codec >::page_checksum_v4(), Aleph::Gen_File_BPlus_Tree< Key, Compare, MinDegree, Codec >::wal_header_checksum(), Aleph::Gen_File_B_Tree< Key, Compare, MinDegree, Codec >::wal_header_checksum(), Aleph::Gen_File_B_Tree< Key, Compare, MinDegree, Codec >::wal_record_checksum_add(), Aleph::Gen_File_BPlus_Tree< Key, Compare, MinDegree, Codec >::wal_record_checksum_add(), Aleph::Gen_File_B_Tree< Key, Compare, MinDegree, Codec >::wal_record_checksum_add_v2(), Aleph::Gen_File_BPlus_Tree< Key, Compare, MinDegree, Codec >::wal_record_checksum_add_v2(), Aleph::Gen_File_B_Tree< Key, Compare, MinDegree, Codec >::wal_record_checksum_add_v3(), and Aleph::Gen_File_BPlus_Tree< Key, Compare, MinDegree, Codec >::wal_record_checksum_add_v3().
|
inlinenoexcept |
Definition at line 210 of file tpl_paged_tree_durability.H.
Referenced by Aleph::Gen_File_BPlus_Tree< Key, Compare, MinDegree, Codec >::header_checksum(), Aleph::Gen_File_B_Tree< Key, Compare, MinDegree, Codec >::header_checksum(), Aleph::Gen_File_BPlus_Tree< Key, Compare, MinDegree, Codec >::header_checksum_v2(), Aleph::Gen_File_B_Tree< Key, Compare, MinDegree, Codec >::header_checksum_v2(), Aleph::Gen_File_B_Tree< Key, Compare, MinDegree, Codec >::page_checksum(), Aleph::Gen_File_BPlus_Tree< Key, Compare, MinDegree, Codec >::page_checksum(), Aleph::Gen_File_B_Tree< Key, Compare, MinDegree, Codec >::page_checksum_v3(), Aleph::Gen_File_BPlus_Tree< Key, Compare, MinDegree, Codec >::page_checksum_v3(), Aleph::Gen_File_B_Tree< Key, Compare, MinDegree, Codec >::page_checksum_v4(), Aleph::Gen_File_BPlus_Tree< Key, Compare, MinDegree, Codec >::page_checksum_v4(), Aleph::Gen_File_B_Tree< Key, Compare, MinDegree, Codec >::recover_from_wal(), Aleph::Gen_File_BPlus_Tree< Key, Compare, MinDegree, Codec >::recover_from_wal(), Aleph::Gen_File_BPlus_Tree< Key, Compare, MinDegree, Codec >::wal_header_checksum(), Aleph::Gen_File_B_Tree< Key, Compare, MinDegree, Codec >::wal_header_checksum(), Aleph::Gen_File_B_Tree< Key, Compare, MinDegree, Codec >::write_wal_to_path(), and Aleph::Gen_File_BPlus_Tree< Key, Compare, MinDegree, Codec >::write_wal_to_path().
|
inlinenoexcept |
Definition at line 238 of file tpl_paged_tree_durability.H.
Referenced by Aleph::Gen_File_BPlus_Tree< Key, Compare, MinDegree, Codec >::header_checksum(), Aleph::Gen_File_B_Tree< Key, Compare, MinDegree, Codec >::header_checksum(), Aleph::Gen_File_BPlus_Tree< Key, Compare, MinDegree, Codec >::header_checksum_v2(), Aleph::Gen_File_B_Tree< Key, Compare, MinDegree, Codec >::header_checksum_v2(), Aleph::Gen_File_B_Tree< Key, Compare, MinDegree, Codec >::page_checksum(), Aleph::Gen_File_BPlus_Tree< Key, Compare, MinDegree, Codec >::page_checksum(), Aleph::Gen_File_B_Tree< Key, Compare, MinDegree, Codec >::page_checksum_v3(), Aleph::Gen_File_BPlus_Tree< Key, Compare, MinDegree, Codec >::page_checksum_v3(), Aleph::Gen_File_B_Tree< Key, Compare, MinDegree, Codec >::page_checksum_v4(), Aleph::Gen_File_BPlus_Tree< Key, Compare, MinDegree, Codec >::page_checksum_v4(), Aleph::Gen_File_B_Tree< Key, Compare, MinDegree, Codec >::recover_from_wal(), Aleph::Gen_File_BPlus_Tree< Key, Compare, MinDegree, Codec >::recover_from_wal(), Aleph::Gen_File_BPlus_Tree< Key, Compare, MinDegree, Codec >::wal_header_checksum(), Aleph::Gen_File_B_Tree< Key, Compare, MinDegree, Codec >::wal_header_checksum(), Aleph::Gen_File_B_Tree< Key, Compare, MinDegree, Codec >::write_wal_to_path(), and Aleph::Gen_File_BPlus_Tree< Key, Compare, MinDegree, Codec >::write_wal_to_path().
|
inlinenoexcept |
Definition at line 243 of file tpl_paged_tree_durability.H.
Referenced by Aleph::detail::Pid_File_Lock::acquire().
|
inlinenoexcept |
Definition at line 94 of file tpl_paged_value_codec.H.
References value.
|
inlinenoexcept |
Definition at line 86 of file tpl_paged_value_codec.H.
Referenced by Aleph::detail::Paged_Bounded_String_Codec< Capacity, SizeType >::encode(), and Aleph::detail::Paged_Value_Codec< T >::encode().
|
inline |
Definition at line 92 of file tpl_tree_snapshot.H.
References ah_runtime_error_unless.
Referenced by save_ordered_tree_snapshot().
| bool Aleph::detail::equiv | ( | const Compare & | cmp, |
| const Key & | lhs, | ||
| const Key & | rhs | ||
| ) |
Definition at line 69 of file tpl_b_tree.H.
References Aleph::and, and cmp().
Referenced by Aleph::Gen_B_Tree< Key, Compare, MinDegree >::equals().
|
inline |
Recursive extraction of all prime factors.
Definition at line 147 of file pollard_rho.H.
References Aleph::Array< T >::append(), extract_prime_factors(), find_any_factor(), and Aleph::miller_rabin().
Referenced by extract_prime_factors(), and Aleph::pollard_rho().
| bool Aleph::detail::fallback_all_of | ( | const Container & | c, |
| Pred && | pred | ||
| ) |
Definition at line 891 of file ah-ranges.H.
References pred.
| bool Aleph::detail::fallback_none_of | ( | const Container & | c, |
| Pred && | pred | ||
| ) |
Definition at line 909 of file ah-ranges.H.
References fallback_any_of(), and pred.
|
inline |
Helper to repeatedly apply Pollard's rho until a factor is found.
Tries different random seed/constant pairs. Each attempt has a bounded number of iterations, and the total number of attempts is also capped to guarantee termination.
| n | Composite number to find a factor of. |
| std::runtime_error | if no factor found after max attempts. |
Definition at line 113 of file pollard_rho.H.
References ah_runtime_error, pollard_rho_step(), rng, and seed.
Referenced by extract_prime_factors().
| Array< Key > Aleph::detail::load_ordered_tree_snapshot | ( | const std::string & | file_path, |
| const std::array< char, Ordered_Tree_Snapshot_Magic_Size > & | expected_magic, | ||
| const std::uint64_t | expected_min_degree, | ||
| const char * | kind | ||
| ) |
Definition at line 171 of file tpl_tree_snapshot.H.
References ah_runtime_error_unless, Aleph::Array< T >::append(), Aleph::detail::Ordered_Tree_Snapshot_Header::count, ordered_tree_validate_header(), and Aleph::Array< T >::reserve().
|
constexprnoexcept |
Definition at line 77 of file tpl_paged_value_codec.H.
| Key Aleph::detail::ordered_tree_read_key | ( | std::istream & | in, |
| const std::string & | file_path, | ||
| const char * | kind, | ||
| const std::uint64_t | index | ||
| ) |
Definition at line 109 of file tpl_tree_snapshot.H.
References ah_runtime_error_unless.
|
inline |
Definition at line 87 of file tpl_tree_snapshot.H.
|
constexprnoexcept |
Definition at line 73 of file tpl_tree_snapshot.H.
References Ordered_Tree_Snapshot_Magic_Size.
Referenced by Aleph::Gen_File_B_Tree< Key, Compare, MinDegree, Codec >::file_magic(), Aleph::Gen_File_BPlus_Tree< Key, Compare, MinDegree, Codec >::file_magic(), Aleph::Gen_File_B_Tree< Key, Compare, MinDegree, Codec >::wal_magic(), Aleph::Gen_File_BPlus_Tree< Key, Compare, MinDegree, Codec >::wal_magic(), Aleph::Gen_File_B_Tree< Key, Compare, MinDegree, Codec >::wal_trailer_magic(), and Aleph::Gen_File_BPlus_Tree< Key, Compare, MinDegree, Codec >::wal_trailer_magic().
|
inline |
Definition at line 143 of file tpl_tree_snapshot.H.
References ah_runtime_error_unless, Aleph::detail::Ordered_Tree_Snapshot_Header::key_size, Aleph::detail::Ordered_Tree_Snapshot_Header::magic, Aleph::detail::Ordered_Tree_Snapshot_Header::min_degree, Ordered_Tree_Snapshot_Magic_Size, Ordered_Tree_Snapshot_Version, and Aleph::detail::Ordered_Tree_Snapshot_Header::version.
Referenced by load_ordered_tree_snapshot().
| void Aleph::detail::ordered_tree_write_key | ( | std::ostream & | out, |
| const Key & | key, | ||
| const std::string & | file_path, | ||
| const char * | kind, | ||
| const std::uint64_t | index | ||
| ) |
Definition at line 127 of file tpl_tree_snapshot.H.
References ah_runtime_error_unless, and out.
Referenced by save_ordered_tree_snapshot().
|
inlinenoexcept |
|
inline |
Inner function for Pollard's rho algorithm.
| n | The number to factor. |
| seed | The seed for the pseudo-random sequence. |
| c | The constant for the polynomial f(x) = x^2 + c. |
Definition at line 69 of file pollard_rho.H.
References Aleph::and, Aleph::diff(), Aleph::mod_mul(), seed, and y.
Referenced by find_any_factor().
|
inlinenoexcept |
Definition at line 252 of file tpl_paged_tree_durability.H.
Referenced by Aleph::detail::Pid_File_Lock::stale_lock().
| bool Aleph::detail::ranges_all_of | ( | const Container & | c, |
| Pred && | pred | ||
| ) |
Fallback all_of using range-based for loop.
Definition at line 932 of file ah-ranges.H.
References pred.
Referenced by Aleph::stl_all().
| bool Aleph::detail::ranges_any_of | ( | const Container & | c, |
| Pred && | pred | ||
| ) |
Fallback any_of using range-based for loop.
Definition at line 944 of file ah-ranges.H.
References pred.
Referenced by ranges_none_of(), and Aleph::stl_exists().
| auto Aleph::detail::ranges_count_if | ( | const Container & | c, |
| Pred && | pred | ||
| ) |
Fallback count_if using range-based for loop.
Definition at line 965 of file ah-ranges.H.
References Aleph::count(), and pred.
Fallback fold_left using range-based for loop.
Works with any container that supports range-based for loop. This is the function used by ahFunctional.H when std::ranges is unavailable.
Definition at line 921 of file ah-ranges.H.
References Aleph::init.
Referenced by Aleph::foldl(), and Aleph::stl_foldl().
| bool Aleph::detail::ranges_none_of | ( | const Container & | c, |
| Pred && | pred | ||
| ) |
Fallback none_of using range-based for loop.
Definition at line 956 of file ah-ranges.H.
References pred, and ranges_any_of().
|
inline |
Definition at line 149 of file tpl_paged_tree_durability.H.
References ah_runtime_error_unless, and sync_parent_directory().
Referenced by Aleph::detail::Pid_File_Lock::acquire(), Aleph::Gen_File_B_Tree< Key, Compare, MinDegree, Codec >::recover_from_wal(), Aleph::Gen_File_BPlus_Tree< Key, Compare, MinDegree, Codec >::recover_from_wal(), Aleph::Gen_File_B_Tree< Key, Compare, MinDegree, Codec >::recover_if_needed(), Aleph::Gen_File_BPlus_Tree< Key, Compare, MinDegree, Codec >::recover_if_needed(), Aleph::Gen_File_B_Tree< Key, Compare, MinDegree, Codec >::sync(), and Aleph::Gen_File_BPlus_Tree< Key, Compare, MinDegree, Codec >::sync().
|
inline |
Definition at line 161 of file tpl_paged_tree_durability.H.
References ah_runtime_error_unless, and sync_parent_directory().
Referenced by Aleph::Gen_File_B_Tree< Key, Compare, MinDegree, Codec >::sync(), and Aleph::Gen_File_BPlus_Tree< Key, Compare, MinDegree, Codec >::sync().
| void Aleph::detail::save_ordered_tree_snapshot | ( | const std::string & | file_path, |
| const std::array< char, Ordered_Tree_Snapshot_Magic_Size > & | expected_magic, | ||
| const std::uint64_t | expected_min_degree, | ||
| const Array< Key > & | keys, | ||
| const char * | kind | ||
| ) |
Definition at line 201 of file tpl_tree_snapshot.H.
References ah_runtime_error_unless, Aleph::detail::Ordered_Tree_Snapshot_Header::count, ensure_ordered_tree_snapshot_parent_dir(), Aleph::detail::Ordered_Tree_Snapshot_Header::key_size, keys, Aleph::detail::Ordered_Tree_Snapshot_Header::magic, Aleph::detail::Ordered_Tree_Snapshot_Header::min_degree, Ordered_Tree_Snapshot_Magic_Size, Ordered_Tree_Snapshot_Version, ordered_tree_write_key(), out, and Aleph::detail::Ordered_Tree_Snapshot_Header::version.
|
inline |
Definition at line 203 of file tikzgeom_algorithms.H.
References ah_domain_error_if, Aleph::and, Aleph::Array< T >::append(), Aleph::PointInPolygonWinding::contains(), Aleph::Polygon::Segment_Iterator::has_curr(), Aleph::Dlink::Iterator::has_curr(), Aleph::Segment::intersects_properly_with(), Aleph::Polygon::is_closed(), Aleph::HTList::is_empty(), Aleph::Polygon::size(), Aleph::Array< T >::size(), spp_build_tris(), spp_cross(), spp_find_sleeve(), spp_find_tri(), and SPP_NONE.
Referenced by Aleph::compute_shortest_path_funnel_trace().
|
inline |
Definition at line 70 of file tikzgeom_algorithms.H.
References Aleph::and, Aleph::Array< T >::append(), LocateFunctions< Container, Type >::get_it(), Aleph::Triangle::get_p1(), Aleph::Triangle::get_p2(), Aleph::Triangle::get_p3(), l1, l2, Aleph::quicksort_op(), Aleph::Array< T >::reserve(), Aleph::Array< T >::size(), spp_find_index(), SPP_NONE, and Aleph::detail::SPP_ITri::v.
Referenced by shortest_path_portals().
|
inline |
Definition at line 197 of file tikzgeom_algorithms.H.
References Aleph::Point::get_x(), and Aleph::Point::get_y().
Referenced by Aleph::compute_shortest_path_funnel_trace(), and shortest_path_portals().
Definition at line 62 of file tikzgeom_algorithms.H.
References Aleph::Array< T >::size(), and SPP_NONE.
Referenced by spp_build_tris().
|
inline |
Definition at line 150 of file tikzgeom_algorithms.H.
References Aleph::and, Aleph::Array< T >::append(), Aleph::DynList< T >::append(), Aleph::HTList::is_empty(), Aleph::DynList< T >::remove_first(), Aleph::Array< T >::reserve(), Aleph::Array< T >::size(), and SPP_NONE.
Referenced by shortest_path_portals().
|
inline |
Definition at line 141 of file tikzgeom_algorithms.H.
References Aleph::Array< T >::size(), SPP_NONE, and spp_point_in_triangle().
Referenced by shortest_path_portals().
|
inline |
Definition at line 130 of file tikzgeom_algorithms.H.
References Aleph::and, Aleph::CCW, Aleph::CW, Aleph::orientation(), and Aleph::detail::SPP_ITri::v.
Referenced by spp_find_tri().
|
inline |
Definition at line 115 of file tpl_paged_tree_durability.H.
References ah_runtime_error_unless.
Referenced by Aleph::Gen_File_B_Tree< Key, Compare, MinDegree, Codec >::apply_current_cache_to_storage(), Aleph::Gen_File_BPlus_Tree< Key, Compare, MinDegree, Codec >::apply_current_cache_to_storage(), copy_file_contents(), Aleph::Gen_File_B_Tree< Key, Compare, MinDegree, Codec >::recover_from_wal(), Aleph::Gen_File_BPlus_Tree< Key, Compare, MinDegree, Codec >::recover_from_wal(), Aleph::Gen_File_B_Tree< Key, Compare, MinDegree, Codec >::write_full_image_to_path(), Aleph::Gen_File_BPlus_Tree< Key, Compare, MinDegree, Codec >::write_full_image_to_path(), Aleph::Gen_File_B_Tree< Key, Compare, MinDegree, Codec >::write_wal_to_path(), and Aleph::Gen_File_BPlus_Tree< Key, Compare, MinDegree, Codec >::write_wal_to_path().
|
inline |
Definition at line 134 of file tpl_paged_tree_durability.H.
References ah_runtime_error_unless.
|
inline |
Definition at line 89 of file tpl_paged_tree_durability.H.
References ah_runtime_error_unless.
Referenced by copy_file_contents(), Aleph::detail::Pid_File_Lock::release(), remove_file_if_exists(), rename_file_atomic(), Aleph::Gen_File_B_Tree< Key, Compare, MinDegree, Codec >::write_full_image_to_path(), Aleph::Gen_File_BPlus_Tree< Key, Compare, MinDegree, Codec >::write_full_image_to_path(), Aleph::Gen_File_B_Tree< Key, Compare, MinDegree, Codec >::write_wal_to_path(), and Aleph::Gen_File_BPlus_Tree< Key, Compare, MinDegree, Codec >::write_wal_to_path().
|
inline |
Definition at line 40 of file tikzgeom_algorithms.H.
Referenced by Aleph::put_aabb_tree_result(), Aleph::put_convex_decomposition_result(), Aleph::put_kdtree_partitions_result(), Aleph::put_range_tree_result(), Aleph::put_rtree_result(), Aleph::put_segment_arrangement_result(), and Aleph::put_trapezoidal_map_result().
|
inlineconstexpr |
|
inlineconstexpr |
Definition at line 58 of file ah-date.H.
Referenced by Aleph::to_time_t().
|
inlineconstexpr |
Definition at line 59 of file tpl_tree_snapshot.H.
Referenced by Aleph::Gen_File_B_Tree< Key, Compare, MinDegree, Codec >::legacy_header_bytes(), Aleph::Gen_File_BPlus_Tree< Key, Compare, MinDegree, Codec >::legacy_header_bytes(), ordered_tree_snapshot_magic(), ordered_tree_validate_header(), save_ordered_tree_snapshot(), TEST(), TEST(), Aleph::Gen_File_B_Tree< Key, Compare, MinDegree, Codec >::wal_header_bytes(), Aleph::Gen_File_BPlus_Tree< Key, Compare, MinDegree, Codec >::wal_header_bytes(), Aleph::Gen_File_B_Tree< Key, Compare, MinDegree, Codec >::wal_trailer_bytes(), and Aleph::Gen_File_BPlus_Tree< Key, Compare, MinDegree, Codec >::wal_trailer_bytes().
|
inlineconstexpr |
Definition at line 60 of file tpl_tree_snapshot.H.
Referenced by ordered_tree_validate_header(), and save_ordered_tree_snapshot().
|
inlineconstexpr |
Definition at line 60 of file ah-date.H.
Referenced by Aleph::to_days().
|
constexpr |
Definition at line 60 of file tikzgeom_algorithms.H.
Referenced by shortest_path_portals(), spp_build_tris(), spp_find_index(), spp_find_sleeve(), and spp_find_tri().
|
inlineconstexpr |
Definition at line 57 of file ah-date.H.
Referenced by Aleph::to_time_t().