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

Recursive addition wrapped in interval [min, max) More...

#include <gen.h>

Inheritance diagram for RAddWrap< T >:
RAdd< T > Val< T >

List of all members.

Public Member Functions

operator[] (uint32_t i) const
 Array get; generates next element.
 RAddWrap (const T &add, const T &val=T(0), const T &max=T(1), const T &min=T(0))
 Constructor.
operator() () const
 Generate next value.
T & operator[] (uint32_t i)
 Array set; sets current value.
const T & recede () const
 Go back one step.
void line (T begin, T end, T length)
 Set to generate line between points (0, begin) and (length, end)
void line (T end, T length)
 Set to generate line between points (0, val) and (length, end)
void constant (T v)
 Set to generate constant value.

Public Attributes

add
 Addition amount.
val
 Value.

Detailed Description

template<class T = gam::real>
struct gam::gen::RAddWrap< T >

Recursive addition wrapped in interval [min, max)


Member Function Documentation

T operator() ( ) const

Generate next value.

< Generate next value

Reimplemented from RAdd< T >.


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