OmniSciDB  340b00dbf6
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
omnisci.thrift.ttypes.TPixel Class Reference
+ Inheritance diagram for omnisci.thrift.ttypes.TPixel:
+ Collaboration diagram for omnisci.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 2506 of file ttypes.py.

Constructor & Destructor Documentation

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

Definition at line 2515 of file ttypes.py.

2516  def __init__(self, x=None, y=None,):
2517  self.x = x
2518  self.y = y

Member Function Documentation

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

Definition at line 2567 of file ttypes.py.

2568  def __eq__(self, other):
2569  return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
def omnisci.thrift.ttypes.TPixel.__ne__ (   self,
  other 
)

Definition at line 2570 of file ttypes.py.

2571  def __ne__(self, other):
2572  return not (self == other)
2573 
def omnisci.thrift.ttypes.TPixel.__repr__ (   self)

Definition at line 2562 of file ttypes.py.

2563  def __repr__(self):
2564  L = ['%s=%r' % (key, value)
2565  for key, value in self.__dict__.items()]
2566  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 omnisci.thrift.ttypes.TPixel.read (   self,
  iprot 
)

Definition at line 2519 of file ttypes.py.

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

2520  def read(self, iprot):
2521  if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
2522  iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
2523  return
2524  iprot.readStructBegin()
2525  while True:
2526  (fname, ftype, fid) = iprot.readFieldBegin()
2527  if ftype == TType.STOP:
2528  break
2529  if fid == 1:
2530  if ftype == TType.I64:
2531  self.x = iprot.readI64()
2532  else:
2533  iprot.skip(ftype)
2534  elif fid == 2:
2535  if ftype == TType.I64:
2536  self.y = iprot.readI64()
2537  else:
2538  iprot.skip(ftype)
2539  else:
2540  iprot.skip(ftype)
2541  iprot.readFieldEnd()
2542  iprot.readStructEnd()
def omnisci.thrift.ttypes.TPixel.validate (   self)

Definition at line 2559 of file ttypes.py.

2560  def validate(self):
2561  return
def omnisci.thrift.ttypes.TPixel.write (   self,
  oprot 
)

Definition at line 2543 of file ttypes.py.

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

2544  def write(self, oprot):
2545  if oprot._fast_encode is not None and self.thrift_spec is not None:
2546  oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
2547  return
2548  oprot.writeStructBegin('TPixel')
2549  if self.x is not None:
2550  oprot.writeFieldBegin('x', TType.I64, 1)
2551  oprot.writeI64(self.x)
2552  oprot.writeFieldEnd()
2553  if self.y is not None:
2554  oprot.writeFieldBegin('y', TType.I64, 2)
2555  oprot.writeI64(self.y)
2556  oprot.writeFieldEnd()
2557  oprot.writeFieldStop()
2558  oprot.writeStructEnd()

Member Data Documentation

omnisci.thrift.ttypes.TPixel.__dict__
private

Definition at line 2568 of file ttypes.py.

omnisci.thrift.ttypes.TPixel.x

Definition at line 2516 of file ttypes.py.

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

omnisci.thrift.ttypes.TPixel.y

Definition at line 2517 of file ttypes.py.

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


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