libMesh
Classes | Namespaces | Functions
utility.h File Reference

Go to the source code of this file.

Classes

struct  libMesh::Utility::do_pow< N, T >
 An efficient template instantiation for raising to an arbitrary integer power. More...
 
struct  libMesh::Utility::do_pow< 6, T >
 
struct  libMesh::Utility::do_pow< 1, T >
 
struct  libMesh::Utility::do_pow< 0, T >
 
class  libMesh::Utility::ReverseBytes
 This Functor simply takes an object and reverses its byte representation. More...
 

Namespaces

 libMesh
 The libMesh namespace provides an interface to certain functionality in the library.
 
 libMesh::Utility
 

Functions

std::string libMesh::Utility::system_info ()
 
template<typename ForwardIter , typename T >
void libMesh::Utility::iota (ForwardIter first, ForwardIter last, T value)
 Utility::iota is a duplication of the SGI STL extension std::iota. More...
 
template<class InputIterator >
bool libMesh::Utility::is_sorted (InputIterator first, InputIterator last)
 Utility::is_sorted mimics the behavior of the SGI STL extension std::is_sorted. More...
 
template<class ForwardIterator , class T >
ForwardIterator libMesh::Utility::binary_find (ForwardIterator first, ForwardIterator last, const T &value)
 The STL provides std::binary_search() which returns true or false depending on whether the searched-for value is found. More...
 
template<class ForwardIterator , class T , class Compare >
ForwardIterator libMesh::Utility::binary_find (ForwardIterator first, ForwardIterator last, const T &value, Compare comp)
 As above, but takes a custom comparison object. More...
 
template<int N, typename T >
libMesh::Utility::pow (const T &x)
 
unsigned int libMesh::Utility::factorial (unsigned int n)
 A simple implementation of the factorial. More...
 
template<typename T >
libMesh::Utility::binomial (T n, T k)
 
template<typename T >
void libMesh::Utility::deallocate (std::vector< T > &vec)
 A convenient method to truly empty a vector using the "swap trick". More...
 
std::string libMesh::Utility::complex_filename (const std::string &basename, unsigned int r_o_c=0)
 
void libMesh::Utility::prepare_complex_data (const std::vector< Complex > &source, std::vector< Real > &real_part, std::vector< Real > &imag_part)
 Prepare complex data for writing. More...
 
int libMesh::Utility::mkdir (const char *pathname)
 Create a directory. More...