|
template<class output_t , class input_t , std::size_t SIZE> |
constexpr std::array< output_t, SIZE > | autopas::utils::ArrayUtils::static_cast_copy_array (const std::array< input_t, SIZE > &a) |
| Creates a new array by performing an element-wise static_cast<>.
|
|
template<class Container , class Fun > |
void | autopas::utils::ArrayUtils::to_string (std::ostream &os, const Container &container, const std::string &delimiter, const std::array< std::string, 2 > &surround, Fun elemToString) |
| Generates a string representation of a container which fulfills the Container requirement (provide cbegin and cend) and appends it to a stream.
|
|
template<class Container > |
void | autopas::utils::ArrayUtils::to_string (std::ostream &os, const Container &container, const std::string &delimiter=", ", const std::array< std::string, 2 > &surround={"[", "]"}) |
| Version of to_string() with simpler signature and default arguments.
|
|
template<class Container , class Fun > |
std::string | autopas::utils::ArrayUtils::to_string (const Container &container, const std::string &delimiter, const std::array< std::string, 2 > &surround, Fun elemToString) |
| Generates a string representation of a container which fulfills the Container requirement (provide cbegin and cend).
|
|
template<class Container > |
std::string | autopas::utils::ArrayUtils::to_string (const Container &container, const std::string &delimiter=", ", const std::array< std::string, 2 > &surround={"[", "]"}) |
| Version of to_string() with simpler signature and default arguments.
|
|
template<class Container > |
std::enable_if_t< autopas::utils::ArrayUtils::is_container< Container >::value, std::ostream & > | autopas::utils::ArrayUtils::operator<< (std::ostream &os, const Container &container) |
| Stream operator for containers (array and vector types).
|
|
template<class OuterContainerT > |
void | autopas::utils::ArrayUtils::balanceVectors (OuterContainerT &vecvec) |
| Given a collection of vectors, redistributes the elements of the vectors so they all have the same (or +1) size.
|
|
template<class OuterContainerT , class F > |
void | autopas::utils::ArrayUtils::balanceVectors (OuterContainerT &vecvec, F innerContainerToVec) |
| Given a collection of containers that hold vectors, redistributes the elements of the vectors so they all have the same (or +1) size.
|
|