Algebraic group with four elements: 0, 1, 2 and 3. More...

#include <Zm.hh>

Public Member Functions

 operator int () const
 Conversion operator. More...
 
int operator++ ()
 Increment operator. More...
 
int operator-- ()
 Decrement operator. More...
 
int operator= (int i)
 Assignment operator. More...
 
Z4 pred () const
 Returns the predecessor. More...
 
Z4 succ () const
 Returns the successor. More...
 
 Z4 ()
 Default constructor. Initialises to 0. More...
 
 Z4 (uint i)
 Constructor. More...
 

Private Attributes

uchar i_
 Data. More...
 

Detailed Description

Algebraic group with four elements: 0, 1, 2 and 3.

Definition at line 68 of file Zm.hh.

Constructor & Destructor Documentation

◆ Z4() [1/2]

concepts::Z4::Z4 ( )
inline

Default constructor. Initialises to 0.

Definition at line 73 of file Zm.hh.

◆ Z4() [2/2]

concepts::Z4::Z4 ( uint  i)
inline

Constructor.

Definition at line 75 of file Zm.hh.

Member Function Documentation

◆ operator int()

concepts::Z4::operator int ( ) const
inline

Conversion operator.

Definition at line 78 of file Zm.hh.

◆ operator++()

int concepts::Z4::operator++ ( )
inline

Increment operator.

Definition at line 83 of file Zm.hh.

◆ operator--()

int concepts::Z4::operator-- ( )
inline

Decrement operator.

Definition at line 85 of file Zm.hh.

◆ operator=()

int concepts::Z4::operator= ( int  i)
inline

Assignment operator.

Definition at line 81 of file Zm.hh.

◆ pred()

Z4 concepts::Z4::pred ( ) const
inline

Returns the predecessor.

Definition at line 89 of file Zm.hh.

◆ succ()

Z4 concepts::Z4::succ ( ) const
inline

Returns the successor.

Definition at line 87 of file Zm.hh.

Member Data Documentation

◆ i_

uchar concepts::Z4::i_
private

Data.

Definition at line 70 of file Zm.hh.


The documentation for this class was generated from the following file:
Page URL: http://wiki.math.ethz.ch/bin/view/Concepts/WebHome
21 August 2020
© 2020 Eidgenössische Technische Hochschule Zürich