From a715fef8e0174be2c668e9fecbc7638d7fbdf03a Mon Sep 17 00:00:00 2001 From: Craig Dowell Date: Wed, 21 Jan 2009 00:28:47 -0800 Subject: [PATCH] a little more doxygen for object-names.h --- src/core/object-names.h | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/src/core/object-names.h b/src/core/object-names.h index b53e5e955..aa525bd77 100644 --- a/src/core/object-names.h +++ b/src/core/object-names.h @@ -55,6 +55,8 @@ public: * name to be defined. * \param name The name of the object you want to associate. * \param obj A smart pointer to the object itself. + * + * \returns true if the association was successfully completed, false otherwise */ static bool Add (Ptr context, std::string name, Ptr object); @@ -69,6 +71,8 @@ public: * under which you want this name to be defined. * \param name The name of the object you want to associate. * \param obj A smart pointer to the object itself. + * + * \returns true if the association was successfully completed, false otherwise */ static bool Add (std::string context, std::string name, Ptr object); @@ -87,6 +91,8 @@ public: * * \param object A spart pointer to an object for which you want to find * its shortname. + * + * \returns a string containing the shortname of the object. */ static std::string FindShortName (Ptr object); @@ -106,6 +112,8 @@ public: * * \param object A spart pointer to an object for which you want to find * its fullname. + * + * \returns a string containing the fullname of the object. */ static std::string FindFullName (Ptr object); @@ -121,6 +129,9 @@ public: * * \param name A string containing a fully qualified name space name * used to locate the object. + * + * \returns a smart pointer to the named object converted to the requested + * type. */ template static Ptr FindObjectFromFullName (std::string name); @@ -138,6 +149,10 @@ public: * \param name A string containing a fully qualified name space name * used to locate the object. * + * + * \returns a smart pointer to the named object converted to the requested + * type. + * * @comment This method is identical to FindObjectFromFullName, but has a * short signature since it is a common use and we want it to be easy to * type. @@ -167,6 +182,9 @@ public: * \param context A spart pointer to an object under which you want to look * for the provided name. * \param name A string containing a shortname to look for. + * + * \returns a smart pointer to the named object converted to the requested + * type. */ template static Ptr FindObjectFromShortName (Ptr context, std::string name); @@ -185,6 +203,8 @@ private: * \brief Non-templated internal version of FindObjectFromLongName * * \param name A string containing a longname to look for. + * + * \returns a smart pointer to the named object. */ static Ptr FindObjectFromFullNameInternal (std::string name); @@ -196,6 +216,8 @@ private: * \param context A spart pointer to an object under which you want to look * for the provided name. * \param name A string containing a shortname to look for. + * + * \returns a smart pointer to the named object. */ static Ptr FindObjectFromShortNameInternal (Ptr context, std::string name); };