|
0.12.0
|
|
Freundlich's C++ toolkit |
Contains dim::object and helper functions, classes and types for it. More...
Classes | |
| struct | dynamic |
| Typedef helper for dynamic dimensionsSee the introduction to fcppt::math::vector::object for more information on dynamic vectors (and dimensions) and this class. More... | |
| struct | has_dim |
| Metafunction to check the dimension of a static dim. More... | |
| struct | normal_storage |
| class | object |
| A class representing dynamic or static n-dimensional dimensions. More... | |
| struct | static_ |
| Typedef helper for static dimsSee the introduction to fcppt::math::vector::object for more information on static dims (and on this class). More... | |
Functions | |
| template<typename T , typename N , typename S > | |
| bool | before (object< T, N, S > const &_a, object< T, N, S > const &_b) |
| template<typename T , typename N , typename S1 , typename S2 > | |
| bool | operator== (object< T, N, S1 > const &v1, object< T, N, S2 > const &v2) |
| template<typename T , typename N , typename S1 , typename S2 > | |
| bool | operator!= (object< T, N, S1 > const &v1, object< T, N, S2 > const &v2) |
| template<typename T , typename N , typename S1 , typename S2 > | |
| bool | operator< (object< T, N, S1 > const &v1, object< T, N, S2 > const &v2) |
| template<typename T , typename N , typename S1 , typename S2 > | |
| bool | operator> (object< T, N, S1 > const &v1, object< T, N, S2 > const &v2) |
| template<typename T , typename N , typename S1 , typename S2 > | |
| bool | operator<= (object< T, N, S1 > const &v1, object< T, N, S2 > const &v2) |
| template<typename T , typename N , typename S1 , typename S2 > | |
| bool | operator>= (object< T, N, S1 > const &v1, object< T, N, S2 > const &v2) |
| template<typename T , typename N , typename S1 , typename S2 > | |
| bool | componentwise_equal (dim::object< T, N, S1 > const &_v1, dim::object< T, N, S2 > const &_v2, T const _epsilon) |
| template<typename T , typename N , typename S > | |
| boost::enable_if < math::is_static_size< N > , typename static_< T, N::value+1 >::type >::type const | construct (object< T, N, S > const &base, T const &t) |
Constructs a dim with dimension N+1 from a dim with dimension N. | |
| template<math::size_type N, typename T > | |
| fcppt::math::dim::static_< T, N >::type | fill (T const &_value) |
| Constructs a static dim with all components set to a given value. | |
| template<typename T , typename N , typename S , typename Ch , typename Traits > | |
| boost::disable_if < math::is_dynamic_size< N > , std::basic_istream< Ch, Traits > & >::type | operator>> (std::basic_istream< Ch, Traits > &s, object< T, N, S > &v) |
Reads a dim from s, expecting it in the format. | |
| template<typename T , typename N , typename S > | |
| bool | is_quadratic (dim::object< T, N, S > const &r) |
| Checks if all elements of the dim are the same. | |
| template<typename Dest , typename T , typename N , typename S > | |
| Dest const | narrow_cast (object< T, N, S > const &src) |
| Shortens a dim to a smaller dimension. | |
| template<typename T , typename N , typename S > | |
| void | swap (object< T, N, S > &, object< T, N, S > &) |
| Exchanges the elements of two dims. | |
| template<typename T , typename N , typename S , typename Ch , typename Traits > | |
| std::basic_ostream< Ch, Traits > & | operator<< (std::basic_ostream< Ch, Traits > &s, object< T, N, S > const &v) |
Outputs a dim to s, in the format. | |
| template<typename Dest , typename T , typename N , typename S > | |
| Dest const | structure_cast (object< T, N, S > const &_src) |
Converts a dim into a different dim of the same dimension using static_cast | |
Contains dim::object and helper functions, classes and types for it.
| bool fcppt::math::dim::before | ( | object< T, N, S > const & | _a, |
| object< T, N, S > const & | _b | ||
| ) |
| bool fcppt::math::dim::componentwise_equal | ( | dim::object< T, N, S1 > const & | _v1, |
| dim::object< T, N, S2 > const & | _v2, | ||
| T const | _epsilon | ||
| ) |
| bool fcppt::math::dim::operator!= | ( | object< T, N, S1 > const & | v1, |
| object< T, N, S2 > const & | v2 | ||
| ) |
| bool fcppt::math::dim::operator< | ( | object< T, N, S1 > const & | v1, |
| object< T, N, S2 > const & | v2 | ||
| ) |
| bool fcppt::math::dim::operator<= | ( | object< T, N, S1 > const & | v1, |
| object< T, N, S2 > const & | v2 | ||
| ) |
| bool fcppt::math::dim::operator== | ( | object< T, N, S1 > const & | v1, |
| object< T, N, S2 > const & | v2 | ||
| ) |
| bool fcppt::math::dim::operator> | ( | object< T, N, S1 > const & | v1, |
| object< T, N, S2 > const & | v2 | ||
| ) |
| bool fcppt::math::dim::operator>= | ( | object< T, N, S1 > const & | v1, |
| object< T, N, S2 > const & | v2 | ||
| ) |
1.8.2