Gamma  0.9.5
Generic Synthesis Library
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator
Vec< N, T > Struct Template Reference

Fixed-size vector. More...

#include <Types.h>

Inheritance diagram for Vec< N, T >:
Multi< N, T >

List of all members.

Public Member Functions

Vec< 2, T > get (int i0, int i1) const
 Get a vector comprised of indexed elements.
Vec< 3, T > get (int i0, int i1, int i2) const
 Get a vector comprised of indexed elements.
Vec< 4, T > get (int i0, int i1, int i2, int i3) const
 Get a vector comprised of indexed elements.
Vecset (const T &v)
 Set all elements to the same value.
Vecset (const T &v1, const T &v2)
 Set first 2 elements.
Vecset (const T &v1, const T &v2, const T &v3)
 Set first 3 elements.
Vecset (const T &v1, const T &v2, const T &v3, const T &v4)
 Set first 4 elements.
Vecset (const T &v1, const T &v2, const T &v3, const T &v4, const T &v5)
 Set first 5 elements.
Vecset (const T &v1, const T &v2, const T &v3, const T &v4, const T &v5, const T &v6)
 Set first 6 elements.
T & operator[] (uint32_t i)
 Set element at index with no bounds checking.
const T & operator[] (uint32_t i) const
 Get element at index with no bounds checking.
void zero ()
 Zeros all elements.

Static Public Member Functions

static uint32_t size ()
 Returns size of array.

Detailed Description

template<uint32_t N, class T>
struct gam::Vec< N, T >

Fixed-size vector.


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