Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Nov 6, 2007, 1:40:00 AM (16 years ago)
Author:
landauf
Message:

some features work perfectly,
some features are fucked up,
some features arent yet implemented.

x3n→hair→brightness++;

theres still a lot to do, but i can see the light on the end of the tunnel.
templates, makros, operator overloading, function pointers… the beauty of the beast. i'm in love and still dying piece by piece with every line of code i'm writing.
</film noir>

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/objecthierarchie/src/ClassHierarchy.cc

    r162 r172  
    11#include "ClassHierarchy.h"
     2#include "OrxonoxClass.h"
    23
    34namespace orxonox
     
    2728        this->allChildren_ = new IdentifierList();
    2829        this->objects_ = new ObjectList();
     30    }
     31
     32    Identifier::~Identifier()
     33    {
     34        delete this->directParents_;
     35        delete this->allParents_;
     36        delete this->directChildren_;
     37        delete this->allChildren_;
     38        delete this->objects_;
     39        delete &this->name_;
    2940    }
    3041
     
    94105    }
    95106
    96     bool Identifier::isDirectA(Identifier* identifier)
     107    bool Identifier::isDirectlyA(Identifier* identifier)
    97108    {
    98109        return (identifier == this);
     
    190201    }
    191202
     203    std::string IdentifierList::toString()
     204    {
     205        IdentifierListElement* temp = this->first_;
     206        std::string output = "";
     207
     208        while (temp)
     209        {
     210            output += temp->identifier_->getName();
     211            output += " ";
     212
     213            temp = temp->next_;
     214        }
     215
     216        return output;
     217    }
     218
    192219
    193220    // ###############################
     
    199226        this->next_ = NULL;
    200227        this->bDirect_ = true;
     228    }
     229
     230    IdentifierListElement::~IdentifierListElement()
     231    {
    201232    }
    202233
     
    268299    }
    269300
     301    ObjectListElement::~ObjectListElement()
     302    {
     303    }
     304
    270305
    271306    // ###############################
     
    284319    ClassHierarchy::ClassHierarchy()
    285320    {
    286         this->bCreatingHierarchy_ = false;
     321        this->hierarchyCreatingCounter_ = 0;
     322    }
     323
     324    ClassHierarchy::~ClassHierarchy()
     325    {
     326      this->pointer_ = NULL;
    287327    }
    288328}
Note: See TracChangeset for help on using the changeset viewer.