Stellarium 0.12.0
Home · All Namespaces · All Classes · Functions · Coding Style · Scripting · Plugins · Renderer · File Structure

Triplet< T > Struct Template Reference

A simple struct holding a triplet of values of some type. More...

#include <Triplet.hpp>

List of all members.

Public Member Functions

 Triplet ()
 Default constructor for collections.
 Triplet (const T &a, const T &b, const T &c)
 Construct a triplet from three values.

Public Attributes

a
 First, second, and third element of the triplet.
b
c

Detailed Description

template<class T>
struct Triplet< T >

A simple struct holding a triplet of values of some type.

Safer and more readable than using fixed-size arrays and passing them as pointers.

Used e.g. for triangles.

Definition at line 29 of file Triplet.hpp.


Constructor & Destructor Documentation

template<class T>
Triplet< T >::Triplet (  )  [inline]

Default constructor for collections.

Definition at line 35 of file Triplet.hpp.

template<class T>
Triplet< T >::Triplet ( const T &  a,
const T &  b,
const T &  c 
) [inline]

Construct a triplet from three values.

Definition at line 38 of file Triplet.hpp.


Member Data Documentation

template<class T>
T Triplet< T >::a

First, second, and third element of the triplet.

Definition at line 32 of file Triplet.hpp.


The documentation for this struct was generated from the following file:
Generated on Thu Jan 31 14:05:47 2013 for Stellarium by  doxygen 1.6.3