cppx-core
Public Member Functions | List of all members
cppx::Matrix_< Item > Class Template Reference

#include <Matrix_.hpp>

Public Member Functions

auto n_items () const -> Size
 
auto width () const -> Size
 
auto height () const -> Size
 
auto begin () const
 
auto end () const
 
auto data () const
 
auto begin ()
 
auto end ()
 
auto data ()
 
auto index_of (const Index col, const Index row) const -> Index
 
auto col_of (const Index i) const -> Index
 
auto row_of (const Index i) const -> Index
 
auto operator() (const Index col, const Index row) const -> const Item &
 
auto operator() (const Index col, const Index row) -> Item &
 
auto at (const Index col, const Index row) const -> const Item &
 
auto at (const Index col, const Index row) -> Item &
 
 Matrix_ ()
 
 Matrix_ (const Size width, const Size height)
 

Detailed Description

template<class Item>
class cppx::Matrix_< Item >

Definition at line 17 of file Matrix_.hpp.

Constructor & Destructor Documentation

◆ Matrix_() [1/2]

template<class Item >
cppx::Matrix_< Item >::Matrix_ ( )
inline

Definition at line 77 of file Matrix_.hpp.

◆ Matrix_() [2/2]

template<class Item >
cppx::Matrix_< Item >::Matrix_ ( const Size  width,
const Size  height 
)
inline

Definition at line 83 of file Matrix_.hpp.

Member Function Documentation

◆ at() [1/2]

template<class Item >
auto cppx::Matrix_< Item >::at ( const Index  col,
const Index  row 
) const -> const Item&
inline

Definition at line 69 of file Matrix_.hpp.

◆ at() [2/2]

template<class Item >
auto cppx::Matrix_< Item >::at ( const Index  col,
const Index  row 
) -> Item&
inline

Definition at line 73 of file Matrix_.hpp.

◆ begin() [1/2]

template<class Item >
auto cppx::Matrix_< Item >::begin ( ) const
inline

Definition at line 42 of file Matrix_.hpp.

◆ begin() [2/2]

template<class Item >
auto cppx::Matrix_< Item >::begin ( )
inline

Definition at line 45 of file Matrix_.hpp.

◆ col_of()

template<class Item >
auto cppx::Matrix_< Item >::col_of ( const Index  i) const -> Index
inline

Definition at line 53 of file Matrix_.hpp.

◆ data() [1/2]

template<class Item >
auto cppx::Matrix_< Item >::data ( ) const
inline

Definition at line 44 of file Matrix_.hpp.

◆ data() [2/2]

template<class Item >
auto cppx::Matrix_< Item >::data ( )
inline

Definition at line 47 of file Matrix_.hpp.

◆ end() [1/2]

template<class Item >
auto cppx::Matrix_< Item >::end ( ) const
inline

Definition at line 43 of file Matrix_.hpp.

◆ end() [2/2]

template<class Item >
auto cppx::Matrix_< Item >::end ( )
inline

Definition at line 46 of file Matrix_.hpp.

◆ height()

template<class Item >
auto cppx::Matrix_< Item >::height ( ) const -> Size
inline

Definition at line 40 of file Matrix_.hpp.

◆ index_of()

template<class Item >
auto cppx::Matrix_< Item >::index_of ( const Index  col,
const Index  row 
) const -> Index
inline

Definition at line 49 of file Matrix_.hpp.

◆ n_items()

template<class Item >
auto cppx::Matrix_< Item >::n_items ( ) const -> Size
inline

Definition at line 38 of file Matrix_.hpp.

◆ operator()() [1/2]

template<class Item >
auto cppx::Matrix_< Item >::operator() ( const Index  col,
const Index  row 
) const -> const Item&
inline

Definition at line 61 of file Matrix_.hpp.

◆ operator()() [2/2]

template<class Item >
auto cppx::Matrix_< Item >::operator() ( const Index  col,
const Index  row 
) -> Item&
inline

Definition at line 65 of file Matrix_.hpp.

◆ row_of()

template<class Item >
auto cppx::Matrix_< Item >::row_of ( const Index  i) const -> Index
inline

Definition at line 57 of file Matrix_.hpp.

◆ width()

template<class Item >
auto cppx::Matrix_< Item >::width ( ) const -> Size
inline

Definition at line 39 of file Matrix_.hpp.


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