summaryrefslogtreecommitdiff
path: root/simple.h
diff options
context:
space:
mode:
authorJeffrey Walton <noloader@gmail.com>2017-08-05 07:53:52 -0400
committerJeffrey Walton <noloader@gmail.com>2017-08-05 07:53:52 -0400
commit086ad70feb21c74d54618247733e3fd282096c87 (patch)
treee9fb78f2f8f002e15607dc5b506cf6483c74b958 /simple.h
parent0357e508e4fd8e8f61e82a48b16adb5c381a740d (diff)
downloadcryptopp-git-086ad70feb21c74d54618247733e3fd282096c87.tar.gz
Update documentation
Diffstat (limited to 'simple.h')
-rw-r--r--simple.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/simple.h b/simple.h
index fec7824e..8e2cdd4b 100644
--- a/simple.h
+++ b/simple.h
@@ -30,7 +30,7 @@ public:
};
//! \class AlgorithmImpl
-//! \brief Base class for identifying alogorithm
+//! \brief Base class information
//! \tparam BASE an Algorithm derived class
//! \tparam ALGORITHM_INFO an Algorithm derived class
//! \details AlgorithmImpl provides StaticAlgorithmName from the template parameter BASE
@@ -38,7 +38,15 @@ template <class BASE, class ALGORITHM_INFO=BASE>
class CRYPTOPP_NO_VTABLE AlgorithmImpl : public BASE
{
public:
+ //! \brief The algorithm name
+ //! \returns the algorithm name
+ //! \details StaticAlgorithmName returns the algorithm's name as a static member function.
+ //! The name is taken from information provided by BASE.
static std::string CRYPTOPP_API StaticAlgorithmName() {return ALGORITHM_INFO::StaticAlgorithmName();}
+ //! \brief The algorithm name
+ //! \returns the algorithm name
+ //! \details AlgorithmName returns the algorithm's name as a member function.
+ //! The name is is acquired by calling StaticAlgorithmName.
std::string AlgorithmName() const {return ALGORITHM_INFO::StaticAlgorithmName();}
};