OmniSciDB  a5dc49c757
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
heavydb.thrift.ttypes.TPixel Class Reference
+ Inheritance diagram for heavydb.thrift.ttypes.TPixel:
+ Collaboration diagram for heavydb.thrift.ttypes.TPixel:

Public Member Functions

def __init__
 
def read
 
def write
 
def validate
 
def __repr__
 
def __eq__
 
def __ne__
 

Public Attributes

 x
 
 y
 

Private Attributes

 __dict__
 

Detailed Description

Attributes:
 - x
 - y

Definition at line 2757 of file ttypes.py.

Constructor & Destructor Documentation

def heavydb.thrift.ttypes.TPixel.__init__ (   self,
  x = None,
  y = None 
)

Definition at line 2766 of file ttypes.py.

2767  def __init__(self, x=None, y=None,):
2768  self.x = x
2769  self.y = y

Member Function Documentation

def heavydb.thrift.ttypes.TPixel.__eq__ (   self,
  other 
)

Definition at line 2818 of file ttypes.py.

2819  def __eq__(self, other):
2820  return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
def heavydb.thrift.ttypes.TPixel.__ne__ (   self,
  other 
)

Definition at line 2821 of file ttypes.py.

2822  def __ne__(self, other):
2823  return not (self == other)
2824 
def heavydb.thrift.ttypes.TPixel.__repr__ (   self)

Definition at line 2813 of file ttypes.py.

2814  def __repr__(self):
2815  L = ['%s=%r' % (key, value)
2816  for key, value in self.__dict__.items()]
2817  return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
std::string join(T const &container, std::string const &delim)

+ Here is the call graph for this function:

def heavydb.thrift.ttypes.TPixel.read (   self,
  iprot 
)

Definition at line 2770 of file ttypes.py.

References anonymous_namespace{Types.cpp}::Coords.x, heavydb.thrift.ttypes.TPixel.x, anonymous_namespace{Types.cpp}::Coords.y, and heavydb.thrift.ttypes.TPixel.y.

2771  def read(self, iprot):
2772  if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
2773  iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
2774  return
2775  iprot.readStructBegin()
2776  while True:
2777  (fname, ftype, fid) = iprot.readFieldBegin()
2778  if ftype == TType.STOP:
2779  break
2780  if fid == 1:
2781  if ftype == TType.I64:
2782  self.x = iprot.readI64()
2783  else:
2784  iprot.skip(ftype)
2785  elif fid == 2:
2786  if ftype == TType.I64:
2787  self.y = iprot.readI64()
2788  else:
2789  iprot.skip(ftype)
2790  else:
2791  iprot.skip(ftype)
2792  iprot.readFieldEnd()
2793  iprot.readStructEnd()
def heavydb.thrift.ttypes.TPixel.validate (   self)

Definition at line 2810 of file ttypes.py.

2811  def validate(self):
2812  return
def heavydb.thrift.ttypes.TPixel.write (   self,
  oprot 
)

Definition at line 2794 of file ttypes.py.

References anonymous_namespace{Types.cpp}::Coords.x, heavydb.thrift.ttypes.TPixel.x, anonymous_namespace{Types.cpp}::Coords.y, and heavydb.thrift.ttypes.TPixel.y.

2795  def write(self, oprot):
2796  if oprot._fast_encode is not None and self.thrift_spec is not None:
2797  oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
2798  return
2799  oprot.writeStructBegin('TPixel')
2800  if self.x is not None:
2801  oprot.writeFieldBegin('x', TType.I64, 1)
2802  oprot.writeI64(self.x)
2803  oprot.writeFieldEnd()
2804  if self.y is not None:
2805  oprot.writeFieldBegin('y', TType.I64, 2)
2806  oprot.writeI64(self.y)
2807  oprot.writeFieldEnd()
2808  oprot.writeFieldStop()
2809  oprot.writeStructEnd()

Member Data Documentation

heavydb.thrift.ttypes.TPixel.__dict__
private

Definition at line 2819 of file ttypes.py.

Referenced by TableFunctionsFactory_node.Node.copy().

heavydb.thrift.ttypes.TPixel.x

Definition at line 2767 of file ttypes.py.

Referenced by heavydb.thrift.ttypes.TPixel.read(), and heavydb.thrift.ttypes.TPixel.write().

heavydb.thrift.ttypes.TPixel.y

Definition at line 2768 of file ttypes.py.

Referenced by heavydb.thrift.ttypes.TPixel.read(), and heavydb.thrift.ttypes.TPixel.write().


The documentation for this class was generated from the following file: