LinkObject_generated.h
Go to the documentation of this file.
1 // automatically generated by the FlatBuffers compiler, do not modify
2 
3 #ifndef FLATBUFFERS_GENERATED_LINKOBJECT_GRL_FLATBUFFER_H_
4 #define FLATBUFFERS_GENERATED_LINKOBJECT_GRL_FLATBUFFER_H_
5 
6 #include "flatbuffers/flatbuffers.h"
7 
8 #include "Geometry_generated.h"
9 
10 namespace grl {
11 namespace flatbuffer {
12 struct Vector3d;
13 struct Quaternion;
14 struct Pose;
15 struct Wrench;
16 struct Inertia;
17 } // namespace flatbuffer
18 } // namespace grl
19 
20 namespace grl {
21 namespace flatbuffer {
22 
23 struct LinkObject;
24 
25 struct LinkObject FLATBUFFERS_FINAL_CLASS : private flatbuffers::Table {
26  const flatbuffers::String *name() const { return GetPointer<const flatbuffers::String *>(4); }
27  const flatbuffers::String *parent() const { return GetPointer<const flatbuffers::String *>(6); }
28  const grl::flatbuffer::Pose *pose() const { return GetStruct<const grl::flatbuffer::Pose *>(8); }
29  const grl::flatbuffer::Inertia *inertia() const { return GetStruct<const grl::flatbuffer::Inertia *>(10); }
30  bool Verify(flatbuffers::Verifier &verifier) const {
31  return VerifyTableStart(verifier) &&
32  VerifyField<flatbuffers::uoffset_t>(verifier, 4 /* name */) &&
33  verifier.Verify(name()) &&
34  VerifyField<flatbuffers::uoffset_t>(verifier, 6 /* parent */) &&
35  verifier.Verify(parent()) &&
36  VerifyField<grl::flatbuffer::Pose>(verifier, 8 /* pose */) &&
37  VerifyField<grl::flatbuffer::Inertia>(verifier, 10 /* inertia */) &&
38  verifier.EndTable();
39  }
40 };
41 
43  flatbuffers::FlatBufferBuilder &fbb_;
44  flatbuffers::uoffset_t start_;
45  void add_name(flatbuffers::Offset<flatbuffers::String> name) { fbb_.AddOffset(4, name); }
46  void add_parent(flatbuffers::Offset<flatbuffers::String> parent) { fbb_.AddOffset(6, parent); }
47  void add_pose(const grl::flatbuffer::Pose *pose) { fbb_.AddStruct(8, pose); }
48  void add_inertia(const grl::flatbuffer::Inertia *inertia) { fbb_.AddStruct(10, inertia); }
49  LinkObjectBuilder(flatbuffers::FlatBufferBuilder &_fbb) : fbb_(_fbb) { start_ = fbb_.StartTable(); }
50  LinkObjectBuilder &operator=(const LinkObjectBuilder &);
51  flatbuffers::Offset<LinkObject> Finish() {
52  auto o = flatbuffers::Offset<LinkObject>(fbb_.EndTable(start_, 4));
53  return o;
54  }
55 };
56 
57 inline flatbuffers::Offset<LinkObject> CreateLinkObject(flatbuffers::FlatBufferBuilder &_fbb,
58  flatbuffers::Offset<flatbuffers::String> name = 0,
59  flatbuffers::Offset<flatbuffers::String> parent = 0,
60  const grl::flatbuffer::Pose *pose = 0,
61  const grl::flatbuffer::Inertia *inertia = 0) {
62  LinkObjectBuilder builder_(_fbb);
63  builder_.add_inertia(inertia);
64  builder_.add_pose(pose);
65  builder_.add_parent(parent);
66  builder_.add_name(name);
67  return builder_.Finish();
68 }
69 
70 } // namespace flatbuffer
71 } // namespace grl
72 
73 #endif // FLATBUFFERS_GENERATED_LINKOBJECT_GRL_FLATBUFFER_H_
const grl::flatbuffer::Inertia * inertia() const
const flatbuffers::String * parent() const
const grl::flatbuffer::Pose * pose() const
flatbuffers::Offset< LinkObject > Finish()
void add_parent(flatbuffers::Offset< flatbuffers::String > parent)
LinkObjectBuilder(flatbuffers::FlatBufferBuilder &_fbb)
void add_name(flatbuffers::Offset< flatbuffers::String > name)
bool Verify(flatbuffers::Verifier &verifier) const
flatbuffers::FlatBufferBuilder & fbb_
void add_inertia(const grl::flatbuffer::Inertia *inertia)
const flatbuffers::String * name() const
flatbuffers::Offset< LinkObject > CreateLinkObject(flatbuffers::FlatBufferBuilder &_fbb, flatbuffers::Offset< flatbuffers::String > name=0, flatbuffers::Offset< flatbuffers::String > parent=0, const grl::flatbuffer::Pose *pose=0, const grl::flatbuffer::Inertia *inertia=0)
void add_pose(const grl::flatbuffer::Pose *pose)