Back to index

moin  1.9.0~rc2
Public Member Functions | Public Attributes | Properties | Private Member Functions | Private Attributes | Static Private Attributes
MoinMoin.search.results.Match Class Reference

Results. More...

Inheritance diagram for MoinMoin.search.results.Match:
Inheritance graph
[legend]

List of all members.

Public Member Functions

def __init__
def __len__
def __eq__
def __ne__
def view
def weight

Public Attributes

 re_match

Properties

 start = property(_get_start)
 end = property(_get_end)

Private Member Functions

def _get_start
def _get_end

Private Attributes

 _start
 _end
 __class__

Static Private Attributes

float _weight = 1.0

Detailed Description

Results.

Base class for all Matches (found pieces of pages).

This class represents a empty True value as returned from negated searches.

Definition at line 23 of file results.py.


Constructor & Destructor Documentation

def MoinMoin.search.results.Match.__init__ (   self,
  start = 0,
  end = 0,
  re_match = None 
)

Definition at line 31 of file results.py.

00031 
00032     def __init__(self, start=0, end=0, re_match=None):
00033         self.re_match = re_match
00034         if not re_match:
00035             self._start = start
00036             self._end = end
00037         else:
00038             self._start = self._end = 0


Member Function Documentation

def MoinMoin.search.results.Match.__eq__ (   self,
  other 
)

Definition at line 42 of file results.py.

00042 
00043     def __eq__(self, other):
00044         equal = (self.__class__ == other.__class__ and
00045                  self.start == other.start and
00046                  self.end == other.end)
00047         return equal

Here is the caller graph for this function:

Definition at line 39 of file results.py.

00039 
00040     def __len__(self):
00041         return self.end - self.start

def MoinMoin.search.results.Match.__ne__ (   self,
  other 
)

Definition at line 48 of file results.py.

00048 
00049     def __ne__(self, other):
00050         return not self.__eq__(other)

Here is the call graph for this function:

def MoinMoin.search.results.Match._get_end (   self) [private]

Definition at line 62 of file results.py.

00062 
00063     def _get_end(self):
00064         if self.re_match:
00065             return self.re_match.end()
00066         return self._end

def MoinMoin.search.results.Match._get_start (   self) [private]

Definition at line 57 of file results.py.

00057 
00058     def _get_start(self):
00059         if self.re_match:
00060             return self.re_match.start()
00061         return self._start

Definition at line 51 of file results.py.

00051 
00052     def view(self):
00053         return ''

Definition at line 54 of file results.py.

00054 
00055     def weight(self):
00056         return self._weight


Member Data Documentation

Definition at line 43 of file results.py.

Definition at line 35 of file results.py.

Definition at line 34 of file results.py.

float MoinMoin.search.results.Match._weight = 1.0 [static, private]

Reimplemented in MoinMoin.search.results.TitleMatch.

Definition at line 29 of file results.py.

Definition at line 32 of file results.py.


Property Documentation

Definition at line 69 of file results.py.

Definition at line 68 of file results.py.


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