ReactOS  0.4.14-dev-115-g4576127
test_insert_value< C > Struct Template Reference

#include <test_insert.h>

Collaboration diagram for test_insert_value< C >:

Public Member Functions

 test_insert_value (const C &orig)
 
void operator() (C &c) const
 

Private Attributes

C::value_type fInsVal
 
const Coriginal
 

Detailed Description

template<class C>
struct test_insert_value< C >

Definition at line 403 of file test_insert.h.

Constructor & Destructor Documentation

◆ test_insert_value()

template<class C >
test_insert_value< C >::test_insert_value ( const C orig)
inline

Definition at line 405 of file test_insert.h.

406  : original( orig )
407  {
409  gTestController.SetCurrentTestName("insertion of random value");
410  }
TestController gTestController
Definition: nc_alloc.cpp:46
C::value_type fInsVal
Definition: test_insert.h:422
static void SetCurrentTestName(const char *str)
Definition: nc_alloc.h:172
void MakeRandomValue(bool &b)
Definition: test_insert.h:322
const C & original
Definition: test_insert.h:423

Member Function Documentation

◆ operator()()

template<class C >
void test_insert_value< C >::operator() ( C c) const
inline

Definition at line 412 of file test_insert.h.

413  {
414  c.insert( fInsVal );
415 
416  // Prevent simulated failures during verification
418  // Success. Check results.
419  VerifyInsertion( original, c, &fInsVal, 1+&fInsVal, size_t(0) );
420  }
TestController gTestController
Definition: nc_alloc.cpp:46
C::value_type fInsVal
Definition: test_insert.h:422
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
static void CancelFailureCountdown()
Definition: nc_alloc.h:143
const C & original
Definition: test_insert.h:423

Member Data Documentation

◆ fInsVal

template<class C >
C::value_type test_insert_value< C >::fInsVal
private

◆ original

template<class C >
const C& test_insert_value< C >::original
private

Definition at line 423 of file test_insert.h.

Referenced by test_insert_value< C >::operator()().


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