Back to index

Public Member Functions | Friends
command Class Reference

#include <command.hpp>

List of all members.

Public Member Functions

 ABSTRACT_NULL (command)
 command (void(*routine)(void))
 command (void(*_callback)(void *, void *), void *_obj, void *_info=NULL)
void operator() (void)
void operator() (object args)


tm_ostreamoperator<< (tm_ostream &out, command cmd)

Detailed Description

Definition at line 27 of file command.hpp.

Constructor & Destructor Documentation

command::command ( void(*)(void)  routine)

Definition at line 45 of file command.cpp.

  rep (tm_new<std_command_rep> (routine)) { INC_COUNT(rep); }
command::command ( void(*)(void *, void *)  _callback,
void *  _obj,
void *  _info = NULL 

Definition at line 65 of file command.cpp.

  rep (tm_new<generic_command_rep> (_callback, _obj, _info)) { INC_COUNT(rep); }

Member Function Documentation

void command::operator() ( void  ) [inline]

Definition at line 40 of file command.hpp.

{ rep->apply(); }
void command::operator() ( object  args)

Definition at line 26 of file command.cpp.

  rep->apply (args);

Friends And Related Function Documentation

tm_ostream& operator<< ( tm_ostream out,
command  cmd 
) [friend]

Definition at line 43 of file command.hpp.

  if (is_nil(cmd)) return out << "(null)"; else return cmd->print(out); }

The documentation for this class was generated from the following files: