C++QEDCore  v2 Milestone 10
a framework for simulating open quantum dynamics – core
ArrayTraits.h File Reference

Declarations of traits functions for adapting array types to generic functions. More...

#include <string>
#include <vector>
+ Include dependency graph for ArrayTraits.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  cpputils::Rank< A >
 template metafunction for the rank (arity) of the multi-array A More...
 
struct  cpputils::TypeID< A >
 template metafunction providing an identifier string for the multi-array A More...
 
struct  cpputils::ElementType< A >
 template metafunction returning (by convention, as a member typedef type) the type of elements of the multi-array A More...
 

Namespaces

 cpputils
 Namespace comprising otherwise hard-to-classify generic utilities.
 

Functions

Array memory traits
template<typename A >
bool cpputils::isStorageContiguous (const A &a)
 
template<typename A >
size_t cpputils::size (const A &a)
 
template<typename A >
std::vector< size_t > cpputils::dimensions (const A &a)
 
template<typename A >
const double * cpputils::data (const A &a)
 
template<typename A >
double * cpputils::data (A &a)
 
template<typename A >
cpputils::create (double *y, const A &a)
 Clone (create a non-owning array of data y of the same memory layout as a)
 
template<typename A >
const A cpputils::create (const double *y, const A &a)
 Const clone (create a const non-owning array of data y of the same memory layout as a)
 
template<typename A >
cpputils::create (const A &a)
 Empty clone (create a newly allocated owning empty array of the same memory layout as a)
 
Array traversal traits
template<typename A >
const A::element_type & cpputils::subscript (const A &a, size_t i)
 subscription of a (which might be a multi-array) with a single integer More...
 
template<typename A >
A::element_type & cpputils::subscript (A &a, size_t i)
 non-const subscription
 
template<typename A >
size_t cpputils::subscriptLimit (const A &a)
 

Detailed Description

Declarations of traits functions for adapting array types to generic functions.

Definition in file ArrayTraits.h.