Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Apr 18, 2015, 1:07:08 PM (9 years ago)
Author:
landauf
Message:

use lists instead of sets to store parent identifiers. this allows to store the exact order of initialization of parent classes.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/core7/test/core/class/IdentifierClassHierarchyTest.cc

    r10360 r10372  
    1919    namespace
    2020    {
    21         class BaseInterface1 : public OrxonoxInterface
     21        class BaseInterface1 : virtual public OrxonoxInterface
    2222        {
    2323            public:
     
    3030        };
    3131
    32         class BaseInterface2 : public OrxonoxInterface
     32        class BaseInterface2 : virtual public OrxonoxInterface
    3333        {
    3434            public:
     
    155155        };
    156156
     157        bool contains(const std::list<const Identifier*> identifiers, Identifier* identifier)
     158        {
     159            return std::find(identifiers.begin(), identifiers.end(), identifier) != identifiers.end();
     160        }
     161
    157162        bool contains(const std::set<const Identifier*> identifiers, Identifier* identifier)
    158163        {
Note: See TracChangeset for help on using the changeset viewer.