Macaulay2 Engine
Loading...
Searching...
No Matches
reader.hpp
Go to the documentation of this file.
1#ifndef _reader_hpp_
2#define _reader_hpp_
3
28
29#include "aring-zzp.hpp"
30#include <cstddef>
31
32namespace M2 {
33
34template <typename RingType>
35class Reader
36{
37 public:
38 typedef typename RingType::ElementType ElementType;
39
40 Reader(const RingType& ring) : mRing(ring) {}
41 void read(std::istream& i, ElementType& result);
42
43 private:
44 const RingType& mRing;
45};
46
47template <>
49}
50#endif
51
52// Local Variables:
53// compile-command: "make -C $M2BUILDDIR/Macaulay2/e "
54// indent-tabs-mode: nil
55// End:
M2::ARingZZp — portable Z/p for small primes via log / exp tables.
const RingType & mRing
Definition reader.hpp:44
void read(std::istream &i, ElementType &result)
Reader(const RingType &ring)
Definition reader.hpp:40
RingType::ElementType ElementType
Definition reader.hpp:38
VALGRIND_MAKE_MEM_DEFINED & result(result)
Definition aring-CC.cpp:3