Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 5447 in orxonox.OLD for trunk/src/util


Ignore:
Timestamp:
Oct 29, 2005, 1:14:24 PM (19 years ago)
Author:
bensch
Message:

orxonox/trunk: Explosions on Collision (—HACK—)
also made the FastFactory faster, not turning through the GarbageCollector, as it is not necessary. FastFactory also implements a Static Memeber subscriptor-Macro now
last but not least: new Functions in The ParticleEngine, and some revisited

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/util/fast_factory.h

    r5357 r5447  
    2929 */
    3030#define CREATE_FAST_FACTORY(CLASS_NAME, CLASS_ID) \
    31   tFastFactory<CLASS_NAME>* global_##CLASS_NAME##_FastFactory = tFastFactory<CLASS_NAME>::getFastFactory(CLASS_ID, #CLASS_NAME)
     31  FastFactory* global_##CLASS_NAME##_FastFactory = tFastFactory<CLASS_NAME>::getFastFactory(CLASS_ID, #CLASS_NAME)
     32/**
     33 * Creates a FastFactory for a Class' static function named ClassName::fastFactory.
     34 * @param CLASS_NAME the name of the Class to create the fast-factory for.
     35 * @param CLASS_ID the ID of the class to create the fast-factory for @see "class_id.h"
     36 *
     37 * notice, that the Class to be called, must implement:
     38 * static FastFactory*         fastFactory;
     39 */
     40#define CREATE_FAST_FACTORY_STATIC(CLASS_NAME, CLASS_ID) \
     41  FastFactory* CLASS_NAME::fastFactory = tFastFactory<CLASS_NAME>::getFastFactory(CLASS_ID, #CLASS_NAME)
    3242
    3343//! A struct, that holds Lists of Objects of a certain type.
Note: See TracChangeset for help on using the changeset viewer.