Instigate Open Source Documentation

instigate::algebra::interface< char > Struct Template Reference

Specialization of the Algebra Interface for type char. More...

#include <interface.hpp>

List of all members.

Static Public Member Functions

static char plus (const char &a, const char &b)
 Add the specified arguments.
static char minus (const char &a, const char &b)
 Subtract the specified arguments.
static char multiply (const char &a, const char &b)
 Multiply the specified arguments.

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<char>
struct instigate::algebra::interface< char >

Specialization of the Algebra Interface for type char.


Member Function Documentation

template<char >
static char instigate::algebra::interface< char >::minus ( const char &  a,
const char &  b 
) [inline, static]

Subtract the specified arguments.

Parameters:
a - the minuend
b - the subtrahend
Returns:
The difference of a and b
template<char >
static char instigate::algebra::interface< char >::multiply ( const char &  a,
const char &  b 
) [inline, static]

Multiply the specified arguments.

Parameters:
a - the first multiplier
b - the second multiplier
Returns:
The product of a and b
template<char >
static char instigate::algebra::interface< char >::plus ( const char &  a,
const char &  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