cavis/libnd4j/include/graph/generated/nd4j/graph/LongTriple.py

47 lines
1.5 KiB
Python

# automatically generated by the FlatBuffers compiler, do not modify
# namespace: graph
import flatbuffers
class LongTriple(object):
__slots__ = ['_tab']
@classmethod
def GetRootAsLongTriple(cls, buf, offset):
n = flatbuffers.encode.Get(flatbuffers.packer.uoffset, buf, offset)
x = LongTriple()
x.Init(buf, n + offset)
return x
# LongTriple
def Init(self, buf, pos):
self._tab = flatbuffers.table.Table(buf, pos)
# LongTriple
def First(self):
o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(4))
if o != 0:
return self._tab.Get(flatbuffers.number_types.Int64Flags, o + self._tab.Pos)
return 0
# LongTriple
def Second(self):
o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(6))
if o != 0:
return self._tab.Get(flatbuffers.number_types.Int64Flags, o + self._tab.Pos)
return 0
# LongTriple
def Third(self):
o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(8))
if o != 0:
return self._tab.Get(flatbuffers.number_types.Int64Flags, o + self._tab.Pos)
return 0
def LongTripleStart(builder): builder.StartObject(3)
def LongTripleAddFirst(builder, first): builder.PrependInt64Slot(0, first, 0)
def LongTripleAddSecond(builder, second): builder.PrependInt64Slot(1, second, 0)
def LongTripleAddThird(builder, third): builder.PrependInt64Slot(2, third, 0)
def LongTripleEnd(builder): return builder.EndObject()