#include # include #include # include namespace mpi = boost::mpi; typedef mpq_class val_t; typedef long coord_t; namespace rheinfall { template /** Abstract base class for matrix rows. */ class Row { public: Row(const coord_t starting_column, const coord_t ending_column); /** Virtual destructor (for actual use in subclasses). */ virtual ~Row(); protected: coord_t starting_column_; coord_t ending_column_; // boost::serialization support friend class boost::serialization::access; template void serialize(Archive& ar, const unsigned int version); }; // class Row template inline Row::Row(const coord_t starting_column, const coord_t ending_column) : starting_column_(starting_column), ending_column_(ending_column) { }; }; // namespace rheinfall