ReactOS  0.4.15-dev-2947-g59e1b78
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  }
POINT last
Definition: font.c:46
TestController gTestController
Definition: nc_alloc.cpp:46
const GLint * first
Definition: glext.h:5794
static void SetCurrentTestName(const char *str)
Definition: nc_alloc.h:172
const C & original
Definition: test_insert.h:530
__kernel_size_t size_t
Definition: linux.h:237
unsigned random_number(size_t range)

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  }
TestController gTestController
Definition: nc_alloc.cpp:46
void do_insert_range(C &c_inst, Position offset, Iter first, Iter last, sequence_container_tag)
Definition: test_insert.h:451
const C & original
Definition: test_insert.h:530
void VerifyInsertion(const C &original, const C &result, const SrcIter &firstNew, const SrcIter &lastNew, size_t, associative_container_tag)
Definition: test_insert.h:165
const GLubyte * c
Definition: glext.h:8905
sequence_container_tag container_category(const BitVector &)
static void CancelFailureCountdown()
Definition: nc_alloc.h:143

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: