Galactic Bloodshed
Classes | Public Member Functions | Private Attributes | Friends | List of all members
NameGenerator::Iterator Class Reference

#include <namegen.h>

Collaboration diagram for NameGenerator::Iterator:

Classes

class  PostIncResult
 

Public Member Functions

 Iterator (NameGenerator *parent)
 
const std::string operator* () const
 
Iteratoroperator++ ()
 
PostIncResult operator++ (int)
 

Private Attributes

NameGeneratornamegen
 

Friends

bool operator== (Iterator const &lhs, Iterator const &rhs)
 
bool operator!= (Iterator const &lhs, Iterator const &rhs)
 

Detailed Description

Definition at line 13 of file namegen.h.

Constructor & Destructor Documentation

◆ Iterator()

NameGenerator::Iterator::Iterator ( NameGenerator parent)
inlineexplicit

Definition at line 26 of file namegen.h.

References namegen.

Referenced by NameGenerator::begin(), and NameGenerator::end().

Here is the caller graph for this function:

Member Function Documentation

◆ operator*()

const std::string NameGenerator::Iterator::operator* ( ) const
inline

Definition at line 28 of file namegen.h.

◆ operator++() [1/2]

Iterator& NameGenerator::Iterator::operator++ ( )
inline

Definition at line 31 of file namegen.h.

References namegen, and NameGenerator::next().

Referenced by operator++().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ operator++() [2/2]

PostIncResult NameGenerator::Iterator::operator++ ( int  )
inline

Definition at line 54 of file namegen.h.

References operator++().

Here is the call graph for this function:

Friends And Related Function Documentation

◆ operator!=

bool operator!= ( Iterator const &  lhs,
Iterator const &  rhs 
)
friend

Definition at line 42 of file namegen.h.

◆ operator==

bool operator== ( Iterator const &  lhs,
Iterator const &  rhs 
)
friend

Definition at line 39 of file namegen.h.

Member Data Documentation

◆ namegen

NameGenerator* NameGenerator::Iterator::namegen
private

Definition at line 15 of file namegen.h.

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


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