name: Triple<class T1, class T2, class T3>

synopsis:

g++ [flags ...] file ...

#include <Triple.h>

Triple();
boolean assign(const Triple<T1, T2, T3>& arg);
boolean eq(const Triple<T1, T2, T3>& obj);
T1& first();
T2& second();
T3& third();

quick start:

// declare a Triple and insert a character and string in it
//
Triple<Char, String, Float> Triple0;
Char char(L'a');
String str(L"aye");
Float ft = 1.0;
Triple0.assign(char, str, ft);

// use the copy constructor to create a second Triple
//
Triple<Char,String> Triple1(Triple0);

// test the characters for equality
//
if (!Triple0.first().eq(Triple1.first())) {
   Console::put(L"Error in Triple assign");
}
description:

The Triple class groups together three arbitrary objects and allows them to be operated on as a group. It is a container class that can be used to build complex objects alleviating the need to develop a new class. Classes such as Triple (and Pair) are extremely useful when rapid prototyping code.

dependencies:

public constants:

error codes:

protected data:

required public methods:

class-specific public methods:

private methods:


friend classes:

examples:

notes: