Bitcoin Core 28.99.0
P2P Digital Currency
Public Member Functions | Private Types | Private Member Functions | Private Attributes | List of all members
prevector_tester< N, T > Class Template Reference
Collaboration diagram for prevector_tester< N, T >:
[legend]

Public Member Functions

void resize (Size s)
 
void reserve (Size s)
 
void insert (Size position, const T &value)
 
void insert (Size position, Size count, const T &value)
 
template<typename I >
void insert_range (Size position, I first, I last)
 
void erase (Size position)
 
void erase (Size first, Size last)
 
void update (Size pos, const T &value)
 
void push_back (const T &value)
 
void pop_back ()
 
void clear ()
 
void assign (Size n, const T &value)
 
Size size () const
 
Size capacity () const
 
void shrink_to_fit ()
 
void swap () noexcept
 
void move ()
 
void copy ()
 
void resize_uninitialized (realtype values)
 
 ~prevector_tester ()
 
 prevector_tester (FastRandomContext &rng)
 

Private Types

typedef std::vector< Trealtype
 
typedef prevector< N, Tpretype
 
typedef pretype::size_type Size
 

Private Member Functions

template<typename A , typename B >
void local_check_equal (A a, B b)
 
void local_check (bool b)
 
void test ()
 

Private Attributes

realtype real_vector
 
realtype real_vector_alt
 
pretype pre_vector
 
pretype pre_vector_alt
 
bool passed = true
 
uint256 rand_seed
 

Detailed Description

template<unsigned int N, typename T>
class prevector_tester< N, T >

Definition at line 19 of file prevector_tests.cpp.

Member Typedef Documentation

◆ pretype

template<unsigned int N, typename T >
typedef prevector<N, T> prevector_tester< N, T >::pretype
private

Definition at line 24 of file prevector_tests.cpp.

◆ realtype

template<unsigned int N, typename T >
typedef std::vector<T> prevector_tester< N, T >::realtype
private

Definition at line 20 of file prevector_tests.cpp.

◆ Size

template<unsigned int N, typename T >
typedef pretype::size_type prevector_tester< N, T >::Size
private

Definition at line 28 of file prevector_tests.cpp.

Constructor & Destructor Documentation

◆ ~prevector_tester()

template<unsigned int N, typename T >
prevector_tester< N, T >::~prevector_tester ( )
inline

Definition at line 206 of file prevector_tests.cpp.

Here is the call graph for this function:

◆ prevector_tester()

template<unsigned int N, typename T >
prevector_tester< N, T >::prevector_tester ( FastRandomContext rng)
inline

Definition at line 210 of file prevector_tests.cpp.

Here is the call graph for this function:

Member Function Documentation

◆ assign()

template<unsigned int N, typename T >
void prevector_tester< N, T >::assign ( Size  n,
const T value 
)
inline

Definition at line 149 of file prevector_tests.cpp.

Here is the call graph for this function:

◆ capacity()

template<unsigned int N, typename T >
Size prevector_tester< N, T >::capacity ( ) const
inline

Definition at line 158 of file prevector_tests.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ clear()

template<unsigned int N, typename T >
void prevector_tester< N, T >::clear ( )
inline

Definition at line 144 of file prevector_tests.cpp.

Here is the call graph for this function:

◆ copy()

template<unsigned int N, typename T >
void prevector_tester< N, T >::copy ( )
inline

Definition at line 181 of file prevector_tests.cpp.

◆ erase() [1/2]

template<unsigned int N, typename T >
void prevector_tester< N, T >::erase ( Size  first,
Size  last 
)
inline

Definition at line 120 of file prevector_tests.cpp.

Here is the call graph for this function:

◆ erase() [2/2]

template<unsigned int N, typename T >
void prevector_tester< N, T >::erase ( Size  position)
inline

Definition at line 114 of file prevector_tests.cpp.

Here is the call graph for this function:

◆ insert() [1/2]

template<unsigned int N, typename T >
void prevector_tester< N, T >::insert ( Size  position,
const T value 
)
inline

Definition at line 95 of file prevector_tests.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ insert() [2/2]

template<unsigned int N, typename T >
void prevector_tester< N, T >::insert ( Size  position,
Size  count,
const T value 
)
inline

