Panda3D
weakPointerCallback.h
Go to the documentation of this file.
1 /**
2  * PANDA 3D SOFTWARE
3  * Copyright (c) Carnegie Mellon University. All rights reserved.
4  *
5  * All use of this software is subject to the terms of the revised BSD
6  * license. You should have received a copy of this license along
7  * with this source code in a file named "LICENSE."
8  *
9  * @file weakPointerCallback.h
10  * @author drose
11  * @date 2006-10-06
12  */
13 
14 #ifndef WEAKPOINTERCALLBACK_H
15 #define WEAKPOINTERCALLBACK_H
16 
17 #include "pandabase.h"
18 
19 /**
20  * Derive from this class and override the callback() method if you want to
21  * get an immediate callback from a WeakPointerTo object when its referenced
22  * pointer is deleted.
23  */
24 class EXPCL_PANDA_EXPRESS WeakPointerCallback {
25 public:
26  virtual ~WeakPointerCallback();
27  virtual void wp_callback(void *pointer)=0;
28 };
29 
30 #include "weakPointerCallback.I"
31 
32 #endif
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
Derive from this class and override the callback() method if you want to get an immediate callback fr...