From d0f42c92310f10429855baec4358b73b1bfafac6 Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Thu, 27 Jan 2005 13:23:46 +0000 Subject: [PATCH] From Chris Hanson, minor tweaks to docs on getDescriptions. --- include/osg/Node | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/include/osg/Node b/include/osg/Node index dd1886276..cf5891792 100644 --- a/include/osg/Node +++ b/include/osg/Node @@ -198,19 +198,24 @@ class SG_EXPORT Node : public Object /** A vector of std::string's which are used to describe the object.*/ typedef std::vector DescriptionList; - /** Set the description list of the const node.*/ + /** Set the description list of the node.*/ inline void setDescriptions(const DescriptionList& descriptions) { _descriptions=descriptions; } - /** Get the description list of the const node.*/ - inline const DescriptionList& getDescriptions() const { return _descriptions; } - /** Get the description list of the const node.*/ + + /** Get the description list of the node.*/ inline DescriptionList& getDescriptions() { return _descriptions; } + /** Get the const description list of the const node.*/ + inline const DescriptionList& getDescriptions() const { return _descriptions; } + /** Get a single const description of the const node.*/ inline const std::string& getDescription(unsigned int i) const { return _descriptions[i]; } + /** Get a single description of the node.*/ inline std::string& getDescription(unsigned int i) { return _descriptions[i]; } + /** Get the number of descriptions of the node.*/ inline unsigned int getNumDescriptions() const { return _descriptions.size(); } + /** Add a description string to the node.*/ void addDescription(const std::string& desc) { _descriptions.push_back(desc); }