Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 1757 for code/trunk/src/util


Ignore:
Timestamp:
Sep 10, 2008, 2:30:36 AM (16 years ago)
Author:
landauf
Message:

added ClassTreeMaskObjectIterator
this iterator iterates through all objects of all classes, included by a given ClassTreeMask.

Note: The ClassTreeMaskObjectIterator is fast if you only include classes. If you exclude a subclass of an included class, the performance is not that good.
If we'll use this more often, we have to think about a new implementation, using a second ObjectList with all objects of exactly one class.

Additionally, there is a small change in MultiType.h

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/trunk/src/util/MultiType.h

    r1747 r1757  
    164164        inline ~MultiType() { if (this->value_) { delete this->value_; } }
    165165
    166         template <typename V> inline MultiType& operator=(const V& value)         { this->setValue(value); return (*this); }
    167         inline                       MultiType& operator=(const MultiType& other) { this->setValue(other); return (*this); }
    168         inline                       MultiType& operator=(MT_Type type)           { this->setType(type);   return (*this); }
     166        template <typename V> inline const MultiType& operator=(const V& value)         { this->setValue(value); return (*this); }
     167        inline                       const MultiType& operator=(const MultiType& other) { this->setValue(other); return (*this); }
     168        inline                       const MultiType& operator=(MT_Type type)           { this->setType(type);   return (*this); }
    169169
    170170        inline void                                   setValue(const char& value);
Note: See TracChangeset for help on using the changeset viewer.