|
Doxygen
1.9.8
|

Files | |
| file | tsgUtils.hpp |
| Miscellaneous utility templates used thoughout the code. | |
Namespaces | |
| namespace | TasGrid::Utils |
| Miscellaneous utility templates (internal use). | |
Classes | |
| class | TasGrid::Utils::Wrapper2D< T > |
| Wraps around a C-style of an array and mimics 2D data-structure. More... | |
Functions | |
| template<typename IntA , typename IntB > | |
| size_t | TasGrid::Utils::size_mult (IntA a, IntB b) |
| Converts two integer-like variables to size_t and returns the product.. | |
| template<typename T , typename I > | |
| std::vector< typename std::remove_const< T >::type > | TasGrid::Utils::copyArray (T *x, I size) |
| Copies an array into a vector, returns empty vector if the input is nullpntr. | |
| template<typename T > | |
| std::vector< T > | TasGrid::Utils::mergeVectors (std::vector< std::vector< T > > const &vec) |
| Takes a vector of vectors and returns a single contiguous vector. | |
| template<typename T > | |
| constexpr bool | TasGrid::Utils::has_grid (T &&g) |
| Equivalent to C++14 make_unique. | |
|
inline |
Converts two integer-like variables to size_t and returns the product..
| std::vector< typename std::remove_const< T >::type > TasGrid::Utils::copyArray | ( | T * | x, |
| I | size | ||
| ) |
Copies an array into a vector, returns empty vector if the input is nullpntr.
| std::vector< T > TasGrid::Utils::mergeVectors | ( | std::vector< std::vector< T > > const & | vec | ) |
Takes a vector of vectors and returns a single contiguous vector.