Dune::bigunsignedint< k > Class Template Reference
[Common]

#include <bigunsignedint.hh>

List of all members.


Detailed Description

template<int k>
class Dune::bigunsignedint< k >

Portable very large unsigned integers.

Implements (arbitrarily) large unsigned integers to be used as global ids in some grid managers. Size is a template parameter.


Public Member Functions

 bigunsignedint ()
 Construct uninitialized.
 bigunsignedint (int x)
 Construct from signed int.
 bigunsignedint (unsigned int x)
 Construct from unsigned int.
void print (std::ostream &s) const
 Print number in hex notation.
bigunsignedint< k > operator+ (const bigunsignedint< k > &x) const
 add
bigunsignedint< k > operator- (const bigunsignedint< k > &x) const
 subtract
bigunsignedint< k > operator * (const bigunsignedint< k > &x) const
 multiply
bigunsignedint< k > & operator++ ()
 prefix increment
bigunsignedint< k > operator/ (const bigunsignedint< k > &x) const
 divide
bigunsignedint< k > operator% (const bigunsignedint< k > &x) const
 modulo
bigunsignedint< k > operator & (const bigunsignedint< k > &x) const
 bitwise and
bigunsignedint< k > operator^ (const bigunsignedint< k > &x) const
 bitwise exor
bigunsignedint< k > operator| (const bigunsignedint< k > &x) const
 bitwise or
bigunsignedint< k > operator~ () const
 bitwise komplement
bigunsignedint< k > operator<< (int i) const
 left shift1/
bigunsignedint< k > operator>> (int i) const
 right shift
bool operator< (const bigunsignedint< k > &x) const
 less than
bool operator<= (const bigunsignedint< k > &x) const
 less than or equal
bool operator> (const bigunsignedint< k > &x) const
 greater than
bool operator>= (const bigunsignedint< k > &x) const
 greater or equalt
bool operator== (const bigunsignedint< k > &x) const
 equal
bool operator!= (const bigunsignedint< k > &x) const
 not equal
unsigned int touint () const
 export to other types

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

Generated on 9 Apr 2008 with Doxygen (ver 1.5.2) [logfile].