|
GLSL Struct 1.4.0
glslstruct
|
intermediate glsl type containers More...
#include <type.hpp>
Public Member Functions | |
| _GLSL_STRUCT_CONSTEXPR20 | type (const size_t size) noexcept |
| constructor with type size | |
| _GLSL_STRUCT_CONSTEXPR20 | type (const type &other) noexcept=default |
| default copy constructor | |
| _GLSL_STRUCT_CONSTEXPR20 | type (type &&other) noexcept=default |
| default move constructor | |
| virtual _GLSL_STRUCT_CONSTEXPR20 | ~type () noexcept override=default |
| default destructor | |
| _GLSL_STRUCT_CONSTEXPR17 type & | operator= (const type &other) noexcept=default |
| default copy assign operator | |
| _GLSL_STRUCT_CONSTEXPR17 type & | operator= (type &&other) noexcept=default |
| default move assign operator | |
| template<type_visitor T> | |
| void | accept (T &visitor) const |
| accept function for type visitors | |
| bool | operator== (const base_type &other) const noexcept override |
| equal operator | |
| bool | operator!= (const base_type &other) const noexcept |
| default not 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 | |
| virtual std::string | to_string () const noexcept=0 |
| converts type to string | |
Protected Member Functions | |
| 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 | |
Private Member Functions | |
| _GLSL_STRUCT_CONSTEXPR17 const Derived & | _get_derived () const noexcept |
| standard cast from this to derived type | |
Friends | |
| template<class DerivedA, class DerivedB> | |
| _GLSL_STRUCT_CONSTEXPR17 bool | operator== (const type< DerivedA > &lhs, const type< DerivedB > &rhs) |
| equal operator for two intermediate types | |
| template<class DerivedA, class DerivedB> | |
| _GLSL_STRUCT_CONSTEXPR17 bool | operator!= (const type< DerivedA > &lhs, const type< DerivedB > &rhs) |
| not equal operator for two intermediate types | |
| template<utils::glsl_type T> | |
| _GLSL_STRUCT_CONSTEXPR20 bool | operator!= (const base_type &lhs, const T &rhs) |
| checks if types are not equal | |
intermediate glsl type containers
| Derived | derived type |
|
inlineexplicitnoexcept |
constructor with type size
|
defaultnoexcept |
default copy constructor
|
defaultnoexcept |
default move constructor
|
overridevirtualdefaultnoexcept |
default destructor
|
inlineoverrideprotected |
accept function overload
|
inlineprivatenoexcept |
standard cast from this to derived type
|
inline |
accept function for type visitors
|
nodiscarddefaultnoexcept |
default not equal operator
|
defaultnoexcept |
default copy assign operator
|
defaultnoexcept |
default move assign operator
|
inlinenodiscardoverridevirtualnoexcept |
equal operator
Reimplemented from glslstruct::base_type.
|
friend |
checks if types are not equal
|
friend |
not equal operator for two intermediate types
|
friend |
equal operator for two intermediate types