Visual Computing Library
Loading...
Searching...
No Matches
vcl::mesh::VerticalComponentsVectorTuple< Comp > Class Template Reference

Public Member Functions

template<typename C >
constexpr bool hasComponent () const
 
template<typename C >
constexpr std::vector< typename C::DataValueType > & vector ()
 
template<typename C >
constexpr const std::vector< typename C::DataValueType > & vector () const
 
std::size_t size () const
 
void resize (std::size_t size)
 
void reserve (std::size_t size)
 
void compact (const std::vector< uint > &newIndices)
 
void clear ()
 
void enableAllOptionalComponents ()
 
void disableAllOptionalComponents ()
 
template<typename C >
bool isComponentEnabled () const
 
template<uint COMP_ID>
bool isComponentEnabled () const
 
template<typename C >
void enableComponent ()
 
template<uint COMP_ID>
void enableComponent ()
 
template<typename C >
void disableComponent ()
 
template<uint COMP_ID>
void disableComponent ()
 

Static Public Member Functions

static constexpr uint componentsNumber ()
 

Private Types

using ComponentTypes = std::tuple< Comp... >
 

Private Member Functions

template<std::size_t N>
void vectorResize (std::size_t size)
 
template<std::size_t N>
void vectorReserve (std::size_t size)
 
template<std::size_t N>
void vectorCompact (const std::vector< uint > &newIndices)
 
template<typename C , bool E>
void setComponentEnabled ()
 
template<typename C , bool E>
void setComponentEnabledIfOptional ()
 

Static Private Member Functions

template<typename C >
static constexpr uint indexOfType ()
 

Private Attributes

std::tuple< std::vector< typename Comp::DataValueType >... > mVecTuple
 
std::array< bool, COMP_NUMBER > mVecEnabled
 
std::size_t mSize = 0
 

Static Private Attributes

static constexpr uint COMP_NUMBER
 

Member Data Documentation

◆ COMP_NUMBER

template<typename... Comp>
constexpr uint vcl::mesh::VerticalComponentsVectorTuple< Comp >::COMP_NUMBER
staticconstexprprivate
Initial value:
=
std::tuple_size_v<std::tuple<std::vector<Comp>...>>

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