Back to index

Public Member Functions | Public Attributes | Private Attributes
generic_command_rep Class Reference
Inheritance diagram for generic_command_rep:
Inheritance graph
Collaboration diagram for generic_command_rep:
Collaboration graph

List of all members.

Public Member Functions

 generic_command_rep (void(*_callback)(void *, void *), void *_obj, void *_info)
void apply ()
tm_ostreamprint (tm_ostream &out)
virtual void apply (object args)

Public Attributes

int ref_count

Private Attributes

void(* callback )(void *, void *)
void * obj
void * info

Detailed Description

Definition at line 53 of file command.cpp.

Constructor & Destructor Documentation

generic_command_rep::generic_command_rep ( void(*)(void *, void *)  _callback,
void *  _obj,
void *  _info 
) [inline]

Definition at line 59 of file command.cpp.

    : callback (_callback), obj (_obj), info (_info) {}

Member Function Documentation

void command_rep::apply ( object  args) [virtual, inherited]

Reimplemented in object_command_rep.

Definition at line 20 of file command.cpp.

  (void) args;
  apply ();

Here is the call graph for this function:

void generic_command_rep::apply ( ) [inline, virtual]

Implements command_rep.

Definition at line 61 of file command.cpp.

{ if (callback) callback (obj, info); }
tm_ostream& generic_command_rep::print ( tm_ostream out) [inline, virtual]

Reimplemented from command_rep.

Definition at line 62 of file command.cpp.

{ return out << "generic_command_rep"; }

Member Data Documentation

void(* generic_command_rep::callback)(void *, void *) [private]

Definition at line 54 of file command.cpp.

void* generic_command_rep::info [private]

Definition at line 56 of file command.cpp.

void* generic_command_rep::obj [private]

Definition at line 55 of file command.cpp.

int abstract_struct::ref_count [inherited]

Definition at line 142 of file basic.hpp.

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