build/include/grl/flatbuffer/grl/flatbuffer/LinkObject.java
Go to the documentation of this file.
1 // automatically generated, do not modify
2 
3 package grl.flatbuffer;
4 
5 import java.nio.*;
6 import java.lang.*;
7 import java.util.*;
8 import com.google.flatbuffers.*;
9 
10 @SuppressWarnings("unused")
11 public final class LinkObject extends Table {
12  public static LinkObject getRootAsLinkObject(ByteBuffer _bb) { return getRootAsLinkObject(_bb, new LinkObject()); }
13  public static LinkObject getRootAsLinkObject(ByteBuffer _bb, LinkObject obj) { _bb.order(ByteOrder.LITTLE_ENDIAN); return (obj.__init(_bb.getInt(_bb.position()) + _bb.position(), _bb)); }
14  public LinkObject __init(int _i, ByteBuffer _bb) { bb_pos = _i; bb = _bb; return this; }
15 
16  public String name() { int o = __offset(4); return o != 0 ? __string(o + bb_pos) : null; }
17  public ByteBuffer nameAsByteBuffer() { return __vector_as_bytebuffer(4, 1); }
18  public String parent() { int o = __offset(6); return o != 0 ? __string(o + bb_pos) : null; }
19  public ByteBuffer parentAsByteBuffer() { return __vector_as_bytebuffer(6, 1); }
20  public Pose pose() { return pose(new Pose()); }
21  public Pose pose(Pose obj) { int o = __offset(8); return o != 0 ? obj.__init(o + bb_pos, bb) : null; }
22  public Inertia inertia() { return inertia(new Inertia()); }
23  public Inertia inertia(Inertia obj) { int o = __offset(10); return o != 0 ? obj.__init(o + bb_pos, bb) : null; }
24 
25  public static void startLinkObject(FlatBufferBuilder builder) { builder.startObject(4); }
26  public static void addName(FlatBufferBuilder builder, int nameOffset) { builder.addOffset(0, nameOffset, 0); }
27  public static void addParent(FlatBufferBuilder builder, int parentOffset) { builder.addOffset(1, parentOffset, 0); }
28  public static void addPose(FlatBufferBuilder builder, int poseOffset) { builder.addStruct(2, poseOffset, 0); }
29  public static void addInertia(FlatBufferBuilder builder, int inertiaOffset) { builder.addStruct(3, inertiaOffset, 0); }
30  public static int endLinkObject(FlatBufferBuilder builder) {
31  int o = builder.endObject();
32  return o;
33  }
34 };
35 
static void addInertia(FlatBufferBuilder builder, int inertiaOffset)
static void addParent(FlatBufferBuilder builder, int parentOffset)
static void addPose(FlatBufferBuilder builder, int poseOffset)
static LinkObject getRootAsLinkObject(ByteBuffer _bb, LinkObject obj)
static void addName(FlatBufferBuilder builder, int nameOffset)