unrarsrc  6.1.7
About: unrar extracts, views and tests the contents of archives created with the RAR archiver.
  Fossies Dox: unrarsrc-6.1.7.tar.gz  ("unofficial" and yet experimental doxygen-generated source code documentation)  

Array< T > Class Template Reference

#include <array.hpp>

Public Member Functions

 Array ()
 
 Array (size_t Size)
 
 Array (const Array &Src)
 
 ~Array ()
 
void CleanData ()
 
T & operator[] (size_t Item) const
 
T * operator+ (size_t Pos)
 
size_t Size ()
 
void Add (size_t Items)
 
void Alloc (size_t Items)
 
void Reset ()
 
void SoftReset ()
 
void operator= (Array< T > &Src)
 
void Push (T Item)
 
void Append (T *Item, size_t Count)
 
T * Addr (size_t Item)
 
void SetMaxSize (size_t Size)
 
T * Begin ()
 
T * End ()
 
void SetSecure ()
 

Private Attributes

T * Buffer
 
size_t BufSize
 
size_t AllocSize
 
size_t MaxSize
 
bool Secure
 

Detailed Description

template<class T>
class Array< T >

Definition at line 6 of file array.hpp.

Constructor & Destructor Documentation

◆ Array() [1/3]

template<class T >
Array< T >::Array

Definition at line 48 of file array.hpp.

◆ Array() [2/3]

template<class T >
Array< T >::Array ( size_t  Size)

Definition at line 54 of file array.hpp.

◆ Array() [3/3]

template<class T >
Array< T >::Array ( const Array< T > &  Src)

Definition at line 62 of file array.hpp.

References Array< T >::Buffer, and Array< T >::BufSize.

◆ ~Array()

template<class T >
Array< T >::~Array

Definition at line 71 of file array.hpp.

References cleandata().

Member Function Documentation

◆ Add()

template<class T >
void Array< T >::Add ( size_t  Items)

◆ Addr()

template<class T >
T * Array< T >::Addr ( size_t  Item)
inline

◆ Alloc()

◆ Append()

template<class T >
void Array< T >::Append ( T *  Item,
size_t  Count 
)

Definition at line 184 of file array.hpp.

◆ Begin()

template<class T >
T * Array< T >::Begin ( )
inline

Definition at line 32 of file array.hpp.

References Array< T >::Buffer.

◆ CleanData()

template<class T >
void Array< T >::CleanData
inline

Definition at line 38 of file array.hpp.

Referenced by FileHeader::operator=().

◆ End()

template<class T >
T * Array< T >::End ( )
inline

Definition at line 33 of file array.hpp.

References Array< T >::Buffer, and Array< T >::BufSize.

◆ operator+()

template<class T >
T * Array< T >::operator+ ( size_t  Pos)
inline

Definition at line 88 of file array.hpp.

◆ operator=()

template<class T >
void Array< T >::operator= ( Array< T > &  Src)

Definition at line 168 of file array.hpp.

References Array< T >::Buffer, and Array< T >::BufSize.

◆ operator[]()

template<class T >
T & Array< T >::operator[] ( size_t  Item) const
inline

Definition at line 82 of file array.hpp.

◆ Push()

template<class T >
void Array< T >::Push ( Item)

◆ Reset()

template<class T >
void Array< T >::Reset

◆ SetMaxSize()

template<class T >
void Array< T >::SetMaxSize ( size_t  Size)
inline

Definition at line 31 of file array.hpp.

References Array< T >::MaxSize, and Array< T >::Size().

◆ SetSecure()

template<class T >
void Array< T >::SetSecure ( )
inline

Definition at line 34 of file array.hpp.

References Array< T >::Secure.

◆ Size()

◆ SoftReset()

template<class T >
void Array< T >::SoftReset

Definition at line 162 of file array.hpp.

Referenced by Unpack::InitFilters(), Unpack::InitFilters30(), and RawRead::Reset().

Member Data Documentation

◆ AllocSize

template<class T >
size_t Array< T >::AllocSize
private

Definition at line 11 of file array.hpp.

◆ Buffer

template<class T >
T* Array< T >::Buffer
private

◆ BufSize

template<class T >
size_t Array< T >::BufSize
private

Definition at line 10 of file array.hpp.

Referenced by Array< T >::Array(), Array< T >::End(), and Array< T >::operator=().

◆ MaxSize

template<class T >
size_t Array< T >::MaxSize
private

Definition at line 12 of file array.hpp.

Referenced by Array< T >::SetMaxSize().

◆ Secure

template<class T >
bool Array< T >::Secure
private

Definition at line 13 of file array.hpp.

Referenced by Array< T >::SetSecure().


The documentation for this class was generated from the following file: