Geant4 11.4.0
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
G4integerPartition::Iterator Class Reference

#include <G4FermiIntegerPartition.hh>

Public Types

using difference_type = std::int64_t
using value_type = G4FermiPartition
using reference = const G4FermiPartition&
using pointer = const G4FermiPartition*
using iterator_category = std::forward_iterator_tag

Public Member Functions

 Iterator (const Iterator &)=default
Iteratoroperator= (const Iterator &)=default
pointer operator-> () const
reference operator* () const
Iteratoroperator++ ()
Iterator operator++ (int)
G4bool operator== (const Iterator &other) const
G4bool operator!= (const Iterator &other) const

Friends

class G4integerPartition

Detailed Description

Definition at line 56 of file G4FermiIntegerPartition.hh.

Member Typedef Documentation

◆ difference_type

Definition at line 61 of file G4FermiIntegerPartition.hh.

◆ iterator_category

using G4integerPartition::Iterator::iterator_category = std::forward_iterator_tag

Definition at line 65 of file G4FermiIntegerPartition.hh.

◆ pointer

◆ reference

◆ value_type

Constructor & Destructor Documentation

◆ Iterator()

G4integerPartition::Iterator::Iterator ( const Iterator & )
default

Referenced by Iterator(), and operator=().

Member Function Documentation

◆ operator!=()

G4bool G4integerPartition::Iterator::operator!= ( const Iterator & other) const

Definition at line 78 of file G4FermiIntegerPartition.cc.

79{
80 return partition_ != other.partition_;
81}

◆ operator*()

G4integerPartition::Iterator::reference G4integerPartition::Iterator::operator* ( ) const

Definition at line 55 of file G4FermiIntegerPartition.cc.

56{
57 return partition_;
58}

◆ operator++() [1/2]

G4integerPartition::Iterator & G4integerPartition::Iterator::operator++ ( )

Definition at line 60 of file G4FermiIntegerPartition.cc.

61{
62 NextPartition();
63 return *this;
64}

◆ operator++() [2/2]

G4integerPartition::Iterator G4integerPartition::Iterator::operator++ ( int )

Definition at line 66 of file G4FermiIntegerPartition.cc.

67{
68 auto copy = *this;
69 NextPartition();
70 return copy;
71}
void copy(G4double dst[], const G4double src[], std::size_t size=G4FieldTrack::ncompSVEC)

◆ operator->()

G4integerPartition::Iterator::pointer G4integerPartition::Iterator::operator-> ( ) const

Definition at line 50 of file G4FermiIntegerPartition.cc.

51{
52 return &partition_;
53}

◆ operator=()

Iterator & G4integerPartition::Iterator::operator= ( const Iterator & )
default

◆ operator==()

G4bool G4integerPartition::Iterator::operator== ( const Iterator & other) const

Definition at line 73 of file G4FermiIntegerPartition.cc.

74{
75 return partition_ == other.partition_;
76}

◆ G4integerPartition

friend class G4integerPartition
friend

Definition at line 59 of file G4FermiIntegerPartition.hh.

Referenced by G4integerPartition.


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