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)
 
Record const & operator* () const
 Return address of current instance.
 
const Recordoperator-> () const
 
bool operator== (const Iterator &b) const
 Comparison.
 
bool operator!= (const Iterator &b) const
 
 Iterator (DBCFile &file, unsigned char *offset)
 
Iteratoroperator++ ()
 Advance (prefix only)
 
Record const & operator* () const
 Return address of current instance.
 
const Recordoperator-> () const
 
bool operator== (const Iterator &b) const
 Comparison.
 
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
91 :
92 record(file, offset) {}
Record record
Definition: dbcfile.h:115

◆ Iterator() [2/2]

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

Member Function Documentation

◆ operator!=() [1/2]

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

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

◆ operator!=() [2/2]

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

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

◆ operator*() [1/2]

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

Return address of current instance.

100{ return record; }

References record.

◆ operator*() [2/2]

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

Return address of current instance.

118{ return record; }

References record.

◆ operator++() [1/2]

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

Advance (prefix only)

95 {
97 return *this;
98 }
size_t recordSize
Definition: dbcfile.h:130
DBCFile & file
Definition: dbcfile.h:80

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

◆ operator++() [2/2]

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

Advance (prefix only)

113 {
115 return *this;
116 }

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

◆ operator->() [1/2]

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

References record.

◆ operator->() [2/2]

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

References record.

◆ operator==() [1/2]

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

Comparison.

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

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

◆ operator==() [2/2]

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

Comparison.

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

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

Member Data Documentation

◆ record

Record DBCFile::Iterator::record
private