head     1.4;
branch   ;
access   ;
symbols  ;
locks    ; strict;
comment  @// @;


1.4
date     92.05.22.07.09.23;  author fischer;  state Exp;
branches ;
next     1.3;

1.3
date     92.05.20.23.31.17;  author fischer;  state Exp;
branches ;
next     1.2;

1.2
date     92.05.19.14.28.08;  author thoth;  state Exp;
branches ;
next     1.1;

1.1
date     92.05.19.01.40.22;  author thoth;  state Exp;
branches ;
next     ;


desc
@Initial Version
@


1.4
log
@Fixed problems with partial // comments, 
and partial old style comments.  Folded in
the IA::result_type() changes.
Checked compilation against gcc-2.0 (failed)
and gcc-2.1 (succeeded).  Too bad gcc-2.1 doesn't
work well otherwise!
@
text
@#ifndef Point_h_
#define Point_h_

//
// $Log:	Point.h,v $
// Revision 1.3  92/05/20  23:31:17  fischer
// repaired output method.
// fixed dereference in copyings.
// 
// Revision 1.2  92/05/19  14:28:08  thoth
// added a destructor for Point.
// 
// Revision 1.1  92/05/19  01:40:22  thoth
// Initial revision
// 
//
//

#include <CoordVec.h>

class Point {
    CoordVec	*cv;
    void create_cv(int, NumericType);
 public:
    Point() {cv = NULL;}
    Point(const Point &);
    Point(Coord);
    Point(Coord,Coord);
    Point(Coord,Coord,Coord);
    Point(Coord,Coord,Coord,Coord);
    Point(Coord,Coord,Coord,Coord,Coord);
    ~Point() { if (cv) delete cv; }
    Point &operator=(const Point &);
    void output(ostream&);
    // use when gnu output overloading is fixed.
    // friend ostream &operator<<(ostream &, const Point&);
};

// This class (Point) is a good candidate for reference counting.
// We should put a ref_count data member in the CoordVec
// abstract base class and use it when copying Points around.

#endif

// Local variables:
// eval: (c++-mode)
// End:
@


1.3
log
@repaired output method.
fixed dereference in copyings.
@
text
@d4 14
a17 10
/*
 * $Log:	Point.h,v $
 * Revision 1.2  92/05/19  14:28:08  thoth
 * added a destructor for Point.
 * 
 * Revision 1.1  92/05/19  01:40:22  thoth
 * Initial revision
 * 
 *
 */
d23 1
a23 1
    void create_cv(int, CoordType);
@


1.2
log
@added a destructor for Point.
@
text
@d6 3
d30 3
a32 1
    friend ostream &operator<<(ostream &, const Point&);
@


1.1
log
@Initial revision
@
text
@d5 4
a8 1
 * $Log$
d19 1
d25 1
a25 1
    ~Point();
d30 4
a37 1
// eval: (joe-style)
@
