Collaboration diagram for MP3Iterator:
Public Member Functions | |
MP3Iterator (Bitstream &bs, int type) | |
~MP3Iterator () | |
MP3Frame * | operator-> () const |
MP3Iterator & | operator++ () |
This class should used always to access frames from an MP3 stream. Frames are deallocated automatically when they are not needed, so it's really dangerous to keep pointer to more than one frame. This class does not allow it, while providing tranesparent acces to MP3Frame methods.
Definition at line 22 of file mp3iterator.h.
|
Constructor. Construts an MP3Stream and reads first frame.
Definition at line 8 of file mp3iterator.cpp. References MP3Stream::First(). |
|
Destructor. Deletes MP3Stream with all allocated frames. Definition at line 14 of file mp3iterator.cpp. |
|
Moves to next frame. Also deletes unneded frames.
Definition at line 24 of file mp3iterator.cpp. References MP3Frame::Next(), MP3Frame::normal, MP3Stream::SeekTo(), and MP3Stream::WriteMode(). |
|
Redirection to method of MP3Frame. This way all methods are accessible and no one needs to keep a pointer to real frame
Definition at line 19 of file mp3iterator.cpp. |