SecBlock< T, A > Class Template Reference

#include <secblock.h>

Inheritance diagram for SecBlock< T, A >:

FixedSizeSecBlock< T, S, A > SecBlockWithHint< T, S, A > List of all members.

Detailed Description

template<class T, class A = AllocatorWithCleanup<T>>
class SecBlock< T, A >

a block of memory allocated using A

Definition at line 275 of file secblock.h.

Public Types

typedef A::value_type value_type
typedef A::pointer iterator
typedef A::const_pointer const_iterator
typedef A::size_type size_type

Public Member Functions

 SecBlock (size_type size=0)
 SecBlock (const SecBlock< T, A > &t)
 SecBlock (const T *t, size_type len)
 ~SecBlock ()
 operator const void * () const
 operator void * ()
 operator const T * () const
 operator T * ()
iterator begin ()
const_iterator begin () const
iterator end ()
const_iterator end () const
A::pointer data ()
A::const_pointer data () const
size_type size () const
bool empty () const
byte * BytePtr ()
const byte * BytePtr () const
size_type SizeInBytes () const
void Assign (const T *t, size_type len)
 set contents and size
void Assign (const SecBlock< T, A > &t)
 copy contents and size from another SecBlock
SecBlock< T, A > & operator= (const SecBlock< T, A > &t)
SecBlock< T, A > & operator+= (const SecBlock< T, A > &t)
SecBlock< T, A > operator+ (const SecBlock< T, A > &t)
bool operator== (const SecBlock< T, A > &t) const
bool operator!= (const SecBlock< T, A > &t) const
void New (size_type newSize)
 change size, without preserving contents
void CleanNew (size_type newSize)
 change size and set contents to 0
void Grow (size_type newSize)
 change size only if newSize > current size. contents are preserved
void CleanGrow (size_type newSize)
 change size only if newSize > current size. contents are preserved and additional area is set to 0
void resize (size_type newSize)
 change size and preserve contents
void swap (SecBlock< T, A > &b)
 swap contents and size with another SecBlock

Public Attributes

m_alloc
size_type m_size
T * m_ptr


The documentation for this class was generated from the following file:
Generated on Fri Jun 1 11:11:48 2007 for Crypto++ by  doxygen 1.5.2