14#ifndef NODECACHEDREFERENCECOUNT_H
15#define NODECACHEDREFERENCECOUNT_H
57 INLINE
int get_node_ref_count()
const;
58 INLINE
void node_ref()
const;
59 INLINE
bool node_unref()
const;
67 INLINE
int get_referenced_bits()
const;
70 INLINE
void node_unref_only()
const;
71 bool do_test_ref_count_integrity()
const;
74 AtomicAdjust::Integer _node_ref_count;
81 static void init_type() {
82 CachedTypedWritableReferenceCount::init_type();
84 CachedTypedWritableReferenceCount::get_class_type());
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
This is a special extension to ReferenceCount that includes dual reference counts: the standard refer...
bool test_ref_count_integrity() const
Does some easy checks to make sure that the reference count isn't completely bogus.
This class further specializes CachedTypedWritableReferenceCount to also add a node_ref_count,...
TypeHandle is the identifier used to differentiate C++ class types.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
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(),...