Boost C++ Libraries

...one of the most highly regarded and expertly designed C++ library projects in the world. Herb Sutter and Andrei Alexandrescu, C++ Coding Standards

This is the documentation for an old version of Boost. Click here to view this page for the latest version.
PrevUpHomeNext

Class template join

boost::unit_test::data::monomorphic::join — Defines a new dataset from the concatenation of two datasets.

Synopsis

// In header: <boost/test/data/monomorphic/join.hpp>

template<typename DS1, typename DS2> 
class join : public boost::unit_test::data::monomorphic::dataset< boost::decay< DS1 >::type::data_type >
{
public:
  // member classes/structs/unions

  struct iterator :
    public boost::unit_test::data::monomorphic::dataset< T >::iterator
  {
    // construct/copy/destruct
    explicit iterator(iter_ptr, iter_ptr, data::size_t);

    // public member functions
    virtual T const & operator*();
    virtual void operator++();
  };

  enum @7 { arity = = boost::decay<DS1>::type::arity };
  // construct/copy/destruct
  join(DS1 &&, DS2 &&);
  join(join &&);

  // public member functions
  virtual data::size_t size() const;
  virtual iter_ptr begin() const;
};

Description

The size of the resulting dataset is the sum of the two underlying datasets. The arity of the datasets should match.

join public construct/copy/destruct

  1. join(DS1 && ds1, DS2 && ds2);
  2. join(join && j);

join public member functions

  1. virtual data::size_t size() const;
    Dataset size.
  2. virtual iter_ptr begin() const;
    Iterator to use to iterate over this dataset.

PrevUpHomeNext