stx::CBTreeDB< _Key, _Compare, _BTreePageSize, _AppVersionId >::CRC32 Class Reference

CRC32 Cyclic redundancy check implementation class. More...

#include <stx-cbtreedb.h>

List of all members.

Public Member Functions

 CRC32 ()
 Initialize new CRC object.
void clear ()
 Clear current CRC object.
CRC32update (const unsigned char *input, uint32_t length)
 Update this CRC value with new data.
CRC32update (const void *input, uint32_t length)
 Update this CRC value with new data.
uint32_t final () const
 Return final CRC value of this object.

Static Public Member Functions

static uint32_t digest (const void *input, uint32_t length)
 Calculate CRC32 digest of bytes in the given range.
static uint32_t digest (const std::string &input)
 Calculate CRC32 digest of a string.

Private Attributes

uint32_t m_crc
 CRC intermediate value.

Detailed Description

template<typename _Key = uint32_t, typename _Compare = std::less<_Key>, unsigned int _BTreePageSize = 1024, uint32_t _AppVersionId = 0>
class stx::CBTreeDB< _Key, _Compare, _BTreePageSize, _AppVersionId >::CRC32

CRC32 Cyclic redundancy check implementation class.

Copied from the Botan-1.6.4 cryptography library.

Definition at line 314 of file stx-cbtreedb.h.


Constructor & Destructor Documentation

template<typename _Key = uint32_t, typename _Compare = std::less<_Key>, unsigned int _BTreePageSize = 1024, uint32_t _AppVersionId = 0>
stx::CBTreeDB< _Key, _Compare, _BTreePageSize, _AppVersionId >::CRC32::CRC32 (  )  [inline]

Initialize new CRC object.

Definition at line 322 of file stx-cbtreedb.h.


Member Function Documentation

template<typename _Key = uint32_t, typename _Compare = std::less<_Key>, unsigned int _BTreePageSize = 1024, uint32_t _AppVersionId = 0>
void stx::CBTreeDB< _Key, _Compare, _BTreePageSize, _AppVersionId >::CRC32::clear (  )  [inline]

Clear current CRC object.

Definition at line 328 of file stx-cbtreedb.h.

template<typename _Key = uint32_t, typename _Compare = std::less<_Key>, unsigned int _BTreePageSize = 1024, uint32_t _AppVersionId = 0>
static uint32_t stx::CBTreeDB< _Key, _Compare, _BTreePageSize, _AppVersionId >::CRC32::digest ( const std::string &  input  )  [inline, static]

Calculate CRC32 digest of a string.

Definition at line 441 of file stx-cbtreedb.h.

template<typename _Key = uint32_t, typename _Compare = std::less<_Key>, unsigned int _BTreePageSize = 1024, uint32_t _AppVersionId = 0>
static uint32_t stx::CBTreeDB< _Key, _Compare, _BTreePageSize, _AppVersionId >::CRC32::digest ( const void *  input,
uint32_t  length 
) [inline, static]

Calculate CRC32 digest of bytes in the given range.

Definition at line 435 of file stx-cbtreedb.h.

template<typename _Key = uint32_t, typename _Compare = std::less<_Key>, unsigned int _BTreePageSize = 1024, uint32_t _AppVersionId = 0>
uint32_t stx::CBTreeDB< _Key, _Compare, _BTreePageSize, _AppVersionId >::CRC32::final (  )  const [inline]

Return final CRC value of this object.

Definition at line 429 of file stx-cbtreedb.h.

template<typename _Key = uint32_t, typename _Compare = std::less<_Key>, unsigned int _BTreePageSize = 1024, uint32_t _AppVersionId = 0>
CRC32& stx::CBTreeDB< _Key, _Compare, _BTreePageSize, _AppVersionId >::CRC32::update ( const void *  input,
uint32_t  length 
) [inline]

Update this CRC value with new data.

Definition at line 423 of file stx-cbtreedb.h.

template<typename _Key = uint32_t, typename _Compare = std::less<_Key>, unsigned int _BTreePageSize = 1024, uint32_t _AppVersionId = 0>
CRC32& stx::CBTreeDB< _Key, _Compare, _BTreePageSize, _AppVersionId >::CRC32::update ( const unsigned char *  input,
uint32_t  length 
) [inline]

Update this CRC value with new data.

Definition at line 334 of file stx-cbtreedb.h.


Member Data Documentation

template<typename _Key = uint32_t, typename _Compare = std::less<_Key>, unsigned int _BTreePageSize = 1024, uint32_t _AppVersionId = 0>
uint32_t stx::CBTreeDB< _Key, _Compare, _BTreePageSize, _AppVersionId >::CRC32::m_crc [private]

CRC intermediate value.

Definition at line 318 of file stx-cbtreedb.h.


The documentation for this class was generated from the following file:
Generated on Wed Apr 14 13:43:41 2010 for stx-cbtreedb by  doxygen 1.6.3