head	1.3;
access;
symbols;
locks; strict;
comment	@// @;


1.3
date	94.10.11.00.27.28;	author rjj;	state Exp;
branches;
next	1.2;

1.2
date	94.09.02.01.47.49;	author rjj;	state Exp;
branches;
next	1.1;

1.1
date	94.09.01.00.12.56;	author rjj;	state Exp;
branches;
next	;


desc
@Placing under RCS.  This should be the source corresponding to UM 1.0
@


1.3
log
@Modified to use 'return 0;' rather than 'exit(0);'.
@
text
@// pointset_example.03.c      IA_IntPointSet constructor examples

#include "IntPS.h"
#include "printIPS.c"


int pos_half_plane(const IA_Point<int> & p) {

    return p[0] > 0;
}


int main()
{
    IA_Set<IA_Point<int> >
	ips4( 2,	       // dimension of the points in this set
	      pos_half_plane); // pointer to predicate function
    			       // defining this set

    // ips4 contains all 2-D points whose first coordinate is > 0
    // NOTE: ips4 is *comprehensive* (its points cannot be enumerated).
    // all the other pointsets we\'ve encountered so far have been
    // *extensive* (their points can be enumerated).

    // Because ips4 is comprehensive, any attempt to print all its
    // elements should fail.

    cout << "\n*** ips4 ***\n";
    printIPS(ips4);

    return 0;
}
@


1.2
log
@Modified to be iac++ v2.0 compliant.
@
text
@a2 1
#include <stdlib.h>
d31 1
a31 1
    exit( 0 );
@


1.1
log
@Initial revision
@
text
@a0 2
// Emacs: -*- C++ -*-

d3 2
a4 1
#include "IntPointSet.h"
d14 1
a14 1
main()
d31 2
@
