QMCPACK
template_types.hpp File Reference
+ Include dependency graph for template_types.hpp:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

 qmcplusplus
 helper functions for EinsplineSetBuilder
 

Convenience templated type aliases

when feasible do not use previous aliases in following that way one line can be scanned to understand a single alias see: UPtrVector

template<typename T >
using RefVector = std::vector< std::reference_wrapper< T > >
 
template<typename T >
using UPtr = std::unique_ptr< T >
 
template<typename T >
using UPtrVector = std::vector< std::unique_ptr< T > >
 
template<class TR , class T >
static RefVector< TR > makeRefVector (std::vector< T > &vec_list)
 }@ More...
 
template<class T >
static RefVector< T > convertUPtrToRefVector (const UPtrVector< T > &ptr_list)
 convert a vector of std::unique_ptrs<T> to a refvector<T> More...
 
template<class T2 , class T >
static RefVector< T2 > convertUPtrToRefVector (const UPtrVector< T > &ptr_list)
 convert a vector of std::unique_ptrs<T> to a refvector<T2> the static assert prevents ambiguity between this function and the above when T is a derived type of T2. More...
 
template<class T >
static RefVector< T > convertPtrToRefVector (const std::vector< T *> &ptr_list)
 
template<class T >
static std::vector< T * > convert_ref_to_ptr_list (const std::vector< std::reference_wrapper< T >> &ref_list)
 
template<class T >
static std::vector< T * > convertUPtrToPtrVector (const UPtrVector< T > &uptr_list)
 
template<class T >
static RefVector< T > convertUPtrToRefVectorSubset (const UPtrVector< T > &ptr_list, int offset, int len)
 
template<class T >
static RefVector< T > convertPtrToRefVectorSubset (const std::vector< T *> &ptr_list, int offset, int len)
 
template<class T >
static RefVector< T > convertRefVectorToRefVectorSubset (const RefVector< T > &ref_list, int offset, int len)