CubbyFlow::Point< T, N > Class Template Referencefinal

Generic N-D point class. More...

#include <Core/Point/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 > &list)
 Constructs point instance with initializer list. More...
 
 Point (const Point &other)
 Copy constructor. More...
 
template<typename U >
void Set (const std::initializer_list< U > &list)
 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 > &list)
 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...
 
template<typename U >
Point< T, N > & operator= (const std::initializer_list< U > &list)
 

Detailed Description

template<typename T, size_t N>
class CubbyFlow::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>
CubbyFlow::Point< T, N >::Point ( )

Constructs a point with zeros.

◆ Point() [2/4]

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

Constructs point instance with parameters.

◆ Point() [3/4]

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

Constructs point instance with initializer list.

◆ Point() [4/4]

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

Copy constructor.

Member Function Documentation

◆ operator=() [1/3]

template<typename T, size_t N>
template<typename U >
Point& CubbyFlow::Point< T, N >::operator= ( const std::initializer_list< U > &  list)

Set point instance with initializer list.

◆ operator=() [2/3]

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

Set point instance with other point.

◆ operator=() [3/3]

template<typename T, size_t N>
template<typename U >
Point<T, N>& CubbyFlow::Point< T, N >::operator= ( const std::initializer_list< U > &  list)

◆ operator[]() [1/2]

template<typename T , size_t N>
const T & CubbyFlow::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 & CubbyFlow::Point< T, N >::operator[] ( size_t  i)

Returns the reference to the i -th element.

◆ Set() [1/2]

template<typename T , size_t N>
template<typename U >
void CubbyFlow::Point< T, N >::Set ( const std::initializer_list< U > &  list)

Set point instance with initializer list.

◆ Set() [2/2]

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

Set point instance with other point.


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