k3d::difference Namespace Reference

Specialization of difference::test for k3d::array. More...

Classes

class  accumulator
 Stores the results of the difference::test() function. More...

Functions

void test (const matrix4 &A, const matrix4 &B, accumulator &Result)
 Specialization of difference::test for matrix4.
void test (const array &A, const array &B, accumulator &Result)
void test (const color &A, const color &B, accumulator &Result)
template<typename T >
const accumulator test (const T &A, const T &B)
template<typename T >
void test (const T &A, const T &B, accumulator &Result)
void test (const bool_t &A, const bool_t &B, accumulator &Result)
 Specialization of test() that tests bool_t.
void test (const int8_t &A, const int8_t &B, accumulator &Result)
 Specialization of test that tests int8_t.
void test (const int16_t &A, const int16_t &B, accumulator &Result)
 Specialization of test that tests int16_t.
void test (const int32_t &A, const int32_t &B, accumulator &Result)
 Specialization of test that tests int32_t.
void test (const int64_t &A, const int64_t &B, accumulator &Result)
 Specialization of test that tests int64_t.
void test (const uint8_t &A, const uint8_t &B, accumulator &Result)
 Specialization of test that tests uint8_t.
void test (const uint16_t &A, const uint16_t &B, accumulator &Result)
 Specialization of test that tests uint16_t.
void test (const uint32_t &A, const uint32_t &B, accumulator &Result)
 Specialization of test that tests uint32_t.
void test (const uint64_t &A, const uint64_t &B, accumulator &Result)
 Specialization of test that tests uint64_t.
void test (const double_t &A, const double_t &B, accumulator &Result)
 Specialization of test that tests double_t.
void test (const string_t &A, const string_t &B, accumulator &Result)
 Specialization of test that tests string_t.
template<typename IteratorT >
void range_test (IteratorT A, IteratorT LastA, IteratorT B, IteratorT LastB, accumulator &Result)
void test (imaterial *const A, imaterial *const B, accumulator &Result)
void test (inode *const A, inode *const B, accumulator &Result)
 Specialization of difference::test that tests inode pointers for equality.
void test (itexture *const A, itexture *const B, accumulator &Result)
template<typename T >
void test (const pipeline_data< typed_array< T > > &A, const pipeline_data< typed_array< T > > &B, accumulator &Result)
void test (const pipeline_data< uint_t_array > &A, const pipeline_data< uint_t_array > &B, accumulator &Result)
 Return the difference between two shared arrays (handles "fuzzy" floating-point comparisons).
template<typename T >
void test (const pipeline_data< T > &A, const pipeline_data< T > &B, accumulator &Result)
 Return the difference between two shared objects (handles "fuzzy" floating-point comparisons).
void test (const mesh::primitives_t &A, const mesh::primitives_t &B, accumulator &Result)
 Return the difference between two sets of primitives.
void test (const k3d::mesh &A, const k3d::mesh &B, accumulator &Result)
void test (const k3d::mesh::primitive &A, const k3d::mesh::primitive &B, accumulator &Result)
 Specialization of difference::test for k3d::mesh::primitive.
void test (const named_arrays &A, const named_arrays &B, accumulator &Result)
void test (const named_tables &A, const named_tables &B, accumulator &Result)
void test (const normal3 &A, const normal3 &B, accumulator &Result)
 Specialization of difference::test for normal3.
void test (const point2 &A, const point2 &B, accumulator &Result)
 Specialization of difference::test for point2.
void test (const point3 &A, const point3 &B, accumulator &Result)
 Specialization of difference::test for point3.
void test (const point4 &A, const point4 &B, accumulator &Result)
 Specialization of difference::test for point4.
void test (const k3d::selection::storage &A, const k3d::selection::storage &B, accumulator &Result)
 Specialization of difference::test for k3d::selection::storage.
void test (const k3d::selection::set &A, const k3d::selection::set &B, accumulator &Result)
 Specialization of difference::test for k3d::selection::set.
void test (const table &A, const table &B, accumulator &Result)
void test (const texture3 &A, const texture3 &B, accumulator &Result)
 Specialization of difference::test for texture3.
void test (const uint_t_array &A, const uint_t_array &B, accumulator &Result)
 Specialization of difference::test for k3d::uint_t_array.
