The Battle for Wesnoth  1.13.4+dev
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Public Member Functions | Public Attributes | List of all members
tvector< T, S > Struct Template Reference

Emulates a vector. More...

#include <neon.hpp>

Public Member Functions

const T & operator[] (unsigned i) const
 
T & operator[] (unsigned i)
 

Public Attributes

data [S]
 

Detailed Description

template<class T, unsigned S>
struct tvector< T, S >

Emulates a vector.

Gcc also supports attribute ((vector_size (8))) but that only works with gcc, not with g++. It also is not portable.

Template Parameters
TThe base type of the vector.
SThe size of the vector.

Definition at line 64 of file neon.hpp.

Member Function Documentation

template<class T, unsigned S>
const T& tvector< T, S >::operator[] ( unsigned  i) const
inline

Definition at line 67 of file neon.hpp.

References i.

template<class T, unsigned S>
T& tvector< T, S >::operator[] ( unsigned  i)
inline

Definition at line 73 of file neon.hpp.

References i.

Member Data Documentation

template<class T, unsigned S>
T tvector< T, S >::data[S]

Definition at line 78 of file neon.hpp.


The documentation for this struct was generated from the following file: