MeshLib Documentation
Loading...
Searching...
No Matches
vector_wrapper_base< T > Struct Template Reference

#include <Vector.h>

+ Inheritance diagram for vector_wrapper_base< T >:

Public Types

using value_type = T
 

Public Member Functions

void invalidate ()
 

Public Attributes

value_typedata
 
size_t size
 

Protected Member Functions

 vector_wrapper_base (std::vector< T > *vec)
 

Protected Attributes

std::vector< T > * vec_
 

Detailed Description

template<typename T>
struct vector_wrapper_base< T >

helper class to represent std::vector data as a pointer+length pair NOTE: changing the source vector might invalidate the data pointer

Member Typedef Documentation

◆ value_type

template<typename T >
using vector_wrapper_base< T >::value_type = T

Constructor & Destructor Documentation

◆ vector_wrapper_base()

template<typename T >
vector_wrapper_base< T >::vector_wrapper_base ( std::vector< T > * vec)
inlineexplicitprotected

Member Function Documentation

◆ invalidate()

template<typename T >
void vector_wrapper_base< T >::invalidate ( )
inline

Member Data Documentation

◆ data

template<typename T >
value_type* vector_wrapper_base< T >::data

◆ size

template<typename T >
size_t vector_wrapper_base< T >::size

◆ vec_

template<typename T >
std::vector<T>* vector_wrapper_base< T >::vec_
protected

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