hamigaki.png (2451 bytes)

前のページ 上に戻る ホーム 次のページ

Class comment_iterator

hamigaki::audio::vorbis::comment_iterator —

Synopsis

class comment_iterator {
public:
  // types
  typedef std::pair<const std::string,std::string> value_type;       
  typedef const value_type&                        reference;        
  typedef const value_type*                        pointer;          
  typedef implementation defined                   difference_type;  
  typedef std::random_access_iterator_tag          iterator_category;

  // construct/copy/destruct
  comment_iterator();
  comment_iterator(const char**);

  // operators
  reference operator*() const;
  comment_iterator& operator++();
  comment_iterator& operator--();

  private: const char** current;
};

Description

comment_iterator construct/copy/destruct

  1. comment_iterator();

    Effects: 不定値のcomment_iteratorを生成する。

  2. comment_iterator(const char** ptr);

    Effects: current = ptr

comment_iterator operators

  1. reference operator*() const;

    Returns: *currentの文字列を名前と値の対にパースした結果

  2. comment_iterator& operator++();

    Effects: ++current
    Returns: *this

  3. comment_iterator& operator--();

    Effects: --current
    Returns: *this

製作著作 © 2006 Takeshi Mouri

前のページ 上に戻る ホーム 次のページ