Class Triple
Store three arbitrary object.

Implements ComparableConcept, LessThanComparableConcept
All Subcl's PackedTriple
All Impl'd ComparableConcept, EqualityComparableConcept, LessThanComparableConcept
Defined in <seqan/basic.h>
Signature template <typename T1, typename T3, typename T3[, typename TSpec]> class Triple;

Template Parameters

T1 Type of first object.
T2 Type of second object.
T3 Type of third object.
TSpec Tag for specialization (Default: void).

Member Function Overview

Member Functions Inherited From ComparableConcept

Member Functions Inherited From EqualityComparableConcept

Member Functions Inherited From LessThanComparableConcept

Interface Function Overview

Interface Functions Inherited From ComparableConcept

Interface Metafunction Overview

Member Variable Overview

Member Functions Detail

Triple::Triple() Triple::Triple(other) Triple::Triple(x1, x2, x3)

Default and copy construction and construction with three objects.

Parameters

other Other Triple object to copy from.
x1 First object.
x2 Second object.
x3 Third object.

x1 must be convertible to T1, x2 to T2, x3 to T3. For example, a Triple of three int values can be constructed with three double values.

Interface Functions Detail

void assignValueI1(triple, val);

Set first entry of a triple.

Parameters

triple The triple to get entry from.
val Set the value of the Triple's first entry.

void assignValueI2(triple, val);

Set second entry of a triple.

Parameters

triple The triple to get entry from.
val Set the value of the Triple's second entry.

void assignValueI3(triple, val);

Set third entry of a triple.

Parameters

triple The triple to get entry from.
val Set the value of the Triple's third entry.

T1 getValue(triple);

The get-value of the Triple's first entry.

Parameters

triple The triple to get entry from.

Returns

T1 The first entry of the Triple.

T2 getValue(triple);

The get-value of the Triple's second entry.

Parameters

triple The triple to get entry from.

Returns

T2 The second entry of the Triple.

T3 getValue(triple);

The get-value of the Triple's third entry.

Parameters

triple The triple to get entry from.

Returns

T3 The third entry of the Triple.

void setValueI1(triple, val);

Set first entry of a triple.

Parameters

triple The triple to get entry from.
val Set the value of the Triple's first entry.

void setValueI2(triple, val);

Set second entry of a triple.

Parameters

triple The triple to get entry from.
val Set the value of the Triple's second entry.

void setValueI3(triple, val);

Set third entry of a triple.

Parameters

triple The triple to get entry from.
val Set the value of the Triple's third entry.

Interface Metafunctions Detail

LENGTH<TTriple>::VALUE

Return (only type-depending) length of a triple: 3.

Template Parameters

TTriple The Triple specialization to get the length of.

Returns

VALUE Length of the triple (always 3).

Spec<TTriple>::Type;

Return specialization tag.

Template Parameters

TTriple The Triple specialization to query for the specialization tag.

Returns

Type The specialization type.

Value<TTriple, I>::Type;

Return ith type of the triple.

Template Parameters

TTriple The Triple to return the I-th value of.
I The index of the value to return, one of 1, 2, or 3.

Member Variables Detail

T1 Triple::i1

First value of triple.

signature T1 Triple::i1;

T2 Triple::i2

Second value of triple.

signature T2 Triple::i2;

T3 Triple::i3

Third value of triple.

signature T3 Triple::i3;