From 0c7cf446f4e3a91893466ba72919a1136ee896bc Mon Sep 17 00:00:00 2001 From: Nina Dzugasova <dzugasova.nina@gmail.com> Date: Mon, 3 Dec 2018 11:17:39 +0100 Subject: [PATCH] Added Object documentation. --- src/TNL/Object.h | 28 +++++++++++++++++++++------- 1 file changed, 21 insertions(+), 7 deletions(-) diff --git a/src/TNL/Object.h b/src/TNL/Object.h index b4f2250752..f0b2b435fe 100644 --- a/src/TNL/Object.h +++ b/src/TNL/Object.h @@ -34,16 +34,18 @@ class Object public: /**** - * Type getter. This returns the type in C++ style - for example the returned value + * \brief Type getter. + * + * Returns the type in C++ style - for example the returned value * may look as follows: "Vector< double, Devices::Cuda >". */ - static String getType(); virtual String getTypeVirtual() const; /**** - * This is used for load and save methods. + * \brief This is used for load and save methods. + * * Each object is saved as if it was stored on Devices::Host. So even Vector< double, Devices::Cuda > * is saved as Vector< double, Devices::Host >. */ @@ -51,13 +53,25 @@ class Object virtual String getSerializationTypeVirtual() const; - //! Method for saving the object to a file as a binary data + /*** + * \brief Method for saving the object to a file as a binary data. + * + * \param file Name of file object. + */ virtual bool save( File& file ) const; - //! Method for restoring the object from a file + /*** + * \brief Method for restoring the object from a file. + * + * \param file Name of file object. + */ virtual bool load( File& file ); - //! Method for restoring the object from a file + /*** + * \brief Method for restoring the object from a file. + * + * \param file Name of file object. + */ virtual bool boundLoad( File& file ); bool save( const String& fileName ) const; @@ -66,7 +80,7 @@ class Object bool boundLoad( const String& fileName ); - //! Destructor + /// Destructor. // FIXME: __cuda_callable__ would have to be added to every overriding destructor, // even if the object's constructor is not __cuda_callable__ // __cuda_callable__ -- GitLab