lkptr - simple reference LinKed PoinTeR:
Classes | Defines | Functions
test_lkptr.cpp File Reference

Test data for class lkptr<X>. More...

#include "lkptr.h"
#include "BUnit.h"
#include "figures.h"
#include <set>
#include <iostream>

Go to the source code of this file.

Classes

class  test_lkptr< X >
 Test data for class lkptr. More...
struct  AutoRef
 Clase que se auto-referencia. More...

Defines

#define lkptr_MERGE_IS_PUBLIC
#define ck(v1, v2)   { BOOST_TEST( *v1 == v2 ); }
#define BOOST_TEST(x)   assertTrue(x)
#define boost
#define scoped_ptr   lkptr
#define shared_ptr   lkptr
#define scoped_array   array_lkptr
#define shared_array   array_lkptr
#define DIM(V)   (sizeof(V)/sizeof(*V))
 Number of elements in vector V[].
#define assert(X)   assertTrue(X)
#define setNum(m)

Functions

const char * msg_vecB (int B, int u, int n, int i, int j)
 Message for assertTrue( vec[50].use_count() == n );
int main ()
 Main test program.

Detailed Description

Test data for class lkptr<X>.

Author:
Adolfo Di Mare <adolfo@di-mare.com>
Date:
2008.

Definition in file test_lkptr.cpp.


Define Documentation

#define lkptr_MERGE_IS_PUBLIC

Definition at line 10 of file test_lkptr.cpp.

#define ck (   v1,
  v2 
)    { BOOST_TEST( *v1 == v2 ); }
#define BOOST_TEST (   x)    assertTrue(x)
#define boost
#define scoped_ptr   lkptr
#define shared_ptr   lkptr
#define scoped_array   array_lkptr
#define shared_array   array_lkptr
#define DIM (   V)    (sizeof(V)/sizeof(*V))

Number of elements in vector V[].

Definition at line 697 of file test_lkptr.cpp.

#define assert (   X)    assertTrue(X)
#define setNum (   m)
Value:
if ((m)<10) { num[0]='0'+(m); num[1]=0; } \
            else    { num[0]='0'+(m)/10; num[1]='0'+(m)%10; num[2]=0; }

Function Documentation

const char* msg_vecB ( int  B,
int  u,
int  n,
int  i,
int  j 
)

Message for assertTrue( vec[50].use_count() == n );

Definition at line 982 of file test_lkptr.cpp.

int main ( )

Main test program.

Definition at line 1238 of file test_lkptr.cpp.

 All Classes Namespaces Files Functions Variables Typedefs Friends Defines