00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024 template<class Type>
00025 INLINE Type *Factory<Type>::
00026 make_instance(TypeHandle handle, const FactoryParams ¶ms) {
00027 return (Type *)FactoryBase::make_instance(handle, params);
00028 }
00029
00030
00031
00032
00033
00034
00035
00036
00037
00038
00039
00040
00041
00042
00043 template<class Type>
00044 INLINE Type *Factory<Type>::
00045 make_instance(const string &type_name, const FactoryParams ¶ms) {
00046 return (Type *)FactoryBase::make_instance(type_name, params);
00047 }
00048
00049
00050
00051
00052
00053
00054
00055
00056
00057 template<class Type>
00058 INLINE Type *Factory<Type>::
00059 make_instance_more_general(TypeHandle handle, const FactoryParams ¶ms) {
00060 return (Type *)FactoryBase::make_instance_more_general(handle, params);
00061 }
00062
00063
00064
00065
00066
00067
00068
00069
00070
00071
00072
00073
00074
00075 template<class Type>
00076 INLINE Type *Factory<Type>::
00077 make_instance_more_general(const string &type_name,
00078 const FactoryParams ¶ms) {
00079 return (Type *)FactoryBase::make_instance_more_general(type_name, params);
00080 }
00081
00082
00083
00084
00085
00086
00087
00088 template<class Type>
00089 INLINE void Factory<Type>::
00090 register_factory(TypeHandle handle, CreateFunc *func) {
00091 FactoryBase::register_factory(handle, (BaseCreateFunc *)func);
00092 }