|
Aleph-w 7.10.0
A C++ Library for Data Structures and Algorithms
|
Move construction, move assignment and swap of mpz_class, mpq_class and mpfr_class, and their effect on the containers. More...
#include <gtest/gtest.h>#include <gmpfrxx.h>#include <htlist.H>#include <tpl_array.H>#include <tpl_sort_utils.H>#include <type_traits>#include <utility>#include <vector>Go to the source code of this file.
Functions | |
| TEST (Gmpfrxx, noexcept_specifications) | |
| TEST (Gmpfrxx, move_construction_takes_the_value_and_leaves_zero) | |
| TEST (Gmpfrxx, move_assignment_exchanges_the_values) | |
| TEST (Gmpfrxx, self_move_assignment_is_harmless) | |
| TEST (Gmpfrxx, swap) | |
| TEST (Gmpfrxx, moving_does_not_copy_the_limbs) | |
| TEST (Gmpfrxx, rational_from_an_rvalue_integer_takes_its_limbs) | |
| TEST (Gmpfrxx, array_growth_moves_the_items) | |
| TEST (Gmpfrxx, list_append_moves_the_items) | |
| TEST (Gmpfrxx, sorting_moves_the_items) | |
Variables | |
| bool | tiny_keys = false |
| Global flag to enable tiny font size for keys/labels. | |
Move construction, move assignment and swap of mpz_class, mpq_class and mpfr_class, and their effect on the containers.
Definition in file gmpfrxx_test.cc.
| TEST | ( | Gmpfrxx | , |
| array_growth_moves_the_items | |||
| ) |
Definition at line 285 of file gmpfrxx_test.cc.
References Aleph::Array< T >::append(), counter, and Aleph::Array< T >::size().
| TEST | ( | Gmpfrxx | , |
| list_append_moves_the_items | |||
| ) |
Definition at line 299 of file gmpfrxx_test.cc.
References Aleph::DynList< T >::append(), counter, Aleph::DynList< T >::get_last(), l, and Aleph::DynList< T >::size().
| TEST | ( | Gmpfrxx | , |
| move_assignment_exchanges_the_values | |||
| ) |
Definition at line 170 of file gmpfrxx_test.cc.
References y.
| TEST | ( | Gmpfrxx | , |
| move_construction_takes_the_value_and_leaves_zero | |||
| ) |
Definition at line 141 of file gmpfrxx_test.cc.
References __gmp_expr< mpfr_t, mpfr_t >::get_d(), __gmp_expr< mpq_t, mpq_t >::get_den(), and __gmp_expr< mpfr_t, mpfr_t >::get_prec().
| TEST | ( | Gmpfrxx | , |
| moving_does_not_copy_the_limbs | |||
| ) |
Definition at line 221 of file gmpfrxx_test.cc.
References counter, and Aleph::swap().
| TEST | ( | Gmpfrxx | , |
| noexcept_specifications | |||
| ) |
Definition at line 118 of file gmpfrxx_test.cc.
| TEST | ( | Gmpfrxx | , |
| rational_from_an_rvalue_integer_takes_its_limbs | |||
| ) |
Definition at line 264 of file gmpfrxx_test.cc.
References counter, __gmp_expr< mpq_t, mpq_t >::get_den(), and __gmp_expr< mpq_t, mpq_t >::get_num().
| TEST | ( | Gmpfrxx | , |
| self_move_assignment_is_harmless | |||
| ) |
Definition at line 188 of file gmpfrxx_test.cc.
References __gmp_expr< mpfr_t, mpfr_t >::get_d(), and __gmp_expr< mpfr_t, mpfr_t >::get_prec().
| TEST | ( | Gmpfrxx | , |
| sorting_moves_the_items | |||
| ) |
Definition at line 311 of file gmpfrxx_test.cc.
References Aleph::Array< T >::append(), counter, and Aleph::quicksort_op().
| TEST | ( | Gmpfrxx | , |
| swap | |||
| ) |
Definition at line 203 of file gmpfrxx_test.cc.
References Aleph::swap(), and y.
| bool tiny_keys = false |
Global flag to enable tiny font size for keys/labels.
When set to true, text labels will be rendered using LaTeX's \tiny font size modifier. Useful for dense diagrams with many labels.
Definition at line 53 of file gmpfrxx_test.cc.