- Timestamp:
- Mar 23, 2013, 4:34:14 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/core6/src/libraries/core/SubclassIdentifier.h
r8858 r9556 53 53 There are two possibilities to create an object out of a SubclassIdentifier: Either you just use 54 54 the @c fabricate() function of the assigned Identifier through the overloaded @c operator->, which 55 returns a @c BaseObject* pointer, or you use the function of SubclassIdentifier, this time by using55 returns a @c OrxonoxClass* pointer, or you use the function of SubclassIdentifier, this time by using 56 56 @c operator., which returns a @c BaseClass* pointer (@a BaseClass is the baseclass specified by the 57 57 template argument): 58 58 @code 59 identifier->fabricate(); // calls Identifier::fabricate(), creates a SubClass, returns a BaseObject* pointer59 identifier->fabricate(); // calls Identifier::fabricate(), creates a SubClass, returns a OrxonoxClass* pointer 60 60 61 61 identifier.fabricate(); // calls SubclassIdentifier::fabricate(), creates a SubClass, returns a BaseClass* pointer … … 165 165 T* fabricate(BaseObject* creator) const 166 166 { 167 BaseObject* newObject = this->identifier_->fabricate(creator);167 OrxonoxClass* newObject = this->identifier_->fabricate(creator); 168 168 169 169 // Check if the creation was successful
Note: See TracChangeset
for help on using the changeset viewer.