Changeset 1afcbe for src/Patterns/Factory.hpp
- Timestamp:
- Jan 5, 2011, 11:08:49 AM (15 years ago)
- Children:
- d76c105
- Parents:
- 724564
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/Patterns/Factory.hpp
r724564 r1afcbe 92 92 * #define Abstract_Encapsulation_Class RandomNumberDistribution_Encapsulation 93 93 * #define type_name_space boost:: 94 * #undef type_suffix 94 95 * 95 96 * #endif //RANDOMNUMBERDISTRIBUTIONFACTORY_DEF_ … … 100 101 * \a Abstract_Encapsulation_Class is the class name of the (templated) 101 102 * encapsulation class of each type. Optionally, these types may reside in 102 * some other name_space, define this one via type_name_space (with suffixes 103 * double colons!). Note that the first two and the last line are just 104 * to avoid double inclusion, also the define made therein is used for the 105 * following step ... 103 * some other name_space, define this one via \a type_name_space (with suffixes 104 * double colons!). If you need something appended to each type, such as "<>" 105 * then add in \a type_suffix. Note that the first two and the last line are 106 * just to avoid double inclusion, also the define made therein is used for 107 * the following step ... 106 108 * - create the undefine file "RandomNumberDistributionFactory.undef" which 107 109 * undefines all the previously made definitions to allow for more factories … … 116 118 * #undef Abstract_Encapsulation_Class 117 119 * #undef type_name_space 120 * #undef type_suffix 118 121 * 119 122 * #undef RANDOMNUMBERDISTRIBUTIONFACTORY_DEF_ … … 149 152 * #include "RandomNumberDistributionFactory.def" 150 153 * #include "CodePatterns/FactoryTypeList.hpp" 154 * #include "RandomNumberDistributionFactory.undef" 151 155 * #include "CodePatterns/Factory.hpp" 152 156 * @endcode … … 189 193 class Factory : public FactoryTypeList<T> 190 194 { 191 friend class FactoryTest;192 193 195 public: 194 196 /** Constructor of class Factory.
Note:
See TracChangeset
for help on using the changeset viewer.