OmniSciDB  94e8789169
 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 2386 of file ttypes.py.

Constructor & Destructor Documentation

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

Definition at line 2395 of file ttypes.py.

2396  def __init__(self, x=None, y=None,):
2397  self.x = x
2398  self.y = y

Member Function Documentation

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

Definition at line 2447 of file ttypes.py.

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

Definition at line 2450 of file ttypes.py.

2451  def __ne__(self, other):
2452  return not (self == other)
2453 
def omnisci.thrift.ttypes.TPixel.__repr__ (   self)

Definition at line 2442 of file ttypes.py.

2443  def __repr__(self):
2444  L = ['%s=%r' % (key, value)
2445  for key, value in self.__dict__.items()]
2446  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 2399 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.

2400  def read(self, iprot):
2401  if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
2402  iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
2403  return
2404  iprot.readStructBegin()
2405  while True:
2406  (fname, ftype, fid) = iprot.readFieldBegin()
2407  if ftype == TType.STOP:
2408  break
2409  if fid == 1:
2410  if ftype == TType.I64:
2411  self.x = iprot.readI64()
2412  else:
2413  iprot.skip(ftype)
2414  elif fid == 2:
2415  if ftype == TType.I64:
2416  self.y = iprot.readI64()
2417  else:
2418  iprot.skip(ftype)
2419  else:
2420  iprot.skip(ftype)
2421  iprot.readFieldEnd()
2422  iprot.readStructEnd()
def omnisci.thrift.ttypes.TPixel.validate (   self)

Definition at line 2439 of file ttypes.py.

2440  def validate(self):
2441  return
def omnisci.thrift.ttypes.TPixel.write (   self,
  oprot 
)

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

2424  def write(self, oprot):
2425  if oprot._fast_encode is not None and self.thrift_spec is not None:
2426  oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
2427  return
2428  oprot.writeStructBegin('TPixel')
2429  if self.x is not None:
2430  oprot.writeFieldBegin('x', TType.I64, 1)
2431  oprot.writeI64(self.x)
2432  oprot.writeFieldEnd()
2433  if self.y is not None:
2434  oprot.writeFieldBegin('y', TType.I64, 2)
2435  oprot.writeI64(self.y)
2436  oprot.writeFieldEnd()
2437  oprot.writeFieldStop()
2438  oprot.writeStructEnd()

Member Data Documentation

omnisci.thrift.ttypes.TPixel.__dict__
private

Definition at line 2448 of file ttypes.py.

omnisci.thrift.ttypes.TPixel.x

Definition at line 2396 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 2397 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: