Class documentation of Concepts

Loading...
Searching...
No Matches
concepts::Z4 Class Reference

#include <Zm.hh>

Public Member Functions

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

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.


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