Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

DISPLAY_CMD Class Reference

Put a GEL or GELs in the WORLD's display list. More...

#include <command.H>

Inheritance diagram for DISPLAY_CMD:

Inheritance graph
[legend]
Collaboration diagram for DISPLAY_CMD:

Collaboration graph
[legend]
List of all members.

Public Member Functions

void Own () const
void Free () const
int Lock ()
void Unlock ()
int Unique () const
Constructors
 DISPLAY_CMD (CGELptr &gel)
 DISPLAY_CMD (CGELlist &gels)
Run-Time Type Id
 DEFINE_RTTI_METHODS3 ("DISPLAY_CMD", DISPLAY_CMD *, COMMAND, CCOMMAND *)
Command Virtual Methods
virtual bool doit ()
 Execute the command.
virtual bool undoit ()
 Undo the command.
Diagnostic
virtual void print () const

Protected Attributes

GELlist _gels
bool _is_done
 true if doit() was executed most recently.
bool _is_undone
 true if undoit() was executed most recently.

Detailed Description

Put a GEL or GELs in the WORLD's display list.

Questions:
Should this class be moved to a different header (since it is a concrete COMMAND rather than an abstract command)?

Definition at line 193 of file command.H.


Constructor & Destructor Documentation

DISPLAY_CMD::DISPLAY_CMD CGELptr gel  )  [inline]
 

Definition at line 200 of file command.H.

DISPLAY_CMD::DISPLAY_CMD CGELlist gels  )  [inline]
 

Definition at line 201 of file command.H.


Member Function Documentation

bool COMMAND::clear  )  [virtual, inherited]
 

After doit() and undoit() were called, restore things to the way they were before (may be a no-op for most derived classes).

Reimplemented in UNDO_CMD, and MULTI_CMD.

Definition at line 24 of file command.C.

References COMMAND::_is_done, COMMAND::_is_undone, and COMMAND::is_done().

Referenced by MULTI_CMD::clear(), and UNDO_CMD::clear().

DISPLAY_CMD::DEFINE_RTTI_METHODS3 "DISPLAY_CMD"  ,
DISPLAY_CMD ,
COMMAND  ,
CCOMMAND
 

COMMAND::DEFINE_RTTI_METHODS_BASE "COMMAND"  ,
CCOMMAND
[inherited]
 

bool DISPLAY_CMD::doit  )  [virtual]
 

Execute the command.

Returns:
true on success. If the command is already done, this is a no-op and still returns true.

Reimplemented from COMMAND.

Definition at line 67 of file command.C.

References _gels, COMMAND::doit(), and ARRAY< T >::num().

void REFcounter::Free  )  const [inline, inherited]
 

Definition at line 76 of file ref.H.

References REFcounter::_mutex, REFcounter::_u, and REF_ME.

bool COMMAND::is_clear  )  const [inline, inherited]
 

Neither doit() nor undoit() have been called.

Definition at line 91 of file command.H.

References COMMAND::_is_done, and COMMAND::_is_undone.

bool COMMAND::is_done  )  const [inline, inherited]
 

doit() was called most recently.

Definition at line 94 of file command.H.

References COMMAND::_is_done.

Referenced by COMMAND::clear().

bool COMMAND::is_undone  )  const [inline, inherited]
 

undoit() was called most recently, after doit().

Definition at line 97 of file command.H.

References COMMAND::_is_undone.

int REFcounter::Lock  )  [inline, inherited]
 

Definition at line 105 of file ref.H.

References REFcounter::_mutex, and REFcounter::_u.

Referenced by REFlock::REFlock().

void REFcounter::Own  )  const [inline, inherited]
 

Definition at line 59 of file ref.H.

References REFcounter::_mutex, REFcounter::_u, and REF_ME.

virtual void DISPLAY_CMD::print  )  const [inline, virtual]
 

Reimplemented from COMMAND.

Definition at line 223 of file command.H.

References _gels, and ARRAY< T >::num().

bool DISPLAY_CMD::undoit  )  [virtual]
 

Undo the command.

Returns:
true on success. If the command is already undone, this is a no-op and still returns true.

Reimplemented from COMMAND.

Definition at line 76 of file command.C.

References _gels, ARRAY< T >::num(), and COMMAND::undoit().

int REFcounter::Unique  )  const [inline, inherited]
 

Definition at line 115 of file ref.H.

References REFcounter::_mutex, and REFcounter::_u.

void REFcounter::Unlock  )  [inline, inherited]
 

Definition at line 111 of file ref.H.

References REFcounter::_mutex, and REFcounter::_u.

Referenced by REFlock::~REFlock().


Member Data Documentation

GELlist DISPLAY_CMD::_gels [protected]
 

Definition at line 234 of file command.H.

Referenced by doit(), print(), and undoit().

bool COMMAND::_is_done [protected, inherited]
 

true if doit() was executed most recently.

Definition at line 129 of file command.H.

Referenced by COMMAND::clear(), COMMAND::doit(), COMMAND::is_clear(), COMMAND::is_done(), and COMMAND::undoit().

bool COMMAND::_is_undone [protected, inherited]
 

true if undoit() was executed most recently.

Definition at line 130 of file command.H.

Referenced by COMMAND::clear(), COMMAND::doit(), COMMAND::is_clear(), COMMAND::is_undone(), and COMMAND::undoit().


The documentation for this class was generated from the following files:
Generated on Mon Sep 18 11:45:07 2006 for jot by  doxygen 1.4.4