Aleph-w 7.10.0
A C++ Library for Data Structures and Algorithms
Loading...
Searching...
No Matches
gmpfrxx_test.cc File Reference

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>
Include dependency graph for gmpfrxx_test.cc:

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.
 

Detailed Description

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.

Function Documentation

◆ TEST() [1/10]

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() [2/10]

TEST ( Gmpfrxx  ,
list_append_moves_the_items   
)

◆ TEST() [3/10]

TEST ( Gmpfrxx  ,
move_assignment_exchanges_the_values   
)

Definition at line 170 of file gmpfrxx_test.cc.

References y.

◆ TEST() [4/10]

TEST ( Gmpfrxx  ,
move_construction_takes_the_value_and_leaves_zero   
)

◆ TEST() [5/10]

TEST ( Gmpfrxx  ,
moving_does_not_copy_the_limbs   
)

Definition at line 221 of file gmpfrxx_test.cc.

References counter, and Aleph::swap().

◆ TEST() [6/10]

TEST ( Gmpfrxx  ,
noexcept_specifications   
)

Definition at line 118 of file gmpfrxx_test.cc.

◆ TEST() [7/10]

TEST ( Gmpfrxx  ,
rational_from_an_rvalue_integer_takes_its_limbs   
)

◆ TEST() [8/10]

TEST ( Gmpfrxx  ,
self_move_assignment_is_harmless   
)

◆ TEST() [9/10]

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() [10/10]

TEST ( Gmpfrxx  ,
swap   
)

Definition at line 203 of file gmpfrxx_test.cc.

References Aleph::swap(), and y.

Variable Documentation

◆ tiny_keys

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.