Ne.app NeANT
The Ne.app NeANT User module of the NeANT distribution.
Data Structures | Macros | Enumerations | Functions | Variables
24.istream.iterator.cpp File Reference
#include <sstream>
#include <iterator>
#include <cstddef>
#include <rw_char.h>
#include <rw_printf.h>
#include <rw_driver.h>
Include dependency graph for 24.istream.iterator.cpp:

Go to the source code of this file.

Data Structures

struct  ParamNames
 
struct  TempParams< T, CharT, Traits, Dist >
 

Macros

#define TEST(input, expect, is_eos, state)    test_ops (params, __LINE__, input, T (expect), is_eos, state)
 
#define TEST(T, fmt)
 

Enumerations

enum  TestId { TestCtors , TestOps }
 

Functions

void fmtnam (const ParamNames &pn)
 
template<class T , class CharT , class Traits , class Dist >
void test_ctors (const TempParams< T, CharT, Traits, Dist > &params)
 
template<class T , class CharT , class Traits , class Dist >
void test_ops (const TempParams< T, CharT, Traits, Dist > &params, int line, const char *input, T expect, bool is_eos, int state)
 
template<class T , class CharT , class Traits , class Dist >
void test_ops (const TempParams< T, CharT, Traits, Dist > &params)
 
template<class T , class CharT , class Traits , class Dist >
void do_test (TestId id, const char *tname, const char *tfmt, const char *cname, const char *trname, const char *dname)
 
template<class CharT , class Traits , class Dist >
void do_test (TestId id, const char *cname, const char *trname, const char *dname)
 
template<class CharT , class Traits >
void do_test (TestId id, const char *cname, const char *trname)
 
int main (int argc, char *argv[])
 

Variables

int opt_char
 
int opt_wchar_t
 
int opt_UserTraits
 
int opt_short
 
int opt_int
 
int opt_long
 
int opt_double
 

Macro Definition Documentation

◆ TEST [1/2]

#define TEST (   input,
  expect,
  is_eos,
  state 
)     test_ops (params, __LINE__, input, T (expect), is_eos, state)

◆ TEST [2/2]

#define TEST (   T,
  fmt 
)
Value:
if (opt_ ## T) \
do_test<T, CharT, Traits, Dist>(id, #T, fmt, cname, trname, dname)
#define T
Definition 17.names.cpp:163

Enumeration Type Documentation

◆ TestId

enum TestId
Enumerator
TestCtors 
TestOps 

Definition at line 299 of file 24.istream.iterator.cpp.

Function Documentation

◆ do_test() [1/3]

template<class CharT , class Traits >
void do_test ( TestId  id,
const char *  cname,
const char *  trname 
)

Definition at line 359 of file 24.istream.iterator.cpp.

◆ do_test() [2/3]

template<class CharT , class Traits , class Dist >
void do_test ( TestId  id,
const char *  cname,
const char *  trname,
const char *  dname 
)

Definition at line 334 of file 24.istream.iterator.cpp.

◆ do_test() [3/3]

template<class T , class CharT , class Traits , class Dist >
void do_test ( TestId  id,
const char *  tname,
const char *  tfmt,
const char *  cname,
const char *  trname,
const char *  dname 
)

Definition at line 303 of file 24.istream.iterator.cpp.

◆ fmtnam()

void fmtnam ( const ParamNames &  pn)

Definition at line 49 of file 24.istream.iterator.cpp.

◆ main()

int main ( int  argc,
char *  argv[] 
)

Definition at line 431 of file 24.istream.iterator.cpp.

◆ test_ctors()

template<class T , class CharT , class Traits , class Dist >
void test_ctors ( const TempParams< T, CharT, Traits, Dist > &  params)

Definition at line 69 of file 24.istream.iterator.cpp.

◆ test_ops() [1/2]

template<class T , class CharT , class Traits , class Dist >
void test_ops ( const TempParams< T, CharT, Traits, Dist > &  params)

Definition at line 192 of file 24.istream.iterator.cpp.

◆ test_ops() [2/2]

template<class T , class CharT , class Traits , class Dist >
void test_ops ( const TempParams< T, CharT, Traits, Dist > &  params,
int  line,
const char *  input,
T  expect,
bool  is_eos,
int  state 
)

Definition at line 140 of file 24.istream.iterator.cpp.

Variable Documentation

◆ opt_char

int opt_char

Definition at line 323 of file 24.istream.iterator.cpp.

◆ opt_double

int opt_double

Definition at line 329 of file 24.istream.iterator.cpp.

◆ opt_int

int opt_int

Definition at line 327 of file 24.istream.iterator.cpp.

◆ opt_long

int opt_long

Definition at line 328 of file 24.istream.iterator.cpp.

◆ opt_short

int opt_short

Definition at line 326 of file 24.istream.iterator.cpp.

◆ opt_UserTraits

int opt_UserTraits

Definition at line 325 of file 24.istream.iterator.cpp.

◆ opt_wchar_t

int opt_wchar_t

Definition at line 324 of file 24.istream.iterator.cpp.