Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Feb 12, 2008, 8:36:19 PM (16 years ago)
Author:
landauf
Message:
  • fixed a small bug in ClassTreeMask
  • added more operators to ClassTreeMask
  • added testing code for ClassTreeMask
File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/core/src/orxonox/core/ClassTreeMask.h

    r803 r807  
    7777        private:
    7878            std::stack<std::pair<std::list<ClassTreeMaskNode*>::iterator, std::list<ClassTreeMaskNode*>::iterator> > nodes_;
     79            std::list<ClassTreeMaskNode*> rootlist_;
    7980    };
    8081
     
    8384        public:
    8485            ClassTreeMask();
     86            ClassTreeMask(const ClassTreeMask& other);
    8587            ~ClassTreeMask();
    8688
     
    9496            bool isExcluded(const Identifier* subclass) const;
    9597
     98            ClassTreeMask& operator=(const ClassTreeMask& other);
     99
     100            ClassTreeMask& operator+();
     101            ClassTreeMask operator-() const;
     102
    96103            ClassTreeMask operator+(const ClassTreeMask& other) const;
    97104            ClassTreeMask operator*(const ClassTreeMask& other) const;
     105            ClassTreeMask operator-(const ClassTreeMask& other) const;
    98106            ClassTreeMask operator!() const;
    99             ClassTreeMask operator-(const ClassTreeMask& other) const;
     107
     108            ClassTreeMask& operator+=(const ClassTreeMask& other);
     109            ClassTreeMask& operator*=(const ClassTreeMask& other);
     110            ClassTreeMask& operator-=(const ClassTreeMask& other);
    100111
    101112            ClassTreeMask operator&(const ClassTreeMask& other) const;
     
    103114            ClassTreeMask operator^(const ClassTreeMask& other) const;
    104115            ClassTreeMask operator~() const;
     116
     117            ClassTreeMask& operator&=(const ClassTreeMask& other);
     118            ClassTreeMask& operator|=(const ClassTreeMask& other);
     119            ClassTreeMask& operator^=(const ClassTreeMask& other);
     120
     121            friend std::ostream& operator<<(std::ostream& out, const ClassTreeMask& mask);
    105122
    106123        private:
Note: See TracChangeset for help on using the changeset viewer.