NVBIO
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Types | Public Methods | Public Members | List of all members
nvbio::iterator_reference< Iterator > Struct Template Reference

Detailed description

template< typename Iterator>
struct nvbio::iterator_reference< Iterator >

An iterator reference wrapper, allowing an iterator to return assignable references. Besides the standard iterator interface, the Iterator class must implement a set() method:

// set the value of the iterator
void set(const value_type v);

Definition at line 51 of file iterator_reference.h.

#include <iterator_reference.h>

Public Types

typedef std::iterator_traits
< Iterator >::value_type 
value_type
 

Public Methods

NVBIO_FORCEINLINE NVBIO_HOST_DEVICE iterator_reference (Iterator it)
 
NVBIO_FORCEINLINE NVBIO_HOST_DEVICE iterator_reference (const iterator_reference &ref)
 
NVBIO_FORCEINLINE
NVBIO_HOST_DEVICE
iterator_reference
operator= (const iterator_reference &ref)
 
NVBIO_FORCEINLINE
NVBIO_HOST_DEVICE
iterator_reference
operator= (const value_type s)
 
NVBIO_FORCEINLINE NVBIO_HOST_DEVICE operator value_type () const
 

Public Members

Iterator m_it
 

Member Typedef Documentation

template<typename Iterator>
typedef std::iterator_traits<Iterator>::value_type nvbio::iterator_reference< Iterator >::value_type

Definition at line 53 of file iterator_reference.h.

Constructor & Destructor Documentation

template<typename Iterator>
NVBIO_FORCEINLINE NVBIO_HOST_DEVICE nvbio::iterator_reference< Iterator >::iterator_reference ( Iterator  it)
inline

constructor

Definition at line 57 of file iterator_reference.h.

template<typename Iterator>
NVBIO_FORCEINLINE NVBIO_HOST_DEVICE nvbio::iterator_reference< Iterator >::iterator_reference ( const iterator_reference< Iterator > &  ref)
inline

copy constructor

Definition at line 61 of file iterator_reference.h.

Member Function Documentation

template<typename Iterator>
NVBIO_FORCEINLINE NVBIO_HOST_DEVICE nvbio::iterator_reference< Iterator >::operator value_type ( ) const
inline

conversion operator

Definition at line 73 of file iterator_reference.h.

template<typename Iterator>
NVBIO_FORCEINLINE NVBIO_HOST_DEVICE iterator_reference& nvbio::iterator_reference< Iterator >::operator= ( const iterator_reference< Iterator > &  ref)
inline

assignment operator

Definition at line 65 of file iterator_reference.h.

template<typename Iterator>
NVBIO_FORCEINLINE NVBIO_HOST_DEVICE iterator_reference& nvbio::iterator_reference< Iterator >::operator= ( const value_type  s)
inline

assignment operator

Definition at line 69 of file iterator_reference.h.

Member Data Documentation

template<typename Iterator>
Iterator nvbio::iterator_reference< Iterator >::m_it

Definition at line 75 of file iterator_reference.h.


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