SIde-Channel Analysis toolKit (SICAK)
Software toolkit for side-channel analysis
|
An abstract class, representing all the vector-like data types. More...
#include <types_basic.hpp>
Public Member Functions | |
virtual | ~VectorType () |
Empty destructor. | |
virtual void | init (size_t length)=0 |
Initializes the vector with a specified number of elements. | |
virtual void | init (size_t length, T initVal)=0 |
Initializes the vector with a specified number of elements and fills it with 'val'. | |
virtual T & | operator() (size_t index)=0 |
Accesses an element in the vector. Doesn't check for bounds. | |
virtual const T & | operator() (size_t index) const =0 |
Accesses an element in the vector. Doesn't check for bounds. | |
Public Member Functions inherited from ArrayType< T > | |
virtual | ~ArrayType () |
Empty destructor. | |
virtual size_t | length () const =0 |
Returns number of elements in the container. | |
virtual size_t | size () const =0 |
Returns the size of the contained data (i.e. length * sizeof(T)) | |
virtual void | fill (T val)=0 |
Fills the container with the 'val'. | |
virtual T * | data ()=0 |
Returns a pointer to the contained data. | |
virtual const T * | data () const =0 |
Returns a const pointer to the contained data. | |
Public Member Functions inherited from DataType | |
virtual | ~DataType () |
Empty destructor. | |
Protected Member Functions | |
VectorType () | |
Protected constructor. | |
Protected Member Functions inherited from ArrayType< T > | |
ArrayType () | |
Protected constructor. | |
Protected Member Functions inherited from DataType | |
DataType () | |
Protected constructor. | |
An abstract class, representing all the vector-like data types.