Instigate Open Source Documentation

instigate::algebra::interface< unsigned short > Struct Template Reference

Specialization of the Algebra Interface for type unsigned short. More...

#include <interface.hpp>

List of all members.

Static Public Member Functions

static unsigned short plus (const unsigned short &a, unsigned short &b)
 Add the specified arguments.
static unsigned short multiply (const unsigned short &a, const unsigned short &b)
 Multiply the specified arguments.
static unsigned short get_zero ()
 Get the additive identity element.
static unsigned short get_one ()
 Get multiplicative identity element.

Static Public Attributes

static const bool is_additive_assocativity = true
 Check additive associativity of the type.
static const bool is_multiplicative_assocativity = true
 Check multiplicative associativity of the type.
static const bool is_comutativity_addition = true
 Check commutativity of addition.
static const bool is_comutativity_multiplication = true
 Check commutativity of multiplication.
static const bool is_distributivity = true
 Check distributivity.

Detailed Description

template<>
struct instigate::algebra::interface< unsigned short >

Specialization of the Algebra Interface for type unsigned short.


Member Function Documentation

static unsigned short instigate::algebra::interface< unsigned short >::get_one (  )  [inline, static]

Get multiplicative identity element.

Returns:
The identity element
static unsigned short instigate::algebra::interface< unsigned short >::get_zero (  )  [inline, static]

Get the additive identity element.

Returns:
The additive identity element
static unsigned short instigate::algebra::interface< unsigned short >::multiply ( const unsigned short &  a,
const unsigned short &  b 
) [inline, static]

Multiply the specified arguments.

Parameters:
a - the first multiplier
b - the second multiplier
Returns:
The product of a and b
static unsigned short instigate::algebra::interface< unsigned short >::plus ( const unsigned short &  a,
unsigned short &  b 
) [inline, static]

Add the specified arguments.

Parameters:
a - the first addend
b - the second addend
Returns:
The sum of a and b

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


© Instigate CJSC, Open Source