Panda3D
 All Classes Functions Variables Enumerations
pt_Event.h
1 // Filename: pt_Event.h
2 // Created by: drose (26May00)
3 //
4 ////////////////////////////////////////////////////////////////////
5 //
6 // PANDA 3D SOFTWARE
7 // Copyright (c) Carnegie Mellon University. All rights reserved.
8 //
9 // All use of this software is subject to the terms of the revised BSD
10 // license. You should have received a copy of this license along
11 // with this source code in a file named "LICENSE."
12 //
13 ////////////////////////////////////////////////////////////////////
14 
15 #ifndef PT_EVENT_H
16 #define PT_EVENT_H
17 
18 #include "pandabase.h"
19 
20 #include "event.h"
21 
22 #include "pointerTo.h"
23 
24 ////////////////////////////////////////////////////////////////////
25 // Class : PT_Event
26 // Description : A PointerTo<Event>. This is defined here solely we
27 // can explicitly export the template class.
28 ////////////////////////////////////////////////////////////////////
29 
30 EXPORT_TEMPLATE_CLASS(EXPCL_PANDA_EVENT, EXPTP_PANDA_EVENT, PointerToBase<Event>)
31 EXPORT_TEMPLATE_CLASS(EXPCL_PANDA_EVENT, EXPTP_PANDA_EVENT, PointerTo<Event>)
32 EXPORT_TEMPLATE_CLASS(EXPCL_PANDA_EVENT, EXPTP_PANDA_EVENT, ConstPointerTo<Event>)
33 
34 typedef PointerTo<Event> PT_Event;
36 
37 // Tell GCC that we'll take care of the instantiation explicitly here.
38 #ifdef __GNUC__
39 #pragma interface
40 #endif
41 
42 #endif
This is the base class for PointerTo and ConstPointerTo.
Definition: pointerToBase.h:32
A named event, possibly with parameters.
Definition: event.h:36
A ConstPointerTo is similar to a PointerTo, except it keeps a const pointer to the thing...
Definition: pointerTo.h:144
PointerTo is a template class which implements a smart pointer to an object derived from ReferenceCou...
Definition: pointerTo.h:79