Allium  0.1.0
allium::VectorTrait< Derived, N > Class Template Reference

Generates common vector operations automatically. More...

#include <vector_trait.hpp>

Inheritance diagram for allium::VectorTrait< Derived, N >:
Collaboration diagram for allium::VectorTrait< Derived, N >:

Public Types

using Number = N
 
using Real = real_part_t< Number >
 
- Public Types inherited from allium::CrtpTrait< Derived >
using DerivedType = Derived
 

Public Member Functions

template<typename Other >
Derived & operator-= (const Other &other)
 
Derived & operator/= (Number divisor)
 
template<typename Other >
Derived operator+ (const Other &rhs) const
 
template<typename Other >
Derived operator- (const Other &rhs) const
 
Derived operator* (Number factor) const
 
Derived operator/ (Number divisor) const
 

Detailed Description

template<typename Derived, typename N>
class allium::VectorTrait< Derived, N >

Generates common vector operations automatically.

If += and *= are implemented, all other vector operations are automatically generated.


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