Jet  v1.3.3
Public Member Functions | List of all members
jet::Point< T, N > Class Template Referencefinal

Generic N-D point class. More...

#include <jet/point.h>

Public Member Functions

 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 >
Pointoperator= (const std::initializer_list< U > &lst)
 Set point instance with initializer list. More...
 
Pointoperator= (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...
 

Detailed Description

template<typename T, size_t N>
class jet::Point< T, N >

Generic N-D point class.

Template Parameters
T- Number type.
N- Dimension.

Constructor & Destructor Documentation

◆ Point() [1/4]

template<typename T , size_t N>
jet::Point< T, N >::Point ( )

Constructs a point with zeros.

◆ Point() [2/4]

template<typename T , size_t N>
template<typename... Params>
jet::Point< T, N >::Point ( Params...  params)
explicit

Constructs point instance with parameters.

◆ Point() [3/4]

template<typename T , size_t N>
template<typename U >
jet::Point< T, N >::Point ( const std::initializer_list< U > &  lst)
explicit

Constructs point instance with initiazer list.

◆ Point() [4/4]

template<typename T , size_t N>
jet::Point< T, N >::Point ( const Point< T, N > &  other)

Copy constructor.

Member Function Documentation

◆ operator=() [1/2]

template<typename T , size_t N>
Point& jet::Point< T, N >::operator= ( const Point< T, N > &  other)

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>
T& jet::Point< T, N >::operator[] ( size_t  )

Returns the reference to the i -th element.

◆ set() [1/2]

template<typename T , size_t N>
void jet::Point< T, N >::set ( const Point< T, N > &  other)

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: