Документ взят из кэша поисковой машины. Адрес оригинального документа : http://astro.uni-altai.ru/~aw/stellarium/api/structTriplet.html
Дата изменения: Unknown
Дата индексирования: Fri Feb 28 07:21:16 2014
Кодировка:

Поисковые слова: carl sagan
Stellarium: Triplet< T > Struct Template Reference
Stellarium 0.12.3
List of all members | Public Member Functions | Public Attributes
Triplet< T > Struct Template Reference

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

#include <Triplet.hpp>

Public Member Functions

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

Public Attributes

a
 First, second, and third element of the triplet. More...
 
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: