|
GLSL Struct 1.4.0
glslstruct
|
mat type container More...
#include <mat_type.hpp>
Public Member Functions | |
| mat_type (ValueType type, size_t cols, size_t rows, size_t size) noexcept | |
| constructor with scalar type, number of columns and rows of mat and size of type | |
| mat_type (const mat_type &other) noexcept | |
| default copy constructor | |
| mat_type (mat_type &&other) noexcept | |
| default move constructor | |
| ~mat_type () noexcept override | |
| default destructor | |
| mat_type & | operator= (const mat_type &other) noexcept |
| default copy assign operator | |
| mat_type & | operator= (mat_type &&other) noexcept |
| default move assign operator | |
| template<type_visitor T> | |
| void | accept (T &visitor) const |
| accept function for type visitors | |
| ValueType | get_type () const noexcept |
| returns scalar type of mat | |
| size_t | get_rows () const noexcept |
| returns rows number | |
| size_t | get_cols () const noexcept |
| returns columns number | |
| size_t | get_vec_length () const noexcept |
| returns column vector length (rows) | |
| size_t | get_array_count () const noexcept |
| returns column vectors number (columns) | |
| std::string | to_string () const noexcept override |
| converts type to string | |
| Public Member Functions inherited from glslstruct::type< mat_type > | |
| bool | operator!= (const base_type &other) const noexcept |
| default not equal operator | |
| _GLSL_STRUCT_CONSTEXPR20 | type (const size_t size) noexcept |
| constructor with type size | |
| virtual _GLSL_STRUCT_CONSTEXPR20 | ~type () noexcept override=default |
| default destructor | |
| _GLSL_STRUCT_CONSTEXPR17 type & | operator= (const type &other) noexcept=default |
| default copy assign operator | |
| void | accept (T &visitor) const |
| accept function for type visitors | |
| bool | operator== (const base_type &other) const noexcept override |
| equal operator | |
| Public Member Functions inherited from glslstruct::base_type | |
| base_type (size_t size) noexcept | |
| constructor with type size | |
| base_type (const base_type &other) noexcept | |
| default copy constructor | |
| base_type (base_type &&other) noexcept | |
| default move constructor | |
| virtual | ~base_type () noexcept |
| default virtual destructor | |
| base_type & | operator= (const base_type &other) noexcept |
| default copy assignment operator | |
| base_type & | operator= (base_type &&other) noexcept |
| default move assignment operator | |
| template<type_visitor T> | |
| void | accept (T &visitor) const |
| accept function for type_visitors | |
| bool | operator!= (const base_type &other) const noexcept |
| default not equal operator | |
| size_t | get_size () const noexcept |
| returns size of type | |
Private Types | |
| using | base_type = type |
Private Attributes | |
| size_t | _cols |
| number of columns | |
| size_t | _rows |
| number of rows | |
| ValueType | _type |
| scalar type of mat | |
Friends | |
| struct | std::hash< mat_type > |
| bool | operator== (const mat_type &lhs, const mat_type &rhs) |
| checks if two mats types are equal | |
| bool | operator!= (const mat_type &lhs, const mat_type &rhs) |
| checks if two mats types are not equal | |
Additional Inherited Members | |
| Protected Member Functions inherited from glslstruct::type< mat_type > | |
| void | _accept (const mstd::function_view< void(const scalar_type &)> scalarVisit, const mstd::function_view< void(const vec_type &)> vecVisit, const mstd::function_view< void(const mat_type &)> matVisit, const mstd::function_view< void(const struct_type &)> structVisit, const mstd::function_view< void(const array_type &)> arrayVisit) const override |
| accept function overload | |
| Protected Member Functions inherited from glslstruct::base_type | |
| virtual void | _accept (mstd::function_view< void(const scalar_type &)> scalarVisit, mstd::function_view< void(const vec_type &)> vecVisit, mstd::function_view< void(const mat_type &)> matVisit, mstd::function_view< void(const struct_type &)> structVisit, mstd::function_view< void(const array_type &)> arrayVisit) const =0 |
| accept function for type visitors | |
mat type container
|
private |
|
noexcept |
constructor with scalar type, number of columns and rows of mat and size of type
|
defaultnoexcept |
default copy constructor
|
defaultnoexcept |
default move constructor
|
overridedefaultnoexcept |
default destructor
|
inline |
accept function for type visitors
|
nodiscardnoexcept |
returns column vectors number (columns)
|
nodiscardnoexcept |
returns columns number
|
nodiscardnoexcept |
returns rows number
|
nodiscardnoexcept |
returns scalar type of mat
|
nodiscardnoexcept |
returns column vector length (rows)
default copy assign operator
|
nodiscardoverridevirtualnoexcept |
converts type to string
Implements glslstruct::base_type.
checks if two mats types are not equal
checks if two mats types are equal
|
friend |
|
private |
number of columns
|
private |
number of rows
|
private |
scalar type of mat