diff options
author | Patrick Benavoli <patrick.benavoli@intel.com> | 2014-07-23 01:27:00 +0200 |
---|---|---|
committer | Eric Laurent <elaurent@google.com> | 2015-04-24 13:39:13 -0700 |
commit | 911844b16c6b627f421bc3368de427de3ca9f60c (patch) | |
tree | 223697b3ea168eca090cd06a673c7dbb7dea27de /parameter/Element.h | |
parent | 9ad87f08eb4cfa8752f4b9e7b9deb3bd219ff591 (diff) | |
download | external_parameter-framework-911844b16c6b627f421bc3368de427de3ca9f60c.zip external_parameter-framework-911844b16c6b627f421bc3368de427de3ca9f60c.tar.gz external_parameter-framework-911844b16c6b627f421bc3368de427de3ca9f60c.tar.bz2 |
Type mismatch corrections (Windows 64 bits)
This patch removes the type mismatch warnings revealed by Windows 64
compiler. Wherever necessary, used size_t type for size related data.
Change-Id: Ie045ce95940cd83fe8d681168ac9526fc6028d43
Signed-off-by: Patrick Benavoli <patrick.benavoli@intel.com>
Diffstat (limited to 'parameter/Element.h')
-rw-r--r-- | parameter/Element.h | 25 |
1 files changed, 22 insertions, 3 deletions
diff --git a/parameter/Element.h b/parameter/Element.h index fb5faee..c93e2c4 100644 --- a/parameter/Element.h +++ b/parameter/Element.h @@ -76,12 +76,31 @@ public: void listChildrenPaths(std::string& strChildPathList) const; // Hierarchy query - uint32_t getNbChildren() const; + size_t getNbChildren() const; CElement* findChildOfKind(const std::string& strKind); const CElement* findChildOfKind(const std::string& strKind) const; const CElement* getParent() const; - const CElement* getChild(uint32_t uiIndex) const; - CElement* getChild(uint32_t uiIndex); + + /** + * Get a child element (const) + * + * Note: this method will assert if given a wrong child index (>= number of children) + * + * @param[in] uiIndex the index of the child element from 0 to number of children - 1 + * @return the child element + */ + const CElement* getChild(size_t uiIndex) const; + + /** + * Get a child element + * + * Note: this method will assert if given a wrong child index (>= number of children) + * + * @param[in] uiIndex the index of the child element from 0 to number of children - 1 + * @return the child element + */ + CElement* getChild(size_t uiIndex); + const CElement* findChild(const std::string& strName) const; CElement* findChild(const std::string& strName); const CElement* findDescendant(CPathNavigator& pathNavigator) const; |