1 /* 2 entry.hpp 3 4 $Id: entry.hpp,v 1.2 2004/01/28 19:14:10 evertonm Exp $ 5 */ 6 7 #ifndef ENTRY_HPP 8 #define ENTRY_HPP 9 10 #include "solve.h" 11 #include "proto_map.hpp" 12 13 class entry 14 { 15 private: 16 proto_t proto; 17 vector<proto_map*> *proto_list; 18 19 void spawn(const proto_map *map) const; 20 21 public: 22 entry(proto_t pro, vector<proto_map*> *pro_l, bool fragile) 23 { 24 proto = pro; 25 proto_list = pro_l; 26 27 iterator<vector<proto_map*>,proto_map*> it(*proto_list); 28 for (it.start(); it.cont(); it.next()) 29 it.get()->set_fragile(fragile); 30 } 31 32 void show() const; 33 34 void serve() const; 35 }; 36 37 #endif /* ENTRY_HPP */ 38 39 /* Eof: entry.hpp */