|
KeccakTools
|
#include <Keccak-fAffineBases.h>
Public Member Functions | |
| AffineSpaceIterator () | |
| AffineSpaceIterator (const vector< vector< T > > &aBase, const vector< T > &aOffset) | |
| ~AffineSpaceIterator () | |
| bool | isEnd () const |
| void | operator++ () |
| const vector< T > & | operator* () const |
| void | display (ostream &fout) const |
| UINT64 | getCount () const |
This class implements an iterator over the affine space generated by the given base and offset.
| AffineSpaceIterator< T >::AffineSpaceIterator | ( | ) |
This constructor creates an empty iterator.
| AffineSpaceIterator< T >::AffineSpaceIterator | ( | const vector< vector< T > > & | aBase, |
| const vector< T > & | aOffset | ||
| ) |
This constructor initializes the affine space iterator with a given generator base and a given offset.
| aBase | The generator base, as a reference to the set (vector) of generators. Each generator is a vector of elements of template type T. |
| aOffset | The offset, as a reference to a vector of elements of template type T. |
| AffineSpaceIterator< T >::~AffineSpaceIterator | ( | ) |
The destructor.
| void AffineSpaceIterator< T >::display | ( | ostream & | fout | ) | const |
This method displays the offset and generators.
| fout | The stream to display to. |
| UINT64 AffineSpaceIterator< T >::getCount | ( | ) | const |
This method returns the number of elements in the affine space.
| bool AffineSpaceIterator< T >::isEnd | ( | ) | const |
This method tells whether the last element of the affine space has been reached.
| const vector< T > & AffineSpaceIterator< T >::operator* | ( | ) | const |
This method returns a constant reference to the current element in the affine space.
| void AffineSpaceIterator< T >::operator++ | ( | ) |
This method moves the iterator to the next element in the affine space.