GLSL Struct 1.4.0
glslstruct
Loading...
Searching...
No Matches
glslstruct::utils::glsl_array_count_getter Class Reference

type visitor which gets array and sub arrays counts in format [0][1]... More...

#include <writer.hpp>

Collaboration diagram for glslstruct::utils::glsl_array_count_getter:
[legend]

Public Member Functions

 glsl_array_count_getter (bool canBeVariableSize) noexcept
template<class Type>
void visit (Type &&varType)
 visitor function
const std::string & get_result () const noexcept
 returns result

Private Attributes

bool _canBeVariableSize
 check for variable size arrays
std::string _result
 result

Detailed Description

type visitor which gets array and sub arrays counts in format [0][1]...

Constructor & Destructor Documentation

◆ glsl_array_count_getter()

glsl_array_count_getter::glsl_array_count_getter ( bool canBeVariableSize)
explicitnoexcept

Member Function Documentation

◆ get_result()

const std::string & glsl_array_count_getter::get_result ( ) const
nodiscardnoexcept

returns result

◆ visit()

template<class Type>
void glslstruct::utils::glsl_array_count_getter::visit ( Type && varType)
inline

visitor function

Member Data Documentation

◆ _canBeVariableSize

bool glslstruct::utils::glsl_array_count_getter::_canBeVariableSize
private

check for variable size arrays

◆ _result

std::string glslstruct::utils::glsl_array_count_getter::_result
private

result