STXXL  1.4.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
stxxl::stream::unique< Input, BinaryPredicate > Class Template Reference

Detailed Description

template<class Input, class BinaryPredicate = dummy_cmp_unique>
class stxxl::stream::unique< Input, BinaryPredicate >

Equivalent to std::unique algorithms.

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

Definition at line 35 of file unique.h.

Public Types

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

Public Member Functions

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

Private Attributes

BinaryPredicate binary_pred
 
Input::value_type current
 
Input & input
 

Member Typedef Documentation

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

Standard stream typedef.

Definition at line 43 of file unique.h.

Constructor & Destructor Documentation

template<class Input , class BinaryPredicate = dummy_cmp_unique>
stxxl::stream::unique< Input, BinaryPredicate >::unique ( Input &  input_,
BinaryPredicate  binary_pred_ 
)
inline

Definition at line 45 of file unique.h.

Member Function Documentation

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

Standard stream method.

Definition at line 75 of file unique.h.

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

Standard stream method.

Definition at line 63 of file unique.h.

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

Standard stream method.

Definition at line 53 of file unique.h.

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

Standard stream method.

Definition at line 69 of file unique.h.

Member Data Documentation

template<class Input , class BinaryPredicate = dummy_cmp_unique>
BinaryPredicate stxxl::stream::unique< Input, BinaryPredicate >::binary_pred
private

Definition at line 38 of file unique.h.

template<class Input , class BinaryPredicate = dummy_cmp_unique>
Input::value_type stxxl::stream::unique< Input, BinaryPredicate >::current
private

Definition at line 39 of file unique.h.

template<class Input , class BinaryPredicate = dummy_cmp_unique>
Input& stxxl::stream::unique< Input, BinaryPredicate >::input
private

Definition at line 37 of file unique.h.


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