OmniSciDB  cde582ebc3
 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 2713 of file ttypes.py.

Constructor & Destructor Documentation

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

Definition at line 2722 of file ttypes.py.

2723  def __init__(self, x=None, y=None,):
2724  self.x = x
2725  self.y = y

Member Function Documentation

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

Definition at line 2774 of file ttypes.py.

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

Definition at line 2777 of file ttypes.py.

2778  def __ne__(self, other):
2779  return not (self == other)
2780 
def heavydb.thrift.ttypes.TPixel.__repr__ (   self)

Definition at line 2769 of file ttypes.py.

2770  def __repr__(self):
2771  L = ['%s=%r' % (key, value)
2772  for key, value in self.__dict__.items()]
2773  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 2726 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.

2727  def read(self, iprot):
2728  if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
2729  iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
2730  return
2731  iprot.readStructBegin()
2732  while True:
2733  (fname, ftype, fid) = iprot.readFieldBegin()
2734  if ftype == TType.STOP:
2735  break
2736  if fid == 1:
2737  if ftype == TType.I64:
2738  self.x = iprot.readI64()
2739  else:
2740  iprot.skip(ftype)
2741  elif fid == 2:
2742  if ftype == TType.I64:
2743  self.y = iprot.readI64()
2744  else:
2745  iprot.skip(ftype)
2746  else:
2747  iprot.skip(ftype)
2748  iprot.readFieldEnd()
2749  iprot.readStructEnd()
def heavydb.thrift.ttypes.TPixel.validate (   self)

Definition at line 2766 of file ttypes.py.

2767  def validate(self):
2768  return
def heavydb.thrift.ttypes.TPixel.write (   self,
  oprot 
)

Definition at line 2750 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.

2751  def write(self, oprot):
2752  if oprot._fast_encode is not None and self.thrift_spec is not None:
2753  oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
2754  return
2755  oprot.writeStructBegin('TPixel')
2756  if self.x is not None:
2757  oprot.writeFieldBegin('x', TType.I64, 1)
2758  oprot.writeI64(self.x)
2759  oprot.writeFieldEnd()
2760  if self.y is not None:
2761  oprot.writeFieldBegin('y', TType.I64, 2)
2762  oprot.writeI64(self.y)
2763  oprot.writeFieldEnd()
2764  oprot.writeFieldStop()
2765  oprot.writeStructEnd()

Member Data Documentation

heavydb.thrift.ttypes.TPixel.__dict__
private

Definition at line 2775 of file ttypes.py.

Referenced by generate_TableFunctionsFactory_init.Node.copy().

heavydb.thrift.ttypes.TPixel.x

Definition at line 2723 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 2724 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: