Deleted Added
sdiff udiff text old ( 7055:4e24742201d7 ) new ( 8086:bf0335d98250 )
full compact
1/*
2 * Copyright (c) 1999-2008 Mark D. Hill and David A. Wood
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are
7 * met: redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer;

--- 29 unchanged lines hidden (view full) ---

38class DataBlock;
39
40class AbstractEntry
41{
42 public:
43 AbstractEntry();
44 virtual ~AbstractEntry() = 0;
45
46 // The methods below are those called by ruby runtime, add when it
47 // is absolutely necessary and should all be virtual function.
48 virtual DataBlock& getDataBlk() = 0;
49
50 virtual void print(std::ostream& out) const = 0;
51};
52
53inline std::ostream&
54operator<<(std::ostream& out, const AbstractEntry& obj)
55{
56 obj.print(out);
57 out << std::flush;
58 return out;
59}
60
61#endif // __MEM_RUBY_SLICC_INTERFACE_ABSTRACTENTRY_HH__
62