Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jun 29, 2008, 7:36:33 PM (16 years ago)
Author:
nicolasc
Message:

just a test - don't morge this

File:
1 edited

Legend:

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

    r1581 r1634  
    100100        public:
    101101            /** @brief Sets the Factory. @param factory The factory to assign */
    102             inline void addFactory(BaseFactory* factory) { this->factory_ = factory; }
     102            void addFactory(BaseFactory* factory) { this->factory_ = factory; }
    103103
    104104            BaseObject* fabricate();
     
    115115
    116116            /** @brief Returns the name of the class the Identifier belongs to. @return The name */
    117             inline const std::string& getName() const { return this->name_; }
     117            const std::string& getName() const { return this->name_; }
    118118
    119119
    120120            /** @brief Returns the parents of the class the Identifier belongs to. @return The list of all parents */
    121             inline const std::set<const Identifier*>& getParents() const { return this->parents_; }
     121            const std::set<const Identifier*>& getParents() const { return this->parents_; }
    122122            /** @brief Returns the begin-iterator of the parents-list. @return The begin-iterator */
    123             inline std::set<const Identifier*>::const_iterator getParentsBegin() const { return this->parents_.begin(); }
     123            std::set<const Identifier*>::const_iterator getParentsBegin() const { return this->parents_.begin(); }
    124124            /** @brief Returns the end-iterator of the parents-list. @return The end-iterator */
    125             inline std::set<const Identifier*>::const_iterator getParentsEnd() const { return this->parents_.end(); }
     125            std::set<const Identifier*>::const_iterator getParentsEnd() const { return this->parents_.end(); }
    126126
    127127            /** @brief Returns the children of the class the Identifier belongs to. @return The list of all children */
    128             inline const std::set<const Identifier*>& getChildren() const { return (*this->children_); }
     128            const std::set<const Identifier*>& getChildren() const { return (*this->children_); }
    129129            /** @brief Returns the begin-iterator of the children-list. @return The begin-iterator */
    130             inline std::set<const Identifier*>::const_iterator getChildrenBegin() const { return this->children_->begin(); }
     130            std::set<const Identifier*>::const_iterator getChildrenBegin() const { return this->children_->begin(); }
    131131            /** @brief Returns the end-iterator of the children-list. @return The end-iterator */
    132             inline std::set<const Identifier*>::const_iterator getChildrenEnd() const { return this->children_->end(); }
     132            std::set<const Identifier*>::const_iterator getChildrenEnd() const { return this->children_->end(); }
    133133
    134134            /** @brief Returns the direct parents of the class the Identifier belongs to. @return The list of all direct parents */
    135             inline const std::set<const Identifier*>& getDirectParents() const { return this->directParents_; }
     135            const std::set<const Identifier*>& getDirectParents() const { return this->directParents_; }
    136136            /** @brief Returns the begin-iterator of the direct-parents-list. @return The begin-iterator */
    137             inline std::set<const Identifier*>::const_iterator getDirectParentsBegin() const { return this->directParents_.begin(); }
     137            std::set<const Identifier*>::const_iterator getDirectParentsBegin() const { return this->directParents_.begin(); }
    138138            /** @brief Returns the end-iterator of the direct-parents-list. @return The end-iterator */
    139             inline std::set<const Identifier*>::const_iterator getDirectParentsEnd() const { return this->directParents_.end(); }
     139            std::set<const Identifier*>::const_iterator getDirectParentsEnd() const { return this->directParents_.end(); }
    140140
    141141            /** @brief Returns the direct children the class the Identifier belongs to. @return The list of all direct children */
    142             inline const std::set<const Identifier*>& getDirectChildren() const { return (*this->directChildren_); }
     142            const std::set<const Identifier*>& getDirectChildren() const { return (*this->directChildren_); }
    143143            /** @brief Returns the begin-iterator of the direct-children-list. @return The begin-iterator */
    144             inline std::set<const Identifier*>::const_iterator getDirectChildrenBegin() const { return this->directChildren_->begin(); }
     144            std::set<const Identifier*>::const_iterator getDirectChildrenBegin() const { return this->directChildren_->begin(); }
    145145            /** @brief Returns the end-iterator of the direct-children-list. @return The end-iterator */
    146             inline std::set<const Identifier*>::const_iterator getDirectChildrenEnd() const { return this->directChildren_->end(); }
     146            std::set<const Identifier*>::const_iterator getDirectChildrenEnd() const { return this->directChildren_->end(); }
    147147
    148148
    149149            /** @brief Returns the map that stores all Identifiers. @return The map */
    150             static inline const std::map<std::string, Identifier*>& getIdentifierMap() { return Identifier::getIdentifierMapIntern(); }
     150            static const std::map<std::string, Identifier*>& getIdentifierMap() { return Identifier::getIdentifierMapIntern(); }
    151151            /** @brief Returns a const_iterator to the beginning of the map that stores all Identifiers. @return The const_iterator */
    152             static inline std::map<std::string, Identifier*>::const_iterator getIdentifierMapBegin() { return Identifier::getIdentifierMap().begin(); }
     152            static std::map<std::string, Identifier*>::const_iterator getIdentifierMapBegin() { return Identifier::getIdentifierMap().begin(); }
    153153            /** @brief Returns a const_iterator to the end of the map that stores all Identifiers. @return The const_iterator */
    154             static inline std::map<std::string, Identifier*>::const_iterator getIdentifierMapEnd() { return Identifier::getIdentifierMap().end(); }
     154            static std::map<std::string, Identifier*>::const_iterator getIdentifierMapEnd() { return Identifier::getIdentifierMap().end(); }
    155155
    156156            /** @brief Returns the map that stores all Identifiers with their names in lowercase. @return The map */
    157             static inline const std::map<std::string, Identifier*>& getLowercaseIdentifierMap() { return Identifier::getLowercaseIdentifierMapIntern(); }
     157            static const std::map<std::string, Identifier*>& getLowercaseIdentifierMap() { return Identifier::getLowercaseIdentifierMapIntern(); }
    158158            /** @brief Returns a const_iterator to the beginning of the map that stores all Identifiers with their names in lowercase. @return The const_iterator */
    159             static inline std::map<std::string, Identifier*>::const_iterator getLowercaseIdentifierMapBegin() { return Identifier::getLowercaseIdentifierMap().begin(); }
     159            static std::map<std::string, Identifier*>::const_iterator getLowercaseIdentifierMapBegin() { return Identifier::getLowercaseIdentifierMap().begin(); }
    160160            /** @brief Returns a const_iterator to the end of the map that stores all Identifiers with their names in lowercase. @return The const_iterator */
    161             static inline std::map<std::string, Identifier*>::const_iterator getLowercaseIdentifierMapEnd() { return Identifier::getLowercaseIdentifierMap().end(); }
     161            static std::map<std::string, Identifier*>::const_iterator getLowercaseIdentifierMapEnd() { return Identifier::getLowercaseIdentifierMap().end(); }
    162162
    163163
    164164            /** @brief Returns the map that stores all config values. @return The const_iterator */
    165             inline const std::map<std::string, ConfigValueContainer*>& getConfigValueMap() const { return this->configValues_; }
     165            const std::map<std::string, ConfigValueContainer*>& getConfigValueMap() const { return this->configValues_; }
    166166            /** @brief Returns a const_iterator to the beginning of the map that stores all config values. @return The const_iterator */
    167             inline std::map<std::string, ConfigValueContainer*>::const_iterator getConfigValueMapBegin() const { return this->configValues_.begin(); }
     167            std::map<std::string, ConfigValueContainer*>::const_iterator getConfigValueMapBegin() const { return this->configValues_.begin(); }
    168168            /** @brief Returns a const_iterator to the end of the map that stores all config values. @return The const_iterator */
    169             inline std::map<std::string, ConfigValueContainer*>::const_iterator getConfigValueMapEnd() const { return this->configValues_.end(); }
     169            std::map<std::string, ConfigValueContainer*>::const_iterator getConfigValueMapEnd() const { return this->configValues_.end(); }
    170170
    171171            /** @brief Returns the map that stores all config values with their names in lowercase. @return The const_iterator */
    172             inline const std::map<std::string, ConfigValueContainer*>& getLowercaseConfigValueMap() const { return this->configValues_LC_; }
     172            const std::map<std::string, ConfigValueContainer*>& getLowercaseConfigValueMap() const { return this->configValues_LC_; }
    173173            /** @brief Returns a const_iterator to the beginning of the map that stores all config values with their names in lowercase. @return The const_iterator */
    174             inline std::map<std::string, ConfigValueContainer*>::const_iterator getLowercaseConfigValueMapBegin() const { return this->configValues_LC_.begin(); }
     174            std::map<std::string, ConfigValueContainer*>::const_iterator getLowercaseConfigValueMapBegin() const { return this->configValues_LC_.begin(); }
    175175            /** @brief Returns a const_iterator to the end of the map that stores all config values with their names in lowercase. @return The const_iterator */
    176             inline std::map<std::string, ConfigValueContainer*>::const_iterator getLowercaseConfigValueMapEnd() const { return this->configValues_LC_.end(); }
     176            std::map<std::string, ConfigValueContainer*>::const_iterator getLowercaseConfigValueMapEnd() const { return this->configValues_LC_.end(); }
    177177
    178178
    179179            /** @brief Returns the map that stores all console commands. @return The const_iterator */
    180             inline const std::map<std::string, ConsoleCommand*>& getConsoleCommandMap() const { return this->consoleCommands_; }
     180            const std::map<std::string, ConsoleCommand*>& getConsoleCommandMap() const { return this->consoleCommands_; }
    181181            /** @brief Returns a const_iterator to the beginning of the map that stores all console commands. @return The const_iterator */
    182             inline std::map<std::string, ConsoleCommand*>::const_iterator getConsoleCommandMapBegin() const { return this->consoleCommands_.begin(); }
     182            std::map<std::string, ConsoleCommand*>::const_iterator getConsoleCommandMapBegin() const { return this->consoleCommands_.begin(); }
    183183            /** @brief Returns a const_iterator to the end of the map that stores all console commands. @return The const_iterator */
    184             inline std::map<std::string, ConsoleCommand*>::const_iterator getConsoleCommandMapEnd() const { return this->consoleCommands_.end(); }
     184            std::map<std::string, ConsoleCommand*>::const_iterator getConsoleCommandMapEnd() const { return this->consoleCommands_.end(); }
    185185
    186186            /** @brief Returns the map that stores all console commands with their names in lowercase. @return The const_iterator */
    187             inline const std::map<std::string, ConsoleCommand*>& getLowercaseConsoleCommandMap() const { return this->consoleCommands_LC_; }
     187            const std::map<std::string, ConsoleCommand*>& getLowercaseConsoleCommandMap() const { return this->consoleCommands_LC_; }
    188188            /** @brief Returns a const_iterator to the beginning of the map that stores all console commands with their names in lowercase. @return The const_iterator */
    189             inline std::map<std::string, ConsoleCommand*>::const_iterator getLowercaseConsoleCommandMapBegin() const { return this->consoleCommands_LC_.begin(); }
     189            std::map<std::string, ConsoleCommand*>::const_iterator getLowercaseConsoleCommandMapBegin() const { return this->consoleCommands_LC_.begin(); }
    190190            /** @brief Returns a const_iterator to the end of the map that stores all console commands with their names in lowercase. @return The const_iterator */
    191             inline std::map<std::string, ConsoleCommand*>::const_iterator getLowercaseConsoleCommandMapEnd() const { return this->consoleCommands_LC_.end(); }
     191            std::map<std::string, ConsoleCommand*>::const_iterator getLowercaseConsoleCommandMapEnd() const { return this->consoleCommands_LC_.end(); }
    192192
    193193
    194194            /** @brief Returns true if this class has at least one config value. @return True if this class has at least one config value */
    195             inline bool hasConfigValues() const { return this->bHasConfigValues_; }
     195            bool hasConfigValues() const { return this->bHasConfigValues_; }
    196196            /** @brief Returns true if this class has at least one console command. @return True if this class has at least one console command */
    197             inline bool hasConsoleCommands() const { return this->bHasConsoleCommands_; }
     197            bool hasConsoleCommands() const { return this->bHasConsoleCommands_; }
    198198
    199199            /** @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 */
    200             inline static bool isCreatingHierarchy() { return (hierarchyCreatingCounter_s > 0); }
     200            static bool isCreatingHierarchy() { return (hierarchyCreatingCounter_s > 0); }
    201201
    202202            /** @brief Returns the network ID to identify a class through the network. @return the network ID */
    203             inline const unsigned int getNetworkID() const { return this->classID_; }
     203            const unsigned int getNetworkID() const { return this->classID_; }
    204204
    205205            /** @brief Sets the network ID to a new value. @param id The new value */
     
    233233
    234234            /** @brief Returns the children of the class the Identifier belongs to. @return The list of all children */
    235             inline std::set<const Identifier*>& getChildrenIntern() const { return (*this->children_); }
     235            std::set<const Identifier*>& getChildrenIntern() const { return (*this->children_); }
    236236            /** @brief Returns the direct children of the class the Identifier belongs to. @return The list of all direct children */
    237             inline std::set<const Identifier*>& getDirectChildrenIntern() const { return (*this->directChildren_); }
     237            std::set<const Identifier*>& getDirectChildrenIntern() const { return (*this->directChildren_); }
    238238
    239239            /**
    240240                @brief Increases the hierarchyCreatingCounter_s variable, causing all new objects to store their parents.
    241241            */
    242             inline static void startCreatingHierarchy()
     242            static void startCreatingHierarchy()
    243243            {
    244244                hierarchyCreatingCounter_s++;
     
    249249                @brief Decreases the hierarchyCreatingCounter_s variable, causing the objects to stop storing their parents.
    250250            */
    251             inline static void stopCreatingHierarchy()
     251            static void stopCreatingHierarchy()
    252252            {
    253253                hierarchyCreatingCounter_s--;
     
    302302            void setName(const std::string& name);
    303303            /** @brief Returns the list of all existing objects of this class. @return The list */
    304             inline ObjectList<T>* getObjects() const { return this->objects_; }
     304            ObjectList<T>* getObjects() const { return this->objects_; }
    305305            /** @brief Returns a list of all existing objects of this class. @return The list */
    306             inline ObjectList<BaseObject>* getObjectList() const { return (ObjectList<BaseObject>*)this->objects_; }
     306            ObjectList<BaseObject>* getObjectList() const { return (ObjectList<BaseObject>*)this->objects_; }
    307307
    308308            void updateConfigValues() const;
     
    586586
    587587            /** @brief Returns the assigned identifier. @return The identifier */
    588             inline const Identifier* getIdentifier() const
     588            const Identifier* getIdentifier() const
    589589                { return this->identifier_; }
    590590
    591591            /** @brief Returns true, if the assigned identifier is at least of the given type. @param identifier The identifier to compare with */
    592             inline bool isA(const Identifier* identifier) const
     592            bool isA(const Identifier* identifier) const
    593593                { return this->identifier_->isA(identifier); }
    594594
    595595            /** @brief Returns true, if the assigned identifier is exactly of the given type. @param identifier The identifier to compare with */
    596             inline bool isExactlyA(const Identifier* identifier) const
     596            bool isExactlyA(const Identifier* identifier) const
    597597                { return this->identifier_->isExactlyA(identifier); }
    598598
    599599            /** @brief Returns true, if the assigned identifier is a child of the given identifier. @param identifier The identifier to compare with */
    600             inline bool isChildOf(const Identifier* identifier) const
     600            bool isChildOf(const Identifier* identifier) const
    601601                { return this->identifier_->isChildOf(identifier); }
    602602
    603603            /** @brief Returns true, if the assigned identifier is a direct child of the given identifier. @param identifier The identifier to compare with */
    604             inline bool isDirectChildOf(const Identifier* identifier) const
     604            bool isDirectChildOf(const Identifier* identifier) const
    605605                { return this->identifier_->isDirectChildOf(identifier); }
    606606
    607607            /** @brief Returns true, if the assigned identifier is a parent of the given identifier. @param identifier The identifier to compare with */
    608             inline bool isParentOf(const Identifier* identifier) const
     608            bool isParentOf(const Identifier* identifier) const
    609609                { return this->identifier_->isParentOf(identifier); }
    610610
    611611            /** @brief Returns true, if the assigned identifier is a direct parent of the given identifier. @param identifier The identifier to compare with */
    612             inline bool isDirectParentOf(const Identifier* identifier) const
     612            bool isDirectParentOf(const Identifier* identifier) const
    613613                { return this->identifier_->isDirectParentOf(identifier); }
    614614
Note: See TracChangeset for help on using the changeset viewer.