Data Structures | Namespaces | Functions

/export/development/ViennaMath/viennamath/compiletime/ct_variable.hpp File Reference

Implementation of a compiletime variable (in the mathematical sense). More...

#include "viennamath/compiletime/ct_vector.hpp"
#include "viennamath/exception.hpp"
#include <assert.h>

Go to the source code of this file.

Data Structures

struct  type_by_index< vmath_vector, id >
 Helper metafunction for returning the 'id'-th entry of a compiletime vector. More...
struct  type_by_index< vmath_vector, 0 >
 Accesses the first entry in a compiletime vector. More...
struct  type_by_index< vmath_vector, 1 >
 Accesses the second entry in a compiletime vector. More...
struct  type_by_index< vmath_vector, 2 >
 Accesses the third entry in a compiletime vector. More...
struct  variable_traits< VectorType, id >
 Helper struct for accessing the i-th element of a vector at runtime. More...
struct  variable_traits< ct_vector_1< T0 >, id >
 Helper struct for accessing the i-th element of a vector at runtime. Specialization for a ViennaMath compiletime vector with one entry. More...
struct  variable_traits< ct_vector_2< T0, T1 >, id >
 Helper struct for accessing the i-th element of a vector at runtime. Specialization for a ViennaMath compiletime vector with two entries. More...
struct  variable_traits< ct_vector_3< T0, T1, T2 >, id >
 Helper struct for accessing the i-th element of a vector at runtime. Specialization for a ViennaMath compiletime vector with three entries. More...
struct  variable_traits< ct_constant< value_ >, 0 >
 Helper struct for accessing the 0-th element of a constant at runtime. More...
struct  variable_traits< ct_constant< value_ >, id >
 Compiletime guard for index out of bounds. More...
struct  ct_variable< id >
 Representation of a mathematical variable. If the supplied argument is some vector type, a traits system accesses the id-th component. More...

Namespaces

namespace  viennamath
 

The main ViennaMath namespace. All types and functions for the user reside here.


Functions

template<id_type id>
std::ostream & operator<< (std::ostream &stream, ct_variable< id > const &u)
 Convenience overload for printing a variable to an output stream.

Detailed Description

Implementation of a compiletime variable (in the mathematical sense).