00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015 #ifndef TYPEDREFERENCECOUNT_H
00016 #define TYPEDREFERENCECOUNT_H
00017
00018 #include "pandabase.h"
00019
00020 #include "typedObject.h"
00021 #include "referenceCount.h"
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034
00035 class EXPCL_PANDAEXPRESS TypedReferenceCount : public TypedObject, public ReferenceCount {
00036 public:
00037 INLINE TypedReferenceCount();
00038 INLINE TypedReferenceCount(const TypedReferenceCount ©);
00039 INLINE void operator = (const TypedReferenceCount ©);
00040
00041 public:
00042 virtual TypeHandle get_type() const {
00043 return get_class_type();
00044 }
00045 virtual TypeHandle force_init_type() {init_type(); return get_class_type();}
00046
00047 PUBLISHED:
00048 static TypeHandle get_class_type() {
00049 return _type_handle;
00050 }
00051
00052 public:
00053 static void init_type() {
00054 TypedObject::init_type();
00055 ReferenceCount::init_type();
00056 register_type(_type_handle, "TypedReferenceCount",
00057 TypedObject::get_class_type(),
00058 ReferenceCount::get_class_type());
00059 }
00060
00061 private:
00062 static TypeHandle _type_handle;
00063 };
00064
00065 #include "typedReferenceCount.I"
00066
00067 #endif
00068