OTUS Matrix
 All Classes Namespaces Files Functions Typedefs
Classes | Public Member Functions | List of all members
otus::Matrix< T, DefaultValue, Dimension > Class Template Reference

Class of The multi-dimensional sparse matrix. More...

#include <matrix.hpp>

Classes

class  Iterator
 
class  Layout< 0, Types...>
 
class  TupleHash
 

Public Member Functions

 Matrix ()=default
 
 ~Matrix ()=default
 
 Matrix (const Matrix &other) noexcept
 
 Matrix (Matrix &&other) noexcept
 
 Matrix (std::initializer_list< std::pair< const TupleKey, T >> list)
 
Matrixoperator= (const Matrix &other)
 
Matrixoperator= (Matrix &&other) noexcept
 
bool operator== (const Matrix &other) const
 
bool operator!= (const Matrix &other) const
 
NextLayout operator[] (size_t idx)
 
const NextLayout operator[] (size_t idx) const
 
auto begin () const noexcept
 
auto end () const noexcept
 
size_t size () const noexcept
 
void clear () noexcept
 Clears the mapped matrix. More...
 

Detailed Description

template<typename T, T DefaultValue, size_t Dimension = 2>
class otus::Matrix< T, DefaultValue, Dimension >

Class of The multi-dimensional sparse matrix.

Constructor & Destructor Documentation

template<typename T , T DefaultValue, size_t Dimension = 2>
otus::Matrix< T, DefaultValue, Dimension >::Matrix ( )
default
template<typename T , T DefaultValue, size_t Dimension = 2>
otus::Matrix< T, DefaultValue, Dimension >::~Matrix ( )
default
template<typename T , T DefaultValue, size_t Dimension = 2>
otus::Matrix< T, DefaultValue, Dimension >::Matrix ( const Matrix< T, DefaultValue, Dimension > &  other)
inlinenoexcept
template<typename T , T DefaultValue, size_t Dimension = 2>
otus::Matrix< T, DefaultValue, Dimension >::Matrix ( Matrix< T, DefaultValue, Dimension > &&  other)
inlinenoexcept
template<typename T , T DefaultValue, size_t Dimension = 2>
otus::Matrix< T, DefaultValue, Dimension >::Matrix ( std::initializer_list< std::pair< const TupleKey, T >>  list)
inline

Member Function Documentation

template<typename T , T DefaultValue, size_t Dimension = 2>
auto otus::Matrix< T, DefaultValue, Dimension >::begin ( ) const
inlinenoexcept

Return an input iterator to the beginning

Returns
Input iterator to the begining
template<typename T , T DefaultValue, size_t Dimension = 2>
void otus::Matrix< T, DefaultValue, Dimension >::clear ( )
inlinenoexcept

Clears the mapped matrix.

template<typename T , T DefaultValue, size_t Dimension = 2>
auto otus::Matrix< T, DefaultValue, Dimension >::end ( ) const
inlinenoexcept

Return an input iterator to the end

Returns
Input iterator to the end
template<typename T , T DefaultValue, size_t Dimension = 2>
bool otus::Matrix< T, DefaultValue, Dimension >::operator!= ( const Matrix< T, DefaultValue, Dimension > &  other) const
inline
template<typename T , T DefaultValue, size_t Dimension = 2>
Matrix& otus::Matrix< T, DefaultValue, Dimension >::operator= ( const Matrix< T, DefaultValue, Dimension > &  other)
inline
template<typename T , T DefaultValue, size_t Dimension = 2>
Matrix& otus::Matrix< T, DefaultValue, Dimension >::operator= ( Matrix< T, DefaultValue, Dimension > &&  other)
inlinenoexcept
template<typename T , T DefaultValue, size_t Dimension = 2>
bool otus::Matrix< T, DefaultValue, Dimension >::operator== ( const Matrix< T, DefaultValue, Dimension > &  other) const
inline
template<typename T , T DefaultValue, size_t Dimension = 2>
NextLayout otus::Matrix< T, DefaultValue, Dimension >::operator[] ( size_t  idx)
inline
template<typename T , T DefaultValue, size_t Dimension = 2>
const NextLayout otus::Matrix< T, DefaultValue, Dimension >::operator[] ( size_t  idx) const
inline
template<typename T , T DefaultValue, size_t Dimension = 2>
size_t otus::Matrix< T, DefaultValue, Dimension >::size ( ) const
inlinenoexcept

Get real count of elements in matrix

Returns
count of elements

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