The blo Library
Loading...
Searching...
No Matches
Public Member Functions | List of all members
blo::Point< T, N > Class Template Reference

Inhomogeneous n-dimensional point. More...

#include <Point.h>

Inheritance diagram for blo::Point< T, N >:
blo::Array1DFixed< T, N >

Public Member Functions

 Point ()=default
 Default constructor.
 
 Point (const Point< T, N > &rhs)=default
 Copy constructor.
 
virtual ~Point ()=default
 Destructor.
 
Point< T, N > & operator= (const Point< T, N > &rhs)=default
 Assignment operator.
 
- Public Member Functions inherited from blo::Array1DFixed< T, N >
 Array1DFixed ()=default
 Default constructor.
 
 Array1DFixed (const T &val)
 Constructs array of specified value.
 
 Array1DFixed (const std::initializer_list< T > &list)
 Constructs array that is a copy of specified initializer list.
 
 Array1DFixed (const Array1DFixed< T, N > &rhs)=default
 Copy constructor.
 
virtual ~Array1DFixed ()=default
 Destructor.
 
Array1DFixed< T, N > & operator= (const Array1DFixed< T, N > &rhs)=default
 Copy assignment operator.
 
T & operator[] (int n)
 Index array element.
 
const T & operator[] (int n) const
 Index array element.
 
T * ptrData ()
 Retrieves the pointer to the beginning of the array.
 
const T * ptrData () const
 Retrieves the pointer to the beginning of the array.
 
void set (const T &val)
 Sets array elements to a value.
 

Additional Inherited Members

- Static Public Member Functions inherited from blo::Array1DFixed< T, N >
static int size ()
 Number of elements in the array.
 
static int len ()
 Length of the array.
 
static int stride2 ()
 Stride in bytes between the elements in the array.
 

Detailed Description

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

Inhomogeneous n-dimensional point.

Template Parameters
TData type.
NNumber of dimensions.

Constructor & Destructor Documentation

◆ Point() [1/2]

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

Default constructor.

◆ Point() [2/2]

template<typename T , size_t N>
blo::Point< T, N >::Point ( const Point< T, N > &  rhs)
default

Copy constructor.

◆ ~Point()

template<typename T , size_t N>
virtual blo::Point< T, N >::~Point ( )
virtualdefault

Destructor.

Member Function Documentation

◆ operator=()

template<typename T , size_t N>
Point< T, N > & blo::Point< T, N >::operator= ( const Point< T, N > &  rhs)
default

Assignment operator.


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