Generic N-D point class.
More...
#include <jet/point.h>
|
| | Point () |
| | Constructs a point with zeros. More...
|
| |
| template<typename... Params> |
| | Point (Params... params) |
| | Constructs point instance with parameters. More...
|
| |
| template<typename U > |
| | Point (const std::initializer_list< U > &lst) |
| | Constructs point instance with initiazer list. More...
|
| |
| | Point (const Point &other) |
| | Copy constructor. More...
|
| |
| template<typename U > |
| void | set (const std::initializer_list< U > &lst) |
| | Set point instance with initializer list. More...
|
| |
| void | set (const Point &other) |
| | Set point instance with other point. More...
|
| |
| template<typename U > |
| Point & | operator= (const std::initializer_list< U > &lst) |
| | Set point instance with initializer list. More...
|
| |
| Point & | operator= (const Point &other) |
| | Set point instance with other point. More...
|
| |
| const T & | operator[] (size_t i) const |
| | Returns the const reference to the i -th element. More...
|
| |
| T & | operator[] (size_t) |
| | Returns the reference to the i -th element. More...
|
| |
template<typename T, size_t N>
class jet::Point< T, N >
Generic N-D point class.
- Template Parameters
-
| T | - Number type. |
| N | - Dimension. |
◆ Point() [1/4]
template<typename T , size_t N>
Constructs a point with zeros.
◆ Point() [2/4]
template<typename T , size_t N>
template<typename... Params>
Constructs point instance with parameters.
◆ Point() [3/4]
template<typename T , size_t N>
template<typename U >
Constructs point instance with initiazer list.
◆ Point() [4/4]
template<typename T , size_t N>
◆ operator=() [1/2]
template<typename T , size_t N>
Set point instance with other point.
◆ operator=() [2/2]
template<typename T , size_t N>
template<typename U >
| Point& jet::Point< T, N >::operator= |
( |
const std::initializer_list< U > & |
lst | ) |
|
Set point instance with initializer list.
◆ operator[]() [1/2]
template<typename T , size_t N>
| const T& jet::Point< T, N >::operator[] |
( |
size_t |
i | ) |
const |
Returns the const reference to the i -th element.
◆ operator[]() [2/2]
template<typename T , size_t N>
Returns the reference to the i -th element.
◆ set() [1/2]
template<typename T , size_t N>
Set point instance with other point.
◆ set() [2/2]
template<typename T , size_t N>
template<typename U >
| void jet::Point< T, N >::set |
( |
const std::initializer_list< U > & |
lst | ) |
|
Set point instance with initializer list.
The documentation for this class was generated from the following file: