All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
LVDSpatterns.Pattern Class Reference

Public Member Functions

def __init__
 
def __str__
 

Static Public Member Functions

def shiftPattern
 

Public Attributes

 pairs
 

Detailed Description

Definition at line 61 of file LVDSpatterns.py.

Constructor & Destructor Documentation

def LVDSpatterns.Pattern.__init__ (   self,
  patter,
  offset 
)

Definition at line 63 of file LVDSpatterns.py.

63 
64  def __init__(self, patter, offset):
65  self.pairs = self.shiftPattern(patter, offset)

Member Function Documentation

def LVDSpatterns.Pattern.__str__ (   self)

Definition at line 78 of file LVDSpatterns.py.

78 
79  def __str__(self):
80  return "\n".join(
81  " ".join(
82  "{:12}".format(
83  "[ {} ],".format(
84  ",".join(
85  "{:3d}".format(c) for c in p # elements in pair
86  )
87  )
88  )
89  for p in g # pairs in group
90  )
91  for g in self.pairs # groups
)
static std::string format(PyObject *obj, unsigned int pos, unsigned int indent, unsigned int maxlen, unsigned int depth)
Definition: fclmodule.cxx:374
S join(S const &sep, Coll const &s)
Returns a concatenation of strings in s separated by sep.
def LVDSpatterns.Pattern.shiftPattern (   pattern,
  offset 
)
static

Definition at line 67 of file LVDSpatterns.py.

67 
68  def shiftPattern(pattern, offset):
69  l = list()
70  for orig in pattern:
71  l.append(
72  Pattern.shiftPattern(orig, offset) if isinstance(orig, list)
73  else orig + offset
74  )
75  # for
return l
list
Definition: file_to_url.sh:28

Member Data Documentation

LVDSpatterns.Pattern.pairs

Definition at line 64 of file LVDSpatterns.py.


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