arbeit
Main Page | Namespace List | Class Hierarchy | Alphabetical List | Compound List | File List | Namespace Members | Compound Members | File Members

gutz::EventKeyMap Class Reference

#include <gutzKeyMouse.h>

Inheritance diagram for gutz::EventKeyMap:

gutz::Counted List of all members.

Detailed Description

Event map, takes button ids (unsigned ints) and returns event behaviors (also unsigned ints).

I overloaded this guy so that the const [] op will behave correctly.

Definition at line 45 of file gutzKeyMouse.h.

Public Types

typedef std::map< unsigned
int, unsigned int, eventKeyMapCmp
Base
typedef Base::iterator Iter
typedef Base::const_iterator CIter

Public Member Functions

 EventKeyMap ()
 ~EventKeyMap ()
unsigned int operator[] (unsigned int key) const
unsigned int & operator[] (unsigned int key)

Protected Member Functions

virtual void _incCount ()
 gutz::Counted interface, increment reference count by one.

virtual void _decCount ()
 gutz::Counted interface, decrement reference count by one.

virtual int _getCount () const
 gutz::Counted interface, get the current reference count.


Friends

class SmartPtr
class SmartPtrRef


Member Typedef Documentation

typedef std::map<unsigned int, unsigned int, eventKeyMapCmp> gutz::EventKeyMap::Base
 

Definition at line 50 of file gutzKeyMouse.h.

typedef Base::const_iterator gutz::EventKeyMap::CIter
 

Definition at line 52 of file gutzKeyMouse.h.

Referenced by operator[]().

typedef Base::iterator gutz::EventKeyMap::Iter
 

Definition at line 51 of file gutzKeyMouse.h.


Constructor & Destructor Documentation

gutz::EventKeyMap::EventKeyMap  )  [inline]
 

Definition at line 54 of file gutzKeyMouse.h.

gutz::EventKeyMap::~EventKeyMap  )  [inline]
 

Definition at line 55 of file gutzKeyMouse.h.


Member Function Documentation

virtual void gutz::Counted::_decCount  )  [inline, protected, virtual, inherited]
 

gutz::Counted interface, decrement reference count by one.

Not generaly used by subclasses, mostly for collaboration with gutz::SmartPtr. Sometimes you need to call this though, see the documentation for gutz::SmartPtr

Definition at line 54 of file smartptr.h.

Referenced by TFImage::clear(), NrroImage::fBlendOverRGBA(), and Nrro::updateMinMax().

virtual int gutz::Counted::_getCount  )  const [inline, protected, virtual, inherited]
 

gutz::Counted interface, get the current reference count.

Not generaly used by subclasses, mostly for collaboration with gutz::SmartPtr.

Definition at line 58 of file smartptr.h.

virtual void gutz::Counted::_incCount  )  [inline, protected, virtual, inherited]
 

gutz::Counted interface, increment reference count by one.

Not generaly used by subclasses, mostly for collaboration with gutz::SmartPtr. Sometimes you need to call this though, see the documentation for gutz::SmartPtr

Definition at line 48 of file smartptr.h.

Referenced by TFImage::clear(), NrroImage::fBlendOverRGBA(), and Nrro::updateMinMax().

unsigned int& gutz::EventKeyMap::operator[] unsigned int  key  )  [inline]
 

Definition at line 64 of file gutzKeyMouse.h.

unsigned int gutz::EventKeyMap::operator[] unsigned int  key  )  const [inline]
 

Definition at line 57 of file gutzKeyMouse.h.

References CIter, and end.


Friends And Related Function Documentation

friend class SmartPtr [friend, inherited]
 

Definition at line 40 of file smartptr.h.

Referenced by Nrro::NrroIter< T >::NrroIter().

friend class SmartPtrRef [friend, inherited]
 

Definition at line 41 of file smartptr.h.


The documentation for this class was generated from the following file:
Send questions, comments, and bug reports to:
jmk