deal.II version GIT relicensing-2149-g6c46669274 2024-11-13 14:40:00+00:00
\(\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_v<T, bool> && std::is_trivially_copyable_v<T>>>
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_v<T, bool> && std::is_trivially_copyable_v<T>>>
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_v<T, bool> && std::is_trivially_copyable_v<T>>>
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_v<T, bool> && std::is_trivially_copyable_v<T>>>
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_v<T> == 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 1180 of file utilities.h.

◆ append_vector_of_trivially_copyable_to_buffer() [2/3]

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

Definition at line 1193 of file utilities.h.

◆ append_vector_of_trivially_copyable_to_buffer() [3/3]

template<typename T , typename = std::enable_if_t<!std::is_same_v<T, bool> && std::is_trivially_copyable_v<T>>>
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 1223 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 1268 of file utilities.h.

◆ create_vector_of_trivially_copyable_from_buffer() [2/3]

template<typename T , typename = std::enable_if_t<!std::is_same_v<T, bool> && std::is_trivially_copyable_v<T>>>
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 1283 of file utilities.h.

◆ create_vector_of_trivially_copyable_from_buffer() [3/3]

template<typename T , typename = std::enable_if_t<!std::is_same_v<T, bool> && std::is_trivially_copyable_v<T>>>
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 1332 of file utilities.h.