00001
00012 #if !defined(Pos_hpp)
00013 #define Pos_hpp
00014
00015 #include "comun.hpp"
00016
00017 using namespace std;
00018
00022 class Pos
00023 {
00024 public:
00025 long numd;
00026 long numb;
00027 Pos(long d, long n):numd(d), numb(n)
00028 {
00029 ASSERT(d>0);
00030 ASSERT(n>0);
00031 }
00032
00033 };
00034
00040 std::ostream &operator<<(std::ostream &os, Pos p);
00041
00048 bool operator<(Pos p1, Pos p2);
00049
00056 void escribePos(iostream &os, set<Pos> *cpos);
00057
00058
00065 unsigned long longPos(set<Pos> *cpos);
00066
00075 set<Pos> *copiaPos(set<Pos> &p, vector<long> *renum);
00076
00088 set<Pos> *leePos(istream &is, vector<long> *renum = NULL);
00089
00090
00091 #endif