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

Multi-element container. More...

#include <Types.h>

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

List of all members.

Public Member Functions

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::Multi< N, T >

Multi-element container.

This is a fixed size array to enable better loop unrolling optimizations by the compiler and to avoid an extra 'size' data member for small-sized arrays. It intentionally lacks a constructor to allow C-style struct initializations.


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