Ne.app NeANT
The Ne.app NeANT User module of the NeANT distribution.
Namespaces | Macros | Typedefs | Functions | Variables
23.vector.modifiers.cpp File Reference
#include <memory>
#include <vector>
#include <cstddef>
#include <rw_printf.h>
#include <rw_alg_test.h>
#include <rw_value.h>
#include <rw_driver.h>
#include <rw_new.h>
Include dependency graph for 23.vector.modifiers.cpp:

Go to the source code of this file.

Namespaces

namespace  __rw
 

Macros

#define TEST(seq, seqcap, off, ins, res)
 
#define TEST(seq, seqcap, off, n, ins, res)
 
#define TEST(seq, seqcap, off, ins, res)
 
#define UPPER   "ABCDEFGHIJKLMNOPQRSTUVWXYZ"
 
#define LOWER   "abcdefghijklmnopqrstuvwxyz"
 

Typedefs

typedef std::vector< UserClass, std::allocator< UserClass > > Vector
 

Functions

_RWSTD_SPECIALIZED_FUNCTION Vector::size_type __rw::__rw_new_capacity< Vector > (Vector::size_type n, const Vector *)
 
bool is_forward_category (std::input_iterator_tag)
 
bool is_forward_category (std::forward_iterator_tag)
 
template<class Iterator >
bool is_forward (const Iterator &it)
 
template<class Iterator >
void exception_loop (int line, const char *fcall, bool capchg, Vector &vec, const Vector::iterator &it, int n, const UserClass *x, const Iterator &first, const Iterator &last, std::size_t *n_copy, std::size_t *n_asgn)
 
template<class Iterator >
void test_insert (int line, const Iterator &dummy, int n, const char *seq, std::size_t seqlen, std::size_t seqcap, int off, const char *ins, std::size_t inslen, const char *res, std::size_t reslen)
 
void test_insert ()
 
template<class Iterator >
void test_insert_range (const Iterator &dummy)
 
void test_insert_at_end ()
 
void test_complexity ()
 
template<class T , class Allocator >
void test_push_back (const std::vector< T, Allocator > *)
 
int main (int argc, char **argv)
 

Variables

Vector::size_type new_capacity
 

Macro Definition Documentation

◆ LOWER

#define LOWER   "abcdefghijklmnopqrstuvwxyz"

◆ TEST [1/3]

#define TEST (   seq,
  seqcap,
  off,
  ins,
  res 
)
Value:
do { \
const char insseq [] = { ins, '\0' }; \
test_insert (__LINE__, (UserClass*)0, -2, \
seq, sizeof seq - 1, \
std::size_t (seqcap), off, \
insseq, 1, \
res, sizeof res - 1); \
} while (0)
#define res
Definition 17.names.cpp:531
#define off
Definition 17.names.cpp:507

◆ TEST [2/3]

#define TEST (   seq,
  seqcap,
  off,
  ins,
  res 
)
Value:
test_insert (__LINE__, dummy, -1, \
seq, sizeof seq - 1, \
std::size_t (seqcap), off, \
ins, sizeof ins - 1, \
res, sizeof res - 1)
void test_insert()

◆ TEST [3/3]

#define TEST (   seq,
  seqcap,
  off,
  n,
  ins,
  res 
)
Value:
do { \
const char insseq [] = { ins, '\0' }; \
test_insert (__LINE__, (UserClass*)0, n, \
seq, sizeof seq - 1, \
std::size_t (seqcap), off, \
insseq, 1, \
res, sizeof res - 1); \
} while (0)
#define n
Definition 17.names.cpp:130

◆ UPPER

#define UPPER   "ABCDEFGHIJKLMNOPQRSTUVWXYZ"

Typedef Documentation

◆ Vector

typedef std::vector<UserClass, std::allocator<UserClass> > Vector

Definition at line 60 of file 23.vector.modifiers.cpp.

Function Documentation

◆ exception_loop()

template<class Iterator >
void exception_loop ( int  line,
const char *  fcall,
bool  capchg,
Vector &  vec,
const Vector::iterator &  it,
int  n,
const UserClass *  x,
const Iterator &  first,
const Iterator &  last,
std::size_t *  n_copy,
std::size_t *  n_asgn 
)

Definition at line 99 of file 23.vector.modifiers.cpp.

◆ is_forward()

template<class Iterator >
bool is_forward ( const Iterator &  it)

Definition at line 86 of file 23.vector.modifiers.cpp.

◆ is_forward_category() [1/2]

bool is_forward_category ( std::forward_iterator_tag  )

Definition at line 83 of file 23.vector.modifiers.cpp.

◆ is_forward_category() [2/2]

bool is_forward_category ( std::input_iterator_tag  )

Definition at line 82 of file 23.vector.modifiers.cpp.

◆ main()

int main ( int  argc,
char **  argv 
)

Definition at line 1226 of file 23.vector.modifiers.cpp.

◆ test_complexity()

void test_complexity ( )

Definition at line 760 of file 23.vector.modifiers.cpp.

◆ test_insert() [1/2]

void test_insert ( )

Definition at line 455 of file 23.vector.modifiers.cpp.

◆ test_insert() [2/2]

template<class Iterator >
void test_insert ( int  line,
const Iterator &  dummy,
int  n,
const char *  seq,
std::size_t  seqlen,
std::size_t  seqcap,
int  off,
const char *  ins,
std::size_t  inslen,
const char *  res,
std::size_t  reslen 
)

Definition at line 263 of file 23.vector.modifiers.cpp.

◆ test_insert_at_end()

void test_insert_at_end ( )

Definition at line 685 of file 23.vector.modifiers.cpp.

◆ test_insert_range()

template<class Iterator >
void test_insert_range ( const Iterator &  dummy)

Definition at line 549 of file 23.vector.modifiers.cpp.

◆ test_push_back()

template<class T , class Allocator >
void test_push_back ( const std::vector< T, Allocator > *  )

Definition at line 1105 of file 23.vector.modifiers.cpp.

Variable Documentation

◆ new_capacity

Vector::size_type new_capacity

Definition at line 62 of file 23.vector.modifiers.cpp.