Definition at line 101 of file prevector_tests.cpp.

Here is the call graph for this function:

◆ insert_range()

template<unsigned int N, typename T >
template<typename I >
void prevector_tester< N, T >::insert_range ( Size  position,
first,
last 
)
inline

Definition at line 108 of file prevector_tests.cpp.

Here is the call graph for this function:

◆ local_check()

template<unsigned int N, typename T >
void prevector_tester< N, T >::local_check ( bool  b)
inlineprivate

Definition at line 38 of file prevector_tests.cpp.

Here is the caller graph for this function:

◆ local_check_equal()

template<unsigned int N, typename T >
template<typename A , typename B >
void prevector_tester< N, T >::local_check_equal ( a,
B  b 
)
inlineprivate

Definition at line 34 of file prevector_tests.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ move()

template<unsigned int N, typename T >
void prevector_tester< N, T >::move ( )
inline

Definition at line 174 of file prevector_tests.cpp.

Here is the call graph for this function:

◆ pop_back()

template<unsigned int N, typename T >
void prevector_tester< N, T >::pop_back ( )
inline

Definition at line 138 of file prevector_tests.cpp.

Here is the call graph for this function:

◆ push_back()

template<unsigned int N, typename T >
void prevector_tester< N, T >::push_back ( const T value)
inline

Definition at line 132 of file prevector_tests.cpp.

Here is the call graph for this function:

◆ reserve()

template<unsigned int N, typename T >
void prevector_tester< N, T >::reserve ( Size  s)
inline

Definition at line 87 of file prevector_tests.cpp.

Here is the call graph for this function:

◆ resize()

template<unsigned int N, typename T >
void prevector_tester< N, T >::resize ( Size  s)
inline

Definition at line 79 of file prevector_tests.cpp.

Here is the call graph for this function:

◆ resize_uninitialized()

template<unsigned int N, typename T >
void prevector_tester< N, T >::resize_uninitialized ( realtype  values)
inline

Definition at line 186 of file prevector_tests.cpp.

Here is the call graph for this function:

◆ shrink_to_fit()

template<unsigned int N, typename T >
void prevector_tester< N, T >::shrink_to_fit ( )
inline

Definition at line 162 of file prevector_tests.cpp.

Here is the call graph for this function:

◆ size()

template<unsigned int N, typename T >
Size prevector_tester< N, T >::size ( ) const
inline

Definition at line 154 of file prevector_tests.cpp.

◆ swap()

template<unsigned int N, typename T >
void prevector_tester< N, T >::swap ( )
inlinenoexcept

Definition at line 167 of file prevector_tests.cpp.

Here is the call graph for this function:

◆ test()

template<unsigned int N, typename T >
void prevector_tester< N, T >::test ( )
inlineprivate

Definition at line 42 of file prevector_tests.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ update()

template<unsigned int N, typename T >
void prevector_tester< N, T >::update ( Size  pos,
const T value 
)
inline

Definition at line 126 of file prevector_tests.cpp.

Here is the call graph for this function:

Member Data Documentation

◆ passed

template<unsigned int N, typename T >
bool prevector_tester< N, T >::passed = true
private

Definition at line 29 of file prevector_tests.cpp.

◆ pre_vector

template<unsigned int N, typename T >
pretype prevector_tester< N, T >::pre_vector
private

Definition at line 25 of file prevector_tests.cpp.

◆ pre_vector_alt

template<unsigned int N, typename T >
pretype prevector_tester< N, T >::pre_vector_alt
private

Definition at line 26 of file prevector_tests.cpp.

◆ rand_seed

template<unsigned int N, typename T >
uint256 prevector_tester< N, T >::rand_seed
private

Definition at line 30 of file prevector_tests.cpp.

◆ real_vector

template<unsigned int N, typename T >
realtype prevector_tester< N, T >::real_vector
private

Definition at line 21 of file prevector_tests.cpp.

◆ real_vector_alt

template<unsigned int N, typename T >
realtype prevector_tester< N, T >::real_vector_alt
private

Definition at line 22 of file prevector_tests.cpp.


The documentation for this class was generated from the following file: