head	1.3;
access
	monica
	thoth;
symbols;
locks
	monica:1.3; strict;
comment	@// @;


1.3
date	94.12.16.02.52.02;	author monica;	state Exp;
branches;
next	1.2;

1.2
date	94.12.08.22.30.53;	author monica;	state Exp;
branches;
next	1.1;

1.1
date	94.10.06.01.59.56;	author monica;	state Exp;
branches;
next	;


desc
@updated for DOS filename convention
@


1.3
log
@added reference to log for rcs
@
text
@// $Log$
// Emacs: -*- C++ -*-

// pointset_example.03.c      IA_IntPointSet constructor examples

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


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

    return p[0] > 0;
}


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);
}
@


1.2
log
@changed include PrintIPS.c to PrintIPS.h
@
text
@d1 1
@


1.1
log
@Initial revision
@
text
@d6 1
a6 1
#include "printIPS.c"
@
