historical/toontown-classic.git/panda/include/weakPointerCallback.h

33 lines
810 B
C
Raw Normal View History

2024-01-16 11:20:27 -06:00
/**
* PANDA 3D SOFTWARE
* Copyright (c) Carnegie Mellon University. All rights reserved.
*
* All use of this software is subject to the terms of the revised BSD
* license. You should have received a copy of this license along
* with this source code in a file named "LICENSE."
*
* @file weakPointerCallback.h
* @author drose
* @date 2006-10-06
*/
#ifndef WEAKPOINTERCALLBACK_H
#define WEAKPOINTERCALLBACK_H
#include "pandabase.h"
/**
* Derive from this class and override the callback() method if you want to
* get an immediate callback from a WeakPointerTo object when its referenced
* pointer is deleted.
*/
class EXPCL_PANDA_EXPRESS WeakPointerCallback {
public:
virtual ~WeakPointerCallback();
virtual void wp_callback(void *pointer)=0;
};
#include "weakPointerCallback.I"
#endif