~ubuntu-branches/ubuntu/trusty/protobuf/trusty-proposed

« back to all changes in this revision

Viewing changes to src/google/protobuf/extension_set.h

  • Committer: Bazaar Package Importer
  • Author(s): Matthias Klose
  • Date: 2011-05-31 14:41:47 UTC
  • mfrom: (2.2.8 sid)
  • Revision ID: james.westby@ubuntu.com-20110531144147-s41g5fozgvyo462l
Tags: 2.4.0a-2ubuntu1
* Merge with Debian; remaining changes:
  - Fix linking with -lpthread.

Show diffs side-by-side

added added

removed removed

Lines of Context:
39
39
#define GOOGLE_PROTOBUF_EXTENSION_SET_H__
40
40
 
41
41
#include <vector>
42
 
#include <stack>
43
42
#include <map>
44
43
#include <utility>
45
44
#include <string>
46
45
 
 
46
 
47
47
#include <google/protobuf/stubs/common.h>
48
48
 
49
49
namespace google {
214
214
 
215
215
  bool Has(int number) const;
216
216
  int ExtensionSize(int number) const;   // Size of a repeated extension.
 
217
  FieldType ExtensionType(int number) const;
217
218
  void ClearExtension(int number);
218
219
 
219
220
  // singular fields -------------------------------------------------
451
452
    int SpaceUsedExcludingSelf() const;
452
453
  };
453
454
 
 
455
 
454
456
  // Gets the extension with the given number, creating it if it does not
455
457
  // already exist.  Returns true if the extension did not already exist.
456
458
  bool MaybeNewExtension(int number, const FieldDescriptor* descriptor,