AzerothCore 3.3.5a
OpenSource WoW Emulator
Loading...
Searching...
No Matches
DBCFile::Iterator Class Reference

#include "dbcfile.h"

Public Member Functions

 Iterator (DBCFile &file, unsigned char *offset)
 
Iteratoroperator++ ()
 Advance (prefix only) More...
 
Record const & operator* () const
 Return address of current instance. More...
 
const Recordoperator-> () const
 
bool operator== (const Iterator &b) const
 Comparison. More...
 
bool operator!= (const Iterator &b) const
 
 Iterator (DBCFile &file, unsigned char *offset)
 
Iteratoroperator++ ()
 Advance (prefix only) More...
 
Record const & operator* () const
 Return address of current instance. More...
 
const Recordoperator-> () const
 
bool operator== (const Iterator &b) const
 Comparison. More...
 
bool operator!= (const Iterator &b) const
 

Private Attributes

Record record
 

Detailed Description

Iterator that iterates over records

Constructor & Destructor Documentation

◆ Iterator() [1/2]

DBCFile::Iterator::Iterator ( DBCFile file,
unsigned char *  offset 
)
inline
90 :
91 record(file, offset) {}
Record record
Definition: dbcfile.h:114

◆ Iterator() [2/2]

DBCFile::Iterator::Iterator ( DBCFile file,
unsigned char *  offset 
)
inline
108 :
109 record(file, offset) {}

Member Function Documentation

◆ operator!=() [1/2]

bool DBCFile::Iterator::operator!= ( const Iterator b) const
inline
110 {
111 return record.offset != b.record.offset;
112 }
unsigned char * offset
Definition: dbcfile.h:80

References DBCFile::Record::offset, and record.

◆ operator!=() [2/2]

bool DBCFile::Iterator::operator!= ( const Iterator b) const
inline
128 {
129 return record.offset != b.record.offset;
130 }

References DBCFile::Record::offset, and record.

◆ operator*() [1/2]

Record const & DBCFile::Iterator::operator* ( ) const
inline

Return address of current instance.

99{ return record; }

References record.

◆ operator*() [2/2]

Record const & DBCFile::Iterator::operator* ( ) const
inline

Return address of current instance.

117{ return record; }

References record.

◆ operator++() [1/2]

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

Advance (prefix only)

94 {
96 return *this;
97 }
std::size_t recordSize
Definition: dbcfile.h:129
DBCFile & file
Definition: dbcfile.h:79

References DBCFile::Record::file, DBCFile::Record::offset, record, and DBCFile::recordSize.

◆ operator++() [2/2]

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

Advance (prefix only)

112 {
114 return *this;
115 }

References DBCFile::Record::file, DBCFile::Record::offset, record, and DBCFile::recordSize.

◆ operator->() [1/2]

const Record * DBCFile::Iterator::operator-> ( ) const
inline
101 {
102 return &record;
103 }

References record.

◆ operator->() [2/2]

const Record * DBCFile::Iterator::operator-> ( ) const
inline
119 {
120 return &record;
121 }

References record.

◆ operator==() [1/2]

bool DBCFile::Iterator::operator== ( const Iterator b) const
inline

Comparison.

106 {
107 return record.offset == b.record.offset;
108 }

References DBCFile::Record::offset, and record.

◆ operator==() [2/2]

bool DBCFile::Iterator::operator== ( const Iterator b) const
inline

Comparison.

124 {
125 return record.offset == b.record.offset;
126 }

References DBCFile::Record::offset, and record.

Member Data Documentation

◆ record

Record DBCFile::Iterator::record
private