Fabcoin Core  0.16.2
P2P Digital Currency
Public Types | Public Member Functions | Private Member Functions | Private Attributes | List of all members
DL_FixedBasePrecomputationImpl< T > Class Template Reference

#include <eprecomp.h>

Inheritance diagram for DL_FixedBasePrecomputationImpl< T >:
[legend]
Collaboration diagram for DL_FixedBasePrecomputationImpl< T >:
[legend]

Public Types

typedef T Element
 
- Public Types inherited from DL_FixedBasePrecomputation< T >
typedef T Element
 

Public Member Functions

virtual ~DL_FixedBasePrecomputationImpl ()
 
 DL_FixedBasePrecomputationImpl ()
 
bool IsInitialized () const
 
void SetBase (const DL_GroupPrecomputation< Element > &group, const Element &base)
 
const ElementGetBase (const DL_GroupPrecomputation< Element > &group) const
 
void Precompute (const DL_GroupPrecomputation< Element > &group, unsigned int maxExpBits, unsigned int storage)
 
void Load (const DL_GroupPrecomputation< Element > &group, BufferedTransformation &storedPrecomputation)
 
void Save (const DL_GroupPrecomputation< Element > &group, BufferedTransformation &storedPrecomputation) const
 
Element Exponentiate (const DL_GroupPrecomputation< Element > &group, const Integer &exponent) const
 
Element CascadeExponentiate (const DL_GroupPrecomputation< Element > &group, const Integer &exponent, const DL_FixedBasePrecomputation< Element > &pc2, const Integer &exponent2) const
 
- Public Member Functions inherited from DL_FixedBasePrecomputation< T >
virtual ~DL_FixedBasePrecomputation ()
 

Private Member Functions

void PrepareCascade (const DL_GroupPrecomputation< Element > &group, std::vector< BaseAndExponent< Element > > &eb, const Integer &exponent) const
 

Private Attributes

Element m_base
 
unsigned int m_windowSize
 
Integer m_exponentBase
 
std::vector< Elementm_bases
 

Detailed Description

template<class T>
class DL_FixedBasePrecomputationImpl< T >

Definition at line 51 of file eprecomp.h.

Member Typedef Documentation

template<class T>
typedef T DL_FixedBasePrecomputationImpl< T >::Element

Definition at line 54 of file eprecomp.h.

Constructor & Destructor Documentation

template<class T>
virtual DL_FixedBasePrecomputationImpl< T >::~DL_FixedBasePrecomputationImpl ( )
inlinevirtual

Definition at line 56 of file eprecomp.h.

Definition at line 58 of file eprecomp.h.

Member Function Documentation

template<class T >
T DL_FixedBasePrecomputationImpl< T >::CascadeExponentiate ( const DL_GroupPrecomputation< Element > &  group,
const Integer exponent,
const DL_FixedBasePrecomputation< Element > &  pc2,
const Integer exponent2 
) const
virtual

Implements DL_FixedBasePrecomputation< T >.

Definition at line 101 of file eprecomp.cpp.

Here is the call graph for this function:

template<class T >
T DL_FixedBasePrecomputationImpl< T >::Exponentiate ( const DL_GroupPrecomputation< Element > &  group,
const Integer exponent 
) const
virtual

Implements DL_FixedBasePrecomputation< T >.

Definition at line 92 of file eprecomp.cpp.

Here is the call graph for this function:

template<class T>
const Element& DL_FixedBasePrecomputationImpl< T >::GetBase ( const DL_GroupPrecomputation< Element > &  group) const
inlinevirtual

Implements DL_FixedBasePrecomputation< T >.

Definition at line 64 of file eprecomp.h.

Here is the caller graph for this function:

template<class T>
bool DL_FixedBasePrecomputationImpl< T >::IsInitialized ( ) const
inlinevirtual

Implements DL_FixedBasePrecomputation< T >.

Definition at line 61 of file eprecomp.h.

template<class T >
void DL_FixedBasePrecomputationImpl< T >::Load ( const DL_GroupPrecomputation< Element > &  group,
BufferedTransformation storedPrecomputation 
)
virtual

Implements DL_FixedBasePrecomputation< T >.

Definition at line 44 of file eprecomp.cpp.

Here is the call graph for this function:

template<class T >
void DL_FixedBasePrecomputationImpl< T >::Precompute ( const DL_GroupPrecomputation< Element > &  group,
unsigned int  maxExpBits,
unsigned int  storage 
)
virtual

Implements DL_FixedBasePrecomputation< T >.

Definition at line 28 of file eprecomp.cpp.

Here is the call graph for this function:

template<class T >
void DL_FixedBasePrecomputationImpl< T >::PrepareCascade ( const DL_GroupPrecomputation< Element > &  group,
std::vector< BaseAndExponent< Element > > &  eb,
const Integer exponent 
) const
private

Definition at line 69 of file eprecomp.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

template<class T >
void DL_FixedBasePrecomputationImpl< T >::Save ( const DL_GroupPrecomputation< Element > &  group,
BufferedTransformation storedPrecomputation 
) const
virtual

Implements DL_FixedBasePrecomputation< T >.

Definition at line 59 of file eprecomp.cpp.

Here is the call graph for this function:

template<class T >
void DL_FixedBasePrecomputationImpl< T >::SetBase ( const DL_GroupPrecomputation< Element > &  group,
const Element base 
)
virtual

Implements DL_FixedBasePrecomputation< T >.

Definition at line 14 of file eprecomp.cpp.

Member Data Documentation

template<class T>
Element DL_FixedBasePrecomputationImpl< T >::m_base
private

Definition at line 75 of file eprecomp.h.

template<class T>
std::vector<Element> DL_FixedBasePrecomputationImpl< T >::m_bases
private

Definition at line 78 of file eprecomp.h.

template<class T>
Integer DL_FixedBasePrecomputationImpl< T >::m_exponentBase
private

Definition at line 77 of file eprecomp.h.

template<class T>
unsigned int DL_FixedBasePrecomputationImpl< T >::m_windowSize
private

Definition at line 76 of file eprecomp.h.


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