OmniSciDB  340b00dbf6
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
omnisci.dtypes.DataType Class Reference

Public Member Functions

def __init__
 
def __eq__
 
def __ne__
 
def __hash__
 

Private Attributes

 _matches
 

Detailed Description

Definition at line 11 of file dtypes.py.

Constructor & Destructor Documentation

def omnisci.dtypes.DataType.__init__ (   self,
  matches 
)

Definition at line 12 of file dtypes.py.

12 
13  def __init__(self, matches):
14  self._matches = set(matches)

Member Function Documentation

def omnisci.dtypes.DataType.__eq__ (   self,
  other 
)

Definition at line 15 of file dtypes.py.

References omnisci.dtypes.DataType._matches.

15 
16  def __eq__(self, other):
17  return other in self._matches
def omnisci.dtypes.DataType.__hash__ (   self)

Definition at line 21 of file dtypes.py.

References omnisci.dtypes.DataType._matches.

21 
22  def __hash__(self):
23  return hash(tuple(self._matches))
24 
def omnisci.dtypes.DataType.__ne__ (   self,
  other 
)

Definition at line 18 of file dtypes.py.

18 
19  def __ne__(self, other):
20  return not (self == other)

Member Data Documentation

omnisci.dtypes.DataType._matches
private

Definition at line 13 of file dtypes.py.

Referenced by omnisci.dtypes.DataType.__eq__(), and omnisci.dtypes.DataType.__hash__().


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