Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

SecBlock Struct Template Reference

a block of memory allocated using SecAlloc. More...

#include <misc.h>

List of all members.

Public Methods

 SecBlock (unsigned int size=0)
 SecBlock (const SecBlock< T > &t)
 SecBlock (const T *t,unsigned int len)
 ~SecBlock ()
 operator const T * ()const
 operator T * ()
const T* Begin ()const
T* Begin ()
const T* End ()const
T* End ()
unsigned int Size ()const
void Assign (const T *t,unsigned int len)
void Assign (const SecBlock< T > &t)
SecBlock& operator= (const SecBlock< T > &t)
bool operator== (const SecBlock< T > &t)const
bool operator!= (const SecBlock< T > &t)const
void New (unsigned int newSize)
void CleanNew (unsigned int newSize)
void Grow (unsigned int newSize)
void CleanGrow (unsigned int newSize)
void Resize (unsigned int newSize)
void swap (SecBlock< T > &b)

Public Attributes

unsigned int size
T* ptr


Detailed Description

template<class T> struct SecBlock

a block of memory allocated using SecAlloc.

Definition at line 521 of file misc.h.


Constructor & Destructor Documentation

template<class T>
SecBlock<T>::SecBlock<T> ( unsigned int size = 0 ) [inline, explicit]
 

Definition at line 523 of file misc.h.

template<class T>
SecBlock<T>::SecBlock<T> ( const SecBlock< T > & t ) [inline]
 

Definition at line 525 of file misc.h.

template<class T>
SecBlock<T>::SecBlock<T> ( const T * t,
unsigned int len ) [inline]
 

Definition at line 527 of file misc.h.

template<class T>
SecBlock<T>::~SecBlock<T> ( ) [inline]
 

Definition at line 529 of file misc.h.


Member Function Documentation

template<class T>
void SecBlock<T>::Assign ( const SecBlock< T > & t ) [inline]
 

Definition at line 581 of file misc.h.

template<class T>
void SecBlock<T>::Assign ( const T * t,
unsigned int len ) [inline]
 

Definition at line 575 of file misc.h.

template<class T>
T * SecBlock<T>::Begin ( ) [inline]
 

Definition at line 566 of file misc.h.

template<class T>
const T * SecBlock<T>::Begin ( ) const [inline]
 

Definition at line 564 of file misc.h.

template<class T>
void SecBlock<T>::CleanGrow ( unsigned int newSize ) [inline]
 

Definition at line 638 of file misc.h.

Referenced by Integer::SetBit(), Integer::SetByte(), and PolynomialMod2::SetByte().

template<class T>
void SecBlock<T>::CleanNew ( unsigned int newSize ) [inline]
 

Definition at line 614 of file misc.h.

template<class T>
T * SecBlock<T>::End ( ) [inline]
 

Definition at line 570 of file misc.h.

template<class T>
const T * SecBlock<T>::End ( ) const [inline]
 

Definition at line 568 of file misc.h.

template<class T>
void SecBlock<T>::Grow ( unsigned int newSize ) [inline]
 

Definition at line 626 of file misc.h.

template<class T>
void SecBlock<T>::New ( unsigned int newSize ) [inline]
 

Definition at line 603 of file misc.h.

template<class T>
void SecBlock<T>::Resize ( unsigned int newSize ) [inline]
 

Definition at line 651 of file misc.h.

Referenced by FileStore::TransferTo().

template<class T>
unsigned int SecBlock<T>::Size ( ) const [inline]
 

Definition at line 573 of file misc.h.

template<class T>
SecBlock<T>::operator T * ( ) [inline]
 

Definition at line 545 of file misc.h.

template<class T>
SecBlock<T>::operator const T * ( ) const [inline]
 

Definition at line 543 of file misc.h.

template<class T>
bool SecBlock<T>::operator!= ( const SecBlock< T > & t ) const [inline]
 

Definition at line 598 of file misc.h.

template<class T>
SecBlock<T> & SecBlock<T>::operator= ( const SecBlock< T > & t ) [inline]
 

Definition at line 587 of file misc.h.

template<class T>
bool SecBlock<T>::operator== ( const SecBlock< T > & t ) const [inline]
 

Definition at line 593 of file misc.h.

template<class T>
void SecBlock< T >::swap ( SecBlock< T > & b )
 

Definition at line 669 of file misc.h.


Member Data Documentation

template<class T>
T * SecBlock<T>::ptr
 

Definition at line 666 of file misc.h.

template<class T>
unsigned int SecBlock<T>::size
 

Definition at line 665 of file misc.h.


The documentation for this struct was generated from the following file:
Generated at Mon Jan 15 01:17:06 2001 for Crypto++ by doxygen1.2.4 written by Dimitri van Heesch, © 1997-2000