Nvwa  1.1
Public Member Functions | List of all members
nvwa::file_line_reader::iterator Class Reference

Iterator that contains the line content. More...

#include <file_line_reader.h>

Collaboration diagram for nvwa::file_line_reader::iterator:
[legend]

Public Member Functions

 iterator (file_line_reader *reader)
 Constructs the beginning iterator. More...
 
 ~iterator ()
 Destuctor. More...
 
 iterator (const iterator &rhs)
 Copy-constructor. More...
 
iteratoroperator= (const iterator &rhs)
 Assignment. More...
 
void swap (iterator &rhs) noexcept
 Swaps the iterator with another. More...
 

Detailed Description

Iterator that contains the line content.

The iterator owns the content.

Constructor & Destructor Documentation

◆ iterator() [1/2]

nvwa::file_line_reader::iterator::iterator ( file_line_reader reader)
explicit

Constructs the beginning iterator.

Parameters
readerpointer to the file_line_reader object

◆ ~iterator()

nvwa::file_line_reader::iterator::~iterator ( )

Destuctor.

◆ iterator() [2/2]

nvwa::file_line_reader::iterator::iterator ( const iterator rhs)

Copy-constructor.

The line content will be copied to the newly constructed iterator.

Parameters
rhsthe iterator to copy from

Member Function Documentation

◆ operator=()

file_line_reader::iterator & nvwa::file_line_reader::iterator::operator= ( const iterator rhs)

Assignment.

The line content will be copied to the newly constructed iterator.

Parameters
rhsthe iterator to copy from

◆ swap()

void nvwa::file_line_reader::iterator::swap ( file_line_reader::iterator rhs)
noexcept

Swaps the iterator with another.

Parameters
rhsthe iterator to swap with

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