31class EXPCL_PANDA_GOBJ GeomCacheEntry :
public ReferenceCount {
33 INLINE GeomCacheEntry();
34 virtual ~GeomCacheEntry();
36 PT(GeomCacheEntry) record(
Thread *current_thread);
38 PT(GeomCacheEntry) erase();
41 virtual void output(std::ostream &out)
const;
46 INLINE
void remove_from_list();
47 INLINE
void insert_before(GeomCacheEntry *node);
50 GeomCacheEntry *_prev, *_next;
56 static void init_type() {
57 ReferenceCount::init_type();
59 ReferenceCount::get_class_type());
65 friend class GeomCacheManager;
This object contains a single cache entry in the GeomCacheManager.
virtual void evict_callback()
Called when the entry is evicted from the cache, this should clean up the owning object appropriately...
void refresh(Thread *current_thread)
Marks the cache entry recently used, so it will not be evicted for a while.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
void register_type(TypeHandle &type_handle, const std::string &name)
This inline function is just a convenient way to call TypeRegistry::register_type(),...