diff options
author | Jeffrey Walton <noloader@gmail.com> | 2015-12-16 03:22:22 -0500 |
---|---|---|
committer | Jeffrey Walton <noloader@gmail.com> | 2015-12-16 03:22:22 -0500 |
commit | 49de6e2012280b0eabb6e9e09a428e0a59ddbcd6 (patch) | |
tree | 3e4fabf6eb5c1c8dd68ee135729a8ceed1052f15 /queue.h | |
parent | 77016c7eb3db723d80533ca04da39837eb259f57 (diff) | |
download | cryptopp-git-49de6e2012280b0eabb6e9e09a428e0a59ddbcd6.tar.gz |
Updated documentation
Diffstat (limited to 'queue.h')
-rw-r--r-- | queue.h | 18 |
1 files changed, 15 insertions, 3 deletions
@@ -12,15 +12,23 @@ NAMESPACE_BEGIN(CryptoPP)
-/** The queue is implemented as a linked list of byte arrays, but you don't need to
- know about that. So just ignore this next line. :) */
class ByteQueueNode;
-//! Byte Queue
+//! \class ByteQueue
+//! \brief Data structure used to store byte strings
+//! \details The queue is implemented as a linked list of byte arrays
class CRYPTOPP_DLL ByteQueue : public Bufferless<BufferedTransformation>
{
public:
+ //! \brief Construct a ByteQueue
+ //! \param nodeSize the initial node size
+ //! \details Internally, ByteQueue uses a ByteQueueNode to store bytes, and \p nodeSize determines the
+ //! size of the ByteQueueNode. A value of 0 indicates the ByteQueueNode should be automatically sized,
+ //! which means a value of 256 is used.
ByteQueue(size_t nodeSize=0);
+
+ //! \brief Copy construct a ByteQueue
+ //! \param copy the other ByteQueue
ByteQueue(const ByteQueue ©);
~ByteQueue();
@@ -66,9 +74,13 @@ public: byte operator[](lword i) const;
void swap(ByteQueue &rhs);
+ //! \class Walker
+ //! \brief A ByteQueue iterator
class Walker : public InputRejecting<BufferedTransformation>
{
public:
+ //! \brief Construct a ByteQueue Walker
+ //! \param queue a ByteQueue
Walker(const ByteQueue &queue)
: m_queue(queue), m_node(NULL), m_position(0), m_offset(0), m_lazyString(NULL), m_lazyLength(0)
{Initialize();}
|