Bitcoin Core  27.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 ()
 

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
 
FastRandomContext rand_cache
 
uint256 rand_seed
 

Detailed Description

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

Definition at line 20 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 25 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 21 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 29 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 208 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 ( )
inline

Definition at line 212 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 151 of file prevector_tests.cpp.

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

◆ capacity()

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

Definition at line 160 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 146 of file prevector_tests.cpp.

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

◆ copy()

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

Definition at line 183 of file prevector_tests.cpp.

Here is the caller graph for this function:

◆ erase() [1/2]

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

Definition at line 122 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 116 of file prevector_tests.cpp.

Here is the call graph for this function:
Here is the caller 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 97 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 103 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 110 of file prevector_tests.cpp.

Here is the call graph for this function:
Here is the caller 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 40 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 36 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 176 of file prevector_tests.cpp.

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

◆ pop_back()

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

Definition at line 140 of file prevector_tests.cpp.

Here is the call graph for this function:
Here is the caller 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 134 of file prevector_tests.cpp.

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

◆ reserve()

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

Definition at line 89 of file prevector_tests.cpp.

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

◆ resize()

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

Definition at line 81 of file prevector_tests.cpp.

Here is the call graph for this function:
Here is the caller 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 188 of file prevector_tests.cpp.

Here is the call graph for this function:
Here is the caller 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 164 of file prevector_tests.cpp.

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

◆ size()

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

Definition at line 156 of file prevector_tests.cpp.

Here is the caller graph for this function:

◆ swap()

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

Definition at line 169 of file prevector_tests.cpp.

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

◆ test()

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

Definition at line 44 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 128 of file prevector_tests.cpp.

Here is the call graph for this function:
Here is the caller 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 30 of file prevector_tests.cpp.

◆ pre_vector

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

Definition at line 26 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 27 of file prevector_tests.cpp.

◆ rand_cache

template<unsigned int N, typename T >
FastRandomContext prevector_tester< N, T >::rand_cache
private

Definition at line 31 of file prevector_tests.cpp.

◆ rand_seed

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

Definition at line 32 of file prevector_tests.cpp.

◆ real_vector

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

Definition at line 22 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 23 of file prevector_tests.cpp.


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