class $CLASS {
 public:
  typedef $WRAPPER Wrapper;

  static $CLASS* New(mojo::Buffer* buf, mojo::Buffer::Destructor dtor = NULL);

$SETTERS

$GETTERS

 private:
  friend class mojo::internal::ObjectTraits<$CLASS>;

  $CLASS();
  ~$CLASS();  // NOT IMPLEMENTED

  mojo::internal::StructHeader _header_;
$FIELDS
};
MOJO_COMPILE_ASSERT(sizeof($CLASS) == $SIZE,
                    bad_sizeof_$CLASS);
