PLaSK library
Loading...
Searching...
No Matches
plask::VecComponent< dim, T, i > Struct Template Reference

Vector component helper. More...

#include <plask/vector/common.hpp>

Collaboration diagram for plask::VecComponent< dim, T, i >:
[legend]

Public Member Functions

VecComponent< dim, T, i > & operator= (const T &val)
 Assign value to the component.
 
 operator T () const
 Extract value from the component.
 

Public Attributes

c [dim]
 

Static Public Attributes

static const int DIMS = dim
 

Detailed Description

template<int dim, typename T, int i>
struct plask::VecComponent< dim, T, i >

Vector component helper.

This class allow to perform operations on single components of vectors.

Definition at line 33 of file common.hpp.

Member Function Documentation

◆ operator T()

template<int dim, typename T , int i>
plask::VecComponent< dim, T, i >::operator T ( ) const
inline

Extract value from the component.

Definition at line 48 of file common.hpp.

◆ operator=()

template<int dim, typename T , int i>
VecComponent< dim, T, i > & plask::VecComponent< dim, T, i >::operator= ( const T &  val)
inline

Assign value to the component.

Parameters
valvalue to assign

Definition at line 43 of file common.hpp.

Member Data Documentation

◆ c

template<int dim, typename T , int i>
T plask::VecComponent< dim, T, i >::c[dim]

Definition at line 37 of file common.hpp.

◆ DIMS

template<int dim, typename T , int i>
const int plask::VecComponent< dim, T, i >::DIMS = dim
static

Definition at line 35 of file common.hpp.


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