CUB  
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Types | Public Methods | Friends | List of all members
cub::DiscardOutputIterator< OffsetT > Class Template Reference

Detailed description

template< typename OffsetT = ptrdiff_t>
class cub::DiscardOutputIterator< OffsetT >

A discard iterator.

Public Types

typedef DiscardOutputIterator self_type
 My own type. More...
 
typedef OffsetT difference_type
 Type to express the result of subtracting one iterator from another. More...
 
typedef void value_type
 The type of the element the iterator can point to. More...
 
typedef void pointer
 The type of a pointer to an element the iterator can point to. More...
 
typedef void reference
 The type of a reference to an element the iterator can point to. More...
 
typedef
std::random_access_iterator_tag 
iterator_category
 The iterator category. More...
 

Public Methods

__host__ __device__ __forceinline__ DiscardOutputIterator (OffsetT offset=0)
 Constructor. More...
 
__host__ __device__
__forceinline__ self_type 
operator++ (int)
 Postfix increment. More...
 
__host__ __device__
__forceinline__ self_type 
operator++ ()
 Prefix increment. More...
 
__host__ __device__
__forceinline__ self_type
operator* ()
 Indirection. More...
 
template<typename Distance >
__host__ __device__
__forceinline__ self_type 
operator+ (Distance n) const
 Addition. More...
 
template<typename Distance >
__host__ __device__
__forceinline__ self_type
operator+= (Distance n)
 Addition assignment. More...
 
template<typename Distance >
__host__ __device__
__forceinline__ self_type 
operator- (Distance n) const
 Subtraction. More...
 
template<typename Distance >
__host__ __device__
__forceinline__ self_type
operator-= (Distance n)
 Subtraction assignment. More...
 
__host__ __device__
__forceinline__
difference_type 
operator- (self_type other) const
 Distance. More...
 
template<typename Distance >
__host__ __device__
__forceinline__ self_type
operator[] (Distance n)
 Array subscript. More...
 
__host__ __device__
__forceinline__ pointer 
operator-> ()
 Structure dereference. More...
 
template<typename T >
__host__ __device__
__forceinline__ void 
operator= (T const &)
 Assignment to anything else (no-op) More...
 
__host__ __device__ __forceinline__ operator void * () const
 Cast to void* operator. More...
 
__host__ __device__
__forceinline__ bool 
operator== (const self_type &rhs)
 Equal to. More...
 
__host__ __device__
__forceinline__ bool 
operator!= (const self_type &rhs)
 Not equal to. More...
 

Friends

std::ostream & operator<< (std::ostream &os, const self_type &itr)
 ostream operator More...
 

Member Typedef Documentation

template<typename OffsetT = ptrdiff_t>
typedef DiscardOutputIterator cub::DiscardOutputIterator< OffsetT >::self_type

My own type.

template<typename OffsetT = ptrdiff_t>
typedef OffsetT cub::DiscardOutputIterator< OffsetT >::difference_type

Type to express the result of subtracting one iterator from another.

template<typename OffsetT = ptrdiff_t>
typedef void cub::DiscardOutputIterator< OffsetT >::value_type

The type of the element the iterator can point to.

template<typename OffsetT = ptrdiff_t>
typedef void cub::DiscardOutputIterator< OffsetT >::pointer

The type of a pointer to an element the iterator can point to.

template<typename OffsetT = ptrdiff_t>
typedef void cub::DiscardOutputIterator< OffsetT >::reference

The type of a reference to an element the iterator can point to.

template<typename OffsetT = ptrdiff_t>
typedef std::random_access_iterator_tag cub::DiscardOutputIterator< OffsetT >::iterator_category

The iterator category.

Constructor & Destructor Documentation

template<typename OffsetT = ptrdiff_t>
__host__ __device__ __forceinline__ cub::DiscardOutputIterator< OffsetT >::DiscardOutputIterator ( OffsetT  offset = 0)
inline

Constructor.

Parameters
offsetBase offset

Member Function Documentation

template<typename OffsetT = ptrdiff_t>
__host__ __device__ __forceinline__ self_type cub::DiscardOutputIterator< OffsetT >::operator++ ( int  )
inline

Postfix increment.

template<typename OffsetT = ptrdiff_t>
__host__ __device__ __forceinline__ self_type cub::DiscardOutputIterator< OffsetT >::operator++ ( )
inline

Prefix increment.

template<typename OffsetT = ptrdiff_t>
__host__ __device__ __forceinline__ self_type& cub::DiscardOutputIterator< OffsetT >::operator* ( )
inline

Indirection.

template<typename OffsetT = ptrdiff_t>
template<typename Distance >
__host__ __device__ __forceinline__ self_type cub::DiscardOutputIterator< OffsetT >::operator+ ( Distance  n) const
inline

Addition.

template<typename OffsetT = ptrdiff_t>
template<typename Distance >
__host__ __device__ __forceinline__ self_type& cub::DiscardOutputIterator< OffsetT >::operator+= ( Distance  n)
inline

Addition assignment.

template<typename OffsetT = ptrdiff_t>
template<typename Distance >
__host__ __device__ __forceinline__ self_type cub::DiscardOutputIterator< OffsetT >::operator- ( Distance  n) const
inline

Subtraction.

template<typename OffsetT = ptrdiff_t>
template<typename Distance >
__host__ __device__ __forceinline__ self_type& cub::DiscardOutputIterator< OffsetT >::operator-= ( Distance  n)
inline

Subtraction assignment.

template<typename OffsetT = ptrdiff_t>
__host__ __device__ __forceinline__ difference_type cub::DiscardOutputIterator< OffsetT >::operator- ( self_type  other) const
inline

Distance.

template<typename OffsetT = ptrdiff_t>
template<typename Distance >
__host__ __device__ __forceinline__ self_type& cub::DiscardOutputIterator< OffsetT >::operator[] ( Distance  n)
inline

Array subscript.

template<typename OffsetT = ptrdiff_t>
__host__ __device__ __forceinline__ pointer cub::DiscardOutputIterator< OffsetT >::operator-> ( )
inline

Structure dereference.

template<typename OffsetT = ptrdiff_t>
template<typename T >
__host__ __device__ __forceinline__ void cub::DiscardOutputIterator< OffsetT >::operator= ( T const &  )
inline

Assignment to anything else (no-op)

template<typename OffsetT = ptrdiff_t>
__host__ __device__ __forceinline__ cub::DiscardOutputIterator< OffsetT >::operator void * ( ) const
inline

Cast to void* operator.

template<typename OffsetT = ptrdiff_t>
__host__ __device__ __forceinline__ bool cub::DiscardOutputIterator< OffsetT >::operator== ( const self_type rhs)
inline

Equal to.

template<typename OffsetT = ptrdiff_t>
__host__ __device__ __forceinline__ bool cub::DiscardOutputIterator< OffsetT >::operator!= ( const self_type rhs)
inline

Not equal to.

Friends And Related Function Documentation

template<typename OffsetT = ptrdiff_t>
std::ostream& operator<< ( std::ostream &  os,
const self_type itr 
)
friend

ostream operator


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