Virtual Testbed
Ship dynamics simulator for extreme conditions
Classes | Functions
vtb::base Namespace Reference

Basic classes and functions. More...

Classes

class  bstream
 
union  bytes
 
struct  constants
 
class  error_at_line
 
struct  floating_point_field
 
struct  has_begin_end
 
struct  has_begin_end< std::vector< T > >
 
struct  has_reserve_emplace_back
 
struct  has_reserve_emplace_back< std::vector< T > >
 
struct  integer
 
struct  integer< 1 >
 
struct  integer< 2 >
 
struct  integer< 4 >
 
struct  integer< 8 >
 
class  ios_guard
 
class  Mean
 Estimates sample mean without overflows. More...
 
class  MinMax
 
class  MinMaxMean
 
class  multiple_array_iterator
 
struct  unsigned_field
 
struct  view
 

Functions

template<int Size>
void swap (typename integer< Size >::type &n)
 
template<>
void swap< 1 > (integer< 1 >::type &n)
 
template<>
void swap< 2 > (integer< 2 >::type &n)
 
template<>
void swap< 4 > (integer< 4 >::type &n)
 
template<>
void swap< 8 > (integer< 8 >::type &n)
 
template<class T >
unsigned_field< T > make_unsigned_field (T &value)
 
template<class T >
floating_point_field< T > make_floating_point_field (T &value)
 
std::string file_to_string (std::string filename)
 
std::string extension (std::string filename)
 
std::pair< std::string, std::stringparent_child (const std::string &path)
 
template<class Iterator >
MinMaxMean< typename std::iterator_traits< Iterator >::value_type > min_max_mean (Iterator first, Iterator last)
 
template<class Ch , class Tr >
void trim_right (std::basic_string< Ch, Tr > &rhs, const std::locale &loc)
 
template<class Ch , class Tr >
void trim_left (std::basic_string< Ch, Tr > &rhs, const std::locale &loc)
 
template<class Ch , class Tr >
void trim (std::basic_string< Ch, Tr > &rhs, const std::locale &loc)
 
std::string normalise (const std::string &rhs)
 
bool empty (const std::string &line)
 
template<class Container >
view< typename Container::const_reverse_iterator > make_reverse_view (const Container &rhs)
 

Detailed Description

Basic classes and functions.