proj home

Files   Classes   Functions   Hierarchy  

typedefs.h File Reference

#include <cassert>
#include <string>
Include dependency graph for typedefs.h:

Go to the source code of this file.

Defines

#define SHOW(x)   #x << '=' << (x)
 Display the name and value.
#define SHOW2(x)   ((x), #x )
#define SHOW3(x)   #x << "=*" << (x) << "*"
 Look at exact pattern.
#define endln   "\n"
 Get rid of flushing which is associated with a stream and very complex, in my opinion endl is a very bad default in the language.
#define asserteval(xarg)   xarg;
 The argument is evaluated in both debug and release.
#define assertreturnOS(xarg)   assert(xarg);
 Operating systems have 0 as success, let 1 be unsuccessful.
#define assertreturnfalse(xarg)   assert(xarg);
 If in release (not debug mode) and test fails return false.
#define assertreturnfalseN(xarg)   assertreturnfalse( ! (xarg) )
 Negate the argument.
#define assertreturn(xarg)   assert(xarg);
 Assert(debug) or return(release) when the assertion fails.
#define assertreturnT(xarg, failedreturnobj)   assert(xarg);
 On failure user object returned.

Typedefs

typedef bool const boolc
typedef char const charc
typedef double const doublec
typedef float const floatc
typedef int const intc
typedef string const stringc
typedef unsigned char uchar
typedef unsigned char const ucharc
typedef unsigned int uint
typedef unsigned int const uintc
typedef unsigned long int ulongint
typedef unsigned long int const ulongintc
typedef unsigned short int ushortint
typedef unsigned short int const ushortintc

Define Documentation

#define asserteval ( xarg   )     xarg;
#define assertreturn ( xarg   )     assert(xarg);
#define assertreturnfalse ( xarg   )     assert(xarg);
#define assertreturnfalseN ( xarg   )     assertreturnfalse( ! (xarg) )

Negate the argument.

Definition at line 73 of file typedefs.h.

Referenced by randomgenerator::domain().

#define assertreturnOS ( xarg   )     assert(xarg);

Operating systems have 0 as success, let 1 be unsuccessful.

Definition at line 49 of file typedefs.h.

Referenced by treeD2node< Data, Indx >::isdoubleconnected(), treeD2intnode::isdoubleconnected(), windowscaleD2test::test001(), vistest::test01(), treeD2nodetest::test02(), treeD2nodetest::test03(), desystest::test03(), pathlinesegtest::test03(), treeD2nodetest::test04(), treeD2intnodetest::test04(), desystest::test04(), treeD2nodetest::test05(), treeD2intnodetest::test05(), commandlinetest::test05(), treeD2intnodetest::test06(), treeD2nodetest::test07(), treeD2intnodetest::test07(), treeD2nodetest::test08(), treeD2intnodetest::test08(), treeD2nodetest::test09(), treeD2nodetest::test10(), treeD2nodetest::test11(), treeD2nodetest::test12(), treeD2nodetest::test13(), treeD2nodetest::test14(), treeD2nodetest::test15(), misclib_testcode::tokenizertest::test15(), misclib_testcode::tokenizertest::test16(), misclib_testcode::tokenizertest::test17(), misclib_testcode::tokenizertest::test18(), simplexD1tessindexedtest::unittest01(), stringserializationtest::unittest01(), misclib_testcode::stringconverttest::unittest01(), linetest::unittest01(), linechoppedtest::unittest01(), halfspaceD2test::unittest01(), systemcallstest::unittest01(), mkerrorstest::unittest01(), boxOBBhalfspaceD2test::unittest01(), treeindexedD2test::unittest01(), pathlinesegtest::unittest01(), stringtagparsertest::unittest02(), linechoppedtest::unittest02(), treeindexedD2test::unittest02(), and treeindexedD2test::unittest04().

#define assertreturnT ( xarg,
failedreturnobj   )     assert(xarg);

On failure user object returned.

Definition at line 89 of file typedefs.h.

Referenced by stringtagparsertest::unittest01().

#define endln   "\n"
#define SHOW (  )     #x << '=' << (x)

Display the name and value.

Definition at line 24 of file typedefs.h.

#define SHOW2 (  )     ((x), #x )

Definition at line 25 of file typedefs.h.

Referenced by vectest::test01().

#define SHOW3 (  )     #x << "=*" << (x) << "*"

Typedef Documentation

typedef bool const boolc

Definition at line 8 of file typedefs.h.

typedef char const charc

Definition at line 9 of file typedefs.h.

typedef double const doublec

Definition at line 10 of file typedefs.h.

typedef float const floatc

Definition at line 11 of file typedefs.h.

typedef int const intc

Definition at line 12 of file typedefs.h.

typedef string const stringc

Definition at line 13 of file typedefs.h.

typedef unsigned char uchar

Definition at line 14 of file typedefs.h.

typedef unsigned char const ucharc

Definition at line 15 of file typedefs.h.

typedef unsigned int uint

Definition at line 16 of file typedefs.h.

typedef unsigned int const uintc

Definition at line 17 of file typedefs.h.

typedef unsigned long int ulongint

Definition at line 18 of file typedefs.h.

typedef unsigned long int const ulongintc

Definition at line 19 of file typedefs.h.

typedef unsigned short int ushortint

Definition at line 20 of file typedefs.h.

typedef unsigned short int const ushortintc

Definition at line 21 of file typedefs.h.


Generated on 27 Nov 2012 for Chelton Evans Source by  doxygen 1.6.1