polynomial::TTempPolynom Class Reference

a tiny helper class for temporary arrays mpz_t[] in C++ More...

#include <polynomial.H>

Inheritance diagram for polynomial::TTempPolynom:

Inheritance graph
[legend]
Collaboration diagram for polynomial::TTempPolynom:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 TTempPolynom (const int n)
 TTempPolynom (const int n, const int estimated_operand_size)
 ~TTempPolynom ()
int capacity () const
 operator TPolynom () const

Private Attributes

mpz_t *const data
const int _capacity


Detailed Description

a tiny helper class for temporary arrays mpz_t[] in C++

self initializing and self destructing. This class is here to circumvent automatic arrays (on stack) that are a gnu extension, but not allowed according to ISO standard.

Definition at line 75 of file polynomial.H.


Constructor & Destructor Documentation

polynomial::TTempPolynom::TTempPolynom ( const int  n  )  [inline, explicit]

Definition at line 81 of file polynomial.H.

References data, and mpz_init().

Here is the call graph for this function:

polynomial::TTempPolynom::TTempPolynom ( const int  n,
const int  estimated_operand_size 
) [inline]

Definition at line 86 of file polynomial.H.

References data, and mpz_init2().

Here is the call graph for this function:

polynomial::TTempPolynom::~TTempPolynom (  )  [inline]

Definition at line 91 of file polynomial.H.

References _capacity, data, and mpz_clear().

Here is the call graph for this function:


Member Function Documentation

int polynomial::TTempPolynom::capacity (  )  const [inline]

Definition at line 97 of file polynomial.H.

References _capacity.

polynomial::TTempPolynom::operator TPolynom (  )  const [inline]

Definition at line 104 of file polynomial.H.

References data.


Member Data Documentation

mpz_t* const polynomial::TTempPolynom::data [private]

Definition at line 78 of file polynomial.H.

Referenced by operator TPolynom(), TTempPolynom(), and ~TTempPolynom().

const int polynomial::TTempPolynom::_capacity [private]

Definition at line 79 of file polynomial.H.

Referenced by capacity(), and ~TTempPolynom().


The documentation for this class was generated from the following file:
Generated on Wed Nov 7 23:32:59 2007 for Qsieve by  doxygen 1.5.4