TrinityCore
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
DBCFile::Iterator Class Reference

#include <dbcfile.h>

Public Member Functions

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

Private Member Functions

Iteratoroperator= (Iterator const &right)
 

Private Attributes

Record record
 

Detailed Description

Iterator that iterates over records

Constructor & Destructor Documentation

DBCFile::Iterator::Iterator ( DBCFile file,
unsigned char *  offset 
)
inline
97 : record(file, offset) { }
Record record
Definition: dbcfile.h:122
DBCFile::Iterator::Iterator ( DBCFile file,
unsigned char *  offset 
)
inline
100 : record(file, offset) { }
Record record
Definition: dbcfile.h:122
DBCFile::Iterator::Iterator ( Iterator const right)
inline
102  : record(right.record)
103  {
104  }
Record record
Definition: dbcfile.h:122

Member Function Documentation

bool DBCFile::Iterator::operator!= ( Iterator const b) const
inline
117  {
118  return record.offset != b.record.offset;
119  }
Record record
Definition: dbcfile.h:122
unsigned char * offset
Definition: dbcfile.h:85
bool DBCFile::Iterator::operator!= ( Iterator const b) const
inline
124  {
125  return record.offset != b.record.offset;
126  }
Record record
Definition: dbcfile.h:122
unsigned char * offset
Definition: dbcfile.h:85
Record const& DBCFile::Iterator::operator* ( ) const
inline

Return address of current instance.

107 { return record; }
Record record
Definition: dbcfile.h:122
Record const& DBCFile::Iterator::operator* ( ) const
inline

Return address of current instance.

114 { return record; }
Record record
Definition: dbcfile.h:122
Iterator& DBCFile::Iterator::operator++ ( )
inline

Advance (prefix only)

101  {
103  return *this;
104  }
Record record
Definition: dbcfile.h:122
size_t _recordSize
Definition: dbcfile.h:140
unsigned char * offset
Definition: dbcfile.h:85
DBCFile & file
Definition: dbcfile.h:84
Iterator& DBCFile::Iterator::operator++ ( )
inline

Advance (prefix only)

108  {
110  return *this;
111  }
Record record
Definition: dbcfile.h:122
size_t _recordSize
Definition: dbcfile.h:140
unsigned char * offset
Definition: dbcfile.h:85
DBCFile & file
Definition: dbcfile.h:84
Record const* DBCFile::Iterator::operator-> ( ) const
inline
108 { return &record; }
Record record
Definition: dbcfile.h:122
Record const* DBCFile::Iterator::operator-> ( ) const
inline
115 { return &record; }
Record record
Definition: dbcfile.h:122
Iterator& DBCFile::Iterator::operator= ( Iterator const right)
private
Iterator& DBCFile::Iterator::operator= ( Iterator const right)
inline
129  {
130  record.offset = right.record.offset;
131  return *this;
132  }
Record record
Definition: dbcfile.h:122
unsigned char * offset
Definition: dbcfile.h:85
bool DBCFile::Iterator::operator== ( Iterator const b) const
inline

Comparison.

112  {
113  return record.offset == b.record.offset;
114  }
Record record
Definition: dbcfile.h:122
unsigned char * offset
Definition: dbcfile.h:85
bool DBCFile::Iterator::operator== ( Iterator const b) const
inline

Comparison.

119  {
120  return record.offset == b.record.offset;
121  }
Record record
Definition: dbcfile.h:122
unsigned char * offset
Definition: dbcfile.h:85

Member Data Documentation

Record DBCFile::Iterator::record
private

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