~ubuntu-branches/ubuntu/quantal/texmacs/quantal

« back to all changes in this revision

Viewing changes to src/Kernel/Abstractions/command.hpp

  • Committer: Bazaar Package Importer
  • Author(s): Atsuhito KOHDA
  • Date: 2010-04-23 07:09:40 UTC
  • mfrom: (4.1.8 squeeze)
  • Revision ID: james.westby@ubuntu.com-20100423070940-72mjdmdepfgrvo8f
Tags: 1:1.0.7.4-2
Re-upload, former upload failed with wrong diff.gz perhaps.

Show diffs side-by-side

added added

removed removed

Lines of Context:
18
18
public:
19
19
  inline command_rep () { TM_DEBUG(command_count++); }
20
20
  inline virtual ~command_rep () { TM_DEBUG(command_count--); }
21
 
  inline virtual ostream& print (ostream& out);
 
21
  inline virtual tm_ostream& print (tm_ostream& out);
22
22
  virtual void apply () = 0;
23
23
};
24
24
 
29
29
  command (void (*_callback) (void*, void*), void *_obj, void *_info = NULL);
30
30
 
31
31
  inline void   operator () (void);
32
 
  inline friend ostream& operator << (ostream& out, command cmd);
 
32
  inline friend tm_ostream& operator << (tm_ostream& out, command cmd);
33
33
};
34
34
ABSTRACT_NULL_CODE(command);
35
35
 
36
 
inline ostream& command_rep::print (ostream& out) { return out << "command"; }
 
36
inline tm_ostream& command_rep::print (tm_ostream& out) { return out << "command"; }
37
37
inline void     command::operator () (void) { rep->apply(); }
38
38
inline bool     operator == (command cmd1, command cmd2) {
39
39
  return cmd1.rep == cmd2.rep; }
40
 
inline ostream& operator << (ostream& out, command cmd) {
 
40
inline tm_ostream& operator << (tm_ostream& out, command cmd) {
41
41
  if (is_nil(cmd)) return out << "(null)"; else return cmd->print(out); }
42
42
 
43
43
#endif // defined COMMAND_H