Reference documentation for deal.II version 9.5.0
\(\newcommand{\dealvcentcolon}{\mathrel{\mathop{:}}}\) \(\newcommand{\dealcoloneq}{\dealvcentcolon\mathrel{\mkern-1.2mu}=}\) \(\newcommand{\jump}[1]{\left[\!\left[ #1 \right]\!\right]}\) \(\newcommand{\average}[1]{\left\{\!\left\{ #1 \right\}\!\right\}}\)
Loading...
Searching...
No Matches
Classes | Functions
Utilities::internal Namespace Reference

Classes

struct  IsVectorOfTriviallyCopyable
 
struct  IsVectorOfTriviallyCopyable< std::vector< std::vector< T > > >
 
struct  IsVectorOfTriviallyCopyable< std::vector< T > >
 

Functions

template<typename T >
void append_vector_of_trivially_copyable_to_buffer (const T &, std::vector< char > &)
 
template<typename T , typename = std::enable_if_t<!std::is_same<T, bool>::value && std::is_trivially_copyable<T>::value>>
void append_vector_of_trivially_copyable_to_buffer (const std::vector< T > &object, std::vector< char > &dest_buffer)
 
template<typename T , typename = std::enable_if_t<!std::is_same<T, bool>::value && std::is_trivially_copyable<T>::value>>
void append_vector_of_trivially_copyable_to_buffer (const std::vector< std::vector< T > > &object, std::vector< char > &dest_buffer)
 
template<typename T >
void create_vector_of_trivially_copyable_from_buffer (const std::vector< char >::const_iterator &, const std::vector< char >::const_iterator &, T &)
 
template<typename T , typename = std::enable_if_t<!std::is_same<T, bool>::value && std::is_trivially_copyable<T>::value>>
void create_vector_of_trivially_copyable_from_buffer (const std::vector< char >::const_iterator &cbegin, const std::vector< char >::const_iterator &cend, std::vector< T > &object)
 
template<typename T , typename = std::enable_if_t<!std::is_same<T, bool>::value && std::is_trivially_copyable<T>::value>>
void create_vector_of_trivially_copyable_from_buffer (const std::vector< char >::const_iterator &cbegin, const std::vector< char >::const_iterator &cend, std::vector< std::vector< T > > &object)
 

Function Documentation

◆ append_vector_of_trivially_copyable_to_buffer() [1/3]

template<typename T >
void Utilities::internal::append_vector_of_trivially_copyable_to_buffer ( const T &  ,
std::vector< char > &   
)
inline

A function that is used to append the contents of a std::vector<T> (where T is a type that satisfies std::is_trivially_copyable<T>::value == true but not T==bool) bit for bit to a character array.

If the type is not such a vector of T, then the function throws an exception.

Definition at line 1164 of file utilities.h.

◆ append_vector_of_trivially_copyable_to_buffer() [2/3]

template<typename T , typename = std::enable_if_t<!std::is_same<T, bool>::value && std::is_trivially_copyable<T>::value>>
void Utilities::internal::append_vector_of_trivially_copyable_to_buffer ( const std::vector< T > &  object,
std::vector< char > &  dest_buffer 
)
inline

Definition at line 1177 of file utilities.h.

◆ append_vector_of_trivially_copyable_to_buffer() [3/3]

template<typename T , typename = std::enable_if_t<!std::is_same<T, bool>::value && std::is_trivially_copyable<T>::value>>
void Utilities::internal::append_vector_of_trivially_copyable_to_buffer ( const std::vector< std::vector< T > > &  object,
std::vector< char > &  dest_buffer 
)
inline

Definition at line 1207 of file utilities.h.

◆ create_vector_of_trivially_copyable_from_buffer() [1/3]

template<typename T >
void Utilities::internal::create_vector_of_trivially_copyable_from_buffer ( const std::vector< char >::const_iterator &  ,
const std::vector< char >::const_iterator &  ,
T &   
)
inline

Definition at line 1252 of file utilities.h.

◆ create_vector_of_trivially_copyable_from_buffer() [2/3]

template<typename T , typename = std::enable_if_t<!std::is_same<T, bool>::value && std::is_trivially_copyable<T>::value>>
void Utilities::internal::create_vector_of_trivially_copyable_from_buffer ( const std::vector< char >::const_iterator &  cbegin,
const std::vector< char >::const_iterator &  cend,
std::vector< T > &  object 
)
inline

Definition at line 1267 of file utilities.h.

◆ create_vector_of_trivially_copyable_from_buffer() [3/3]

template<typename T , typename = std::enable_if_t<!std::is_same<T, bool>::value && std::is_trivially_copyable<T>::value>>
void Utilities::internal::create_vector_of_trivially_copyable_from_buffer ( const std::vector< char >::const_iterator &  cbegin,
const std::vector< char >::const_iterator &  cend,
std::vector< std::vector< T > > &  object 
)
inline

Definition at line 1302 of file utilities.h.