ReactOS 0.4.16-dev-91-g764881a
test_insert_range< C, Iter > Struct Template Reference

#include <test_insert.h>

Collaboration diagram for test_insert_range< C, Iter >:

Public Member Functions

 test_insert_range (const C &orig, Iter first, Iter last, int pos=-1)
 
void operator() (C &c) const
 

Private Attributes

Iter fFirst
 
Iter fLast
 
const Coriginal
 
size_t fPos
 

Detailed Description

template<class C, class Iter>
struct test_insert_range< C, Iter >

Definition at line 497 of file test_insert.h.

Constructor & Destructor Documentation

◆ test_insert_range()

template<class C , class Iter >
test_insert_range< C, Iter >::test_insert_range ( const C orig,
Iter  first,
Iter  last,
int  pos = -1 
)
inline

Definition at line 499 of file test_insert.h.

500 : fFirst( first ),
501 fLast( last ),
502 original( orig ),
503 fPos( random_number( orig.size() ))
504 {
505 gTestController.SetCurrentTestName("range insertion");
506 if ( pos != -1 )
507 {
508 fPos = size_t(pos);
509 if ( pos == 0 )
510 gTestController.SetCurrentTestName("range insertion at begin()");
511 else
512 gTestController.SetCurrentTestName("range insertion at end()");
513 }
514 else
515 gTestController.SetCurrentTestName("range insertion at random position");
516 }
__kernel_size_t size_t
Definition: linux.h:237
const GLint * first
Definition: glext.h:5794
static UINT UINT last
Definition: font.c:45
TestController gTestController
Definition: nc_alloc.cpp:46
unsigned random_number(size_t range)
static void SetCurrentTestName(const char *str)
Definition: nc_alloc.h:172
const C & original
Definition: test_insert.h:530

Member Function Documentation

◆ operator()()

template<class C , class Iter >
void test_insert_range< C, Iter >::operator() ( C c) const
inline

Definition at line 518 of file test_insert.h.

519 {
520// prepare_insert_range( c, fPos, fFirst, fLast );
522
523 // Prevent simulated failures during verification
525 // Success. Check results.
527 }
const GLubyte * c
Definition: glext.h:8905
static void CancelFailureCountdown()
Definition: nc_alloc.h:143
sequence_container_tag container_category(const BitVector &)
void do_insert_range(C &c_inst, Position offset, Iter first, Iter last, sequence_container_tag)
Definition: test_insert.h:451
void VerifyInsertion(const C &original, const C &result, const SrcIter &firstNew, const SrcIter &lastNew, size_t, associative_container_tag)
Definition: test_insert.h:165

Member Data Documentation

◆ fFirst

template<class C , class Iter >
Iter test_insert_range< C, Iter >::fFirst
private

Definition at line 529 of file test_insert.h.

Referenced by test_insert_range< C, Iter >::operator()().

◆ fLast

template<class C , class Iter >
Iter test_insert_range< C, Iter >::fLast
private

Definition at line 529 of file test_insert.h.

Referenced by test_insert_range< C, Iter >::operator()().

◆ fPos

template<class C , class Iter >
size_t test_insert_range< C, Iter >::fPos
private

◆ original

template<class C , class Iter >
const C& test_insert_range< C, Iter >::original
private

Definition at line 530 of file test_insert.h.

Referenced by test_insert_range< C, Iter >::operator()().


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