Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 814


Ignore:
Timestamp:
Feb 15, 2008, 4:37:30 PM (16 years ago)
Author:
landauf
Message:

cleaned up and added 4 get-iterator functions (begin and end of parents and children)

File:
1 edited

Legend:

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

    r813 r814  
    6060
    6161#include "ObjectList.h"
    62 //#include "IdentifierList.h"
    6362#include "Debug.h"
    6463#include "Iterator.h"
     
    116115            inline const std::list<const Identifier*>& getParents() const { return this->parents_; }
    117116
    118 //            /** @brief Returns the children of the class the Identifier belongs to. @return The list of all children */
    119 //            inline const std::list<const Identifier*>& getChildren() const { return (*this->children_); }
     117            /** @brief Returns the begin-iterator of the parents-list. @return The begin-iterator */
     118            inline std::list<const Identifier*>::const_iterator getParentsBegin() const { return this->parents_.begin(); }
     119
     120            /** @brief Returns the end-iterator of the parents-list. @return The end-iterator */
     121            inline std::list<const Identifier*>::const_iterator getParentsEnd() const { return this->parents_.end(); }
     122
     123            /** @brief Returns the begin-iterator of the children-list. @return The begin-iterator */
     124            inline std::list<const Identifier*>::const_iterator getChildrenBegin() const { return this->children_->begin(); }
     125
     126            /** @brief Returns the end-iterator of the children-list. @return The end-iterator */
     127            inline std::list<const Identifier*>::const_iterator getChildrenEnd() const { return this->children_->end(); }
    120128
    121129            /** @brief Returns true, if a branch of the class-hierarchy is being created, causing all new objects to store their parents. @return The status of the class-hierarchy creation */
     
    168176            static bool identifierIsInList(const Identifier* identifier, const std::list<const Identifier*>& list);
    169177
    170 //            IdentifierList parents_;                                    //!< The Parents of the class the Identifier belongs to
    171 //            IdentifierList* children_;                                  //!< The Children of the class the Identifier belongs to
    172178            std::list<const Identifier*> parents_;                      //!< The Parents of the class the Identifier belongs to
    173179            std::list<const Identifier*>* children_;                    //!< The Children of the class the Identifier belongs to
Note: See TracChangeset for help on using the changeset viewer.