00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021 INLINE TypedObject::
00022 TypedObject() {
00023 }
00024
00025
00026
00027
00028
00029
00030 INLINE TypedObject::
00031 TypedObject(const TypedObject &) {
00032 }
00033
00034
00035
00036
00037
00038
00039 INLINE void TypedObject::
00040 operator = (const TypedObject &) {
00041 }
00042
00043
00044
00045
00046
00047
00048
00049
00050
00051 INLINE int TypedObject::
00052 get_type_index() const {
00053 return get_type().get_index();
00054 }
00055
00056
00057
00058
00059
00060
00061
00062 INLINE bool TypedObject::
00063 is_of_type(TypeHandle handle) const {
00064 return get_type().is_derived_from(handle, (TypedObject *)this);
00065 }
00066
00067
00068
00069
00070
00071
00072
00073 INLINE bool TypedObject::
00074 is_exact_type(TypeHandle handle) const {
00075 #ifndef NDEBUG
00076
00077 get_type().get_name((TypedObject *)this);
00078 #endif
00079 return get_type() == handle;
00080 }
00081
00082
00083
00084
00085
00086
00087 INLINE int TypedObject::
00088 get_best_parent_from_Set(const std::set<int> &inset) const {
00089 return get_type().get_best_parent_from_Set(inset);
00090 }
00091
00092
00093
00094
00095
00096
00097
00098 INLINE TypedObject *TypedObject::
00099 as_typed_object() {
00100 return this;
00101 }
00102
00103
00104
00105
00106
00107
00108
00109 INLINE const TypedObject *TypedObject::
00110 as_typed_object() const {
00111 return this;
00112 }
00113