void test (const vector2 &A, const vector2 &B, accumulator &Result)
 Specialization of difference::test for vector2.
void test (const vector3 &A, const vector3 &B, accumulator &Result)
 Specialization of difference::test for vector3.
void test (const vector4 &A, const vector4 &B, accumulator &Result)
 Specialization of difference::test for vector4.

Detailed Description

Specialization of difference::test for k3d::array.

Specialization of difference::test for k3d::table.

Specialization of difference::test for k3d::named_tables.

Specialization of difference::test for named_arrays.

Specialization of difference::test for k3d::mesh.

Return the difference between two shared arrays (handles "fuzzy" floating-point comparisons).

Specialization of difference::test that tests itexture pointers for equality.

Specialization of difference::test that tests imaterial pointers for equality.

Specialization of difference::test for color.


Function Documentation

template<typename IteratorT >
void k3d::difference::range_test ( IteratorT  A,
IteratorT  LastA,
IteratorT  B,
IteratorT  LastB,
accumulator &  Result 
) [inline]

Given iterators designating two sequences, calls the test() function for each pair of values, and confirms that both sequences are the same length.

References k3d::difference::accumulator::exact, and test().

Referenced by k3d::uint_t_array::difference(), k3d::typed_array< k3d::int32_t >::difference(), and test().

void k3d::difference::test ( const vector4 &  A,
const vector4 &  B,
accumulator &  Result 
) [inline]

Specialization of difference::test for vector4.

References k3d::vector4::n, and range_test().

void k3d::difference::test ( const vector3 &  A,
const vector3 &  B,
accumulator &  Result 
) [inline]

Specialization of difference::test for vector3.

References k3d::vector3::n, and range_test().

void k3d::difference::test ( const vector2 &  A,
const vector2 &  B,
accumulator &  Result 
) [inline]

Specialization of difference::test for vector2.

References k3d::vector2::n, and range_test().

void k3d::difference::test ( const uint_t_array &  A,
const uint_t_array &  B,
accumulator &  Result 
) [inline]
void k3d::difference::test ( const texture3 &  A,
const texture3 &  B,
accumulator &  Result 
) [inline]

Specialization of difference::test for texture3.

References k3d::texture3::n, and range_test().

void k3d::difference::test ( const table &  A,
const table &  B,
accumulator &  Result 
) [inline]
void k3d::difference::test ( const k3d::selection::set A,
const k3d::selection::set B,
accumulator &  Result 
) [inline]
void k3d::difference::test ( const k3d::selection::storage A,
const k3d::selection::storage B,
accumulator &  Result 
) [inline]
void k3d::difference::test ( const point4 &  A,
const point4 &  B,
accumulator &  Result 
) [inline]

Specialization of difference::test for point4.

References k3d::point4::n, and range_test().

void k3d::difference::test ( const point3 &  A,
const point3 &  B,
accumulator &  Result 
) [inline]

Specialization of difference::test for point3.

References k3d::point3::n, and range_test().

void k3d::difference::test ( const point2 &  A,
const point2 &  B,
accumulator &  Result 
) [inline]

Specialization of difference::test for point2.

References k3d::point2::n, and range_test().

void k3d::difference::test ( const normal3 &  A,
const normal3 &  B,
accumulator &  Result 
) [inline]

Specialization of difference::test for normal3.

References k3d::normal3::n, and range_test().

void k3d::difference::test ( const named_tables &  A,
const named_tables &  B,
accumulator &  Result 
) [inline]
void k3d::difference::test ( const named_arrays &  A,
const named_arrays &  B,
accumulator &  Result 
) [inline]
void k3d::difference::test ( const k3d::mesh::primitive A,
const k3d::mesh::primitive B,
accumulator &  Result 
) [inline]
void k3d::difference::test ( const k3d::mesh A,
const k3d::mesh B,
accumulator &  Result 
) [inline]
void k3d::difference::test ( const mesh::primitives_t &  A,
const mesh::primitives_t &  B,
accumulator &  Result 
)

Return the difference between two sets of primitives.

References angle_axis::a, and k3d::difference::accumulator::exact.

template<typename T >
void k3d::difference::test ( const pipeline_data< T > &  A,
const pipeline_data< T > &  B,
accumulator &  Result 
) [inline]

Return the difference between two shared objects (handles "fuzzy" floating-point comparisons).

References k3d::difference::accumulator::exact, and test().

void k3d::difference::test ( const pipeline_data< uint_t_array > &  A,
const pipeline_data< uint_t_array > &  B,
accumulator &  Result 
)

Return the difference between two shared arrays (handles "fuzzy" floating-point comparisons).

References k3d::difference::accumulator::exact.

template<typename T >
void k3d::difference::test ( const pipeline_data< typed_array< T > > &  A,
const pipeline_data< typed_array< T > > &  B,
accumulator &  Result 
) [inline]
void k3d::difference::test ( itexture *const   A,
itexture *const   B,
accumulator &  Result 
) [inline]
void k3d::difference::test ( inode *const   A,
inode *const   B,
accumulator &  Result 
) [inline]

Specialization of difference::test that tests inode pointers for equality.

References k3d::difference::accumulator::exact.

void k3d::difference::test ( imaterial *const   A,
imaterial *const   B,
accumulator &  Result 
) [inline]
void k3d::difference::test ( const string_t &  A,
const string_t &  B,
accumulator &  Result 
) [inline]

Specialization of test that tests string_t.

References k3d::difference::accumulator::exact.

void k3d::difference::test ( const double_t &  A,
const double_t &  B,
accumulator &  Result 
) [inline]

Specialization of test that tests double_t.

References k3d::difference::accumulator::ulps.

void k3d::difference::test ( const uint64_t &  A,
const uint64_t &  B,
accumulator &  Result 
) [inline]

Specialization of test that tests uint64_t.

References k3d::difference::accumulator::exact.

void k3d::difference::test ( const uint32_t &  A,
const uint32_t &  B,
accumulator &  Result 
) [inline]

Specialization of test that tests uint32_t.

References k3d::difference::accumulator::exact.

void k3d::difference::test ( const uint16_t &  A,
const uint16_t &  B,
accumulator &  Result 
) [inline]

Specialization of test that tests uint16_t.

References k3d::difference::accumulator::exact.

void k3d::difference::test ( const uint8_t &  A,
const uint8_t &  B,
accumulator &  Result 
) [inline]

Specialization of test that tests uint8_t.

References k3d::difference::accumulator::exact.

void k3d::difference::test ( const int64_t &  A,
const int64_t &  B,
accumulator &  Result 
) [inline]

Specialization of test that tests int64_t.

References k3d::difference::accumulator::exact.

void k3d::difference::test ( const int32_t &  A,
const int32_t &  B,
accumulator &  Result 
) [inline]

Specialization of test that tests int32_t.

References k3d::difference::accumulator::exact.

void k3d::difference::test ( const int16_t &  A,
const int16_t &  B,
accumulator &  Result 
) [inline]

Specialization of test that tests int16_t.

References k3d::difference::accumulator::exact.

void k3d::difference::test ( const int8_t &  A,
const int8_t &  B,
accumulator &  Result 
) [inline]

Specialization of test that tests int8_t.

References k3d::difference::accumulator::exact.

void k3d::difference::test ( const bool_t &  A,
const bool_t &  B,
accumulator &  Result 
) [inline]

Specialization of test() that tests bool_t.

References k3d::difference::accumulator::exact.

template<typename T >
void k3d::difference::test ( const T &  A,
const T &  B,
accumulator &  Result 
) [inline]

Function that tests the difference between two objects, returning separate results for exact (integer and string) and inexact (floating-point) types. See "Comparing floating point numbers" by Bruce Dawson at http://www.cygnus-software.com/papers/comparingfloats/comparingfloats.htm

template<typename T >
const accumulator k3d::difference::test ( const T &  A,
const T &  B 
) [inline]

Function that tests the difference between two objects, returning separate results for exact (integer and string) and inexact (floating-point) types. See "Comparing floating point numbers" by Bruce Dawson at http://www.cygnus-software.com/papers/comparingfloats/comparingfloats.htm

References modifier::result, and test().

void k3d::difference::test ( const color &  A,
const color &  B,
accumulator &  Result 
) [inline]
void k3d::difference::test ( const array &  A,
const array &  B,
accumulator &  Result 
) [inline]
void k3d::difference::test ( const matrix4 &  A,
const matrix4 &  B,
accumulator &  Result 
) [inline]

Generated on Mon Mar 21 07:42:21 2011 for K-3D by doxygen 1.6.3