15 #ifndef GEOMCACHEENTRY_H 16 #define GEOMCACHEENTRY_H 18 #include "pandabase.h" 19 #include "geomCacheManager.h" 20 #include "referenceCount.h" 21 #include "config_gobj.h" 22 #include "pointerTo.h" 23 #include "mutexHolder.h" 37 virtual ~GeomCacheEntry();
39 PT(GeomCacheEntry) record(
Thread *current_thread);
40 void refresh(
Thread *current_thread);
41 PT(GeomCacheEntry) erase();
43 virtual void evict_callback();
44 virtual void output(ostream &out)
const;
49 INLINE
void remove_from_list();
50 INLINE
void insert_before(GeomCacheEntry *node);
53 GeomCacheEntry *_prev, *_next;
59 static void init_type() {
60 ReferenceCount::init_type();
61 register_type(_type_handle,
"GeomCacheEntry",
62 ReferenceCount::get_class_type());
71 INLINE ostream &operator << (ostream &out,
const GeomCacheEntry &entry);
73 #include "geomCacheEntry.I" This is an abstract base class for a family of classes that represent the fundamental geometry primit...
This is used to keep track of, and limit the size of, the cache of munged vertices, which would otherwise be distributed through all of the GeomVertexData objects in the system.
A container for geometry primitives.
A base class for all things that want to be reference-counted.
A thread; that is, a lightweight process.
This object contains a single cache entry in the GeomCacheManager.
TypeHandle is the identifier used to differentiate C++ class types.