Stxxl  1.3.2
Public Types | Public Member Functions | List of all members
stream::unique< Input, BinaryPredicate > Class Template Reference

Equivalent to std::unique algorithms. More...

#include <unique.h>

Public Types

typedef Input::value_type value_type
 Standard stream typedef. More...
 

Public Member Functions

 unique (Input &input_, BinaryPredicate binary_pred_)
 
uniqueoperator++ ()
 Standard stream method. More...
 
const value_typeoperator* () const
 Standard stream method. More...
 
const value_typeoperator-> () const
 Standard stream method. More...
 
bool empty () const
 Standard stream method. More...
 

Detailed Description

template<class Input, class BinaryPredicate = dummy_cmp_unique_>
class stream::unique< Input, BinaryPredicate >

Equivalent to std::unique algorithms.

Removes consecutive duplicates from the stream. Uses BinaryPredicate to compare elements of the stream

Member Typedef Documentation

template<class Input , class BinaryPredicate = dummy_cmp_unique_>
typedef Input::value_type stream::unique< Input, BinaryPredicate >::value_type

Standard stream typedef.

Member Function Documentation

template<class Input , class BinaryPredicate = dummy_cmp_unique_>
bool stream::unique< Input, BinaryPredicate >::empty ( ) const
inline

Standard stream method.

template<class Input , class BinaryPredicate = dummy_cmp_unique_>
const value_type& stream::unique< Input, BinaryPredicate >::operator* ( ) const
inline

Standard stream method.

template<class Input , class BinaryPredicate = dummy_cmp_unique_>
unique& stream::unique< Input, BinaryPredicate >::operator++ ( )
inline

Standard stream method.

template<class Input , class BinaryPredicate = dummy_cmp_unique_>
const value_type* stream::unique< Input, BinaryPredicate >::operator-> ( ) const
inline

Standard stream method.


The documentation for this class was generated from the following file: