OmniSciDB  471d68cefb
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
generate_TableFunctionsFactory_init.Pipeline Class Reference
+ Inheritance diagram for generate_TableFunctionsFactory_init.Pipeline:
+ Collaboration diagram for generate_TableFunctionsFactory_init.Pipeline:

Public Member Functions

def __init__
 
def __call__
 

Public Attributes

 passes
 

Detailed Description

Definition at line 1139 of file generate_TableFunctionsFactory_init.py.

Constructor & Destructor Documentation

def generate_TableFunctionsFactory_init.Pipeline.__init__ (   self,
  passes 
)

Member Function Documentation

def generate_TableFunctionsFactory_init.Pipeline.__call__ (   self,
  ast_list 
)

Definition at line 1143 of file generate_TableFunctionsFactory_init.py.

References generate_TableFunctionsFactory_init.Pipeline.passes.

1144  def __call__(self, ast_list):
1145  if not isinstance(ast_list, list):
1146  ast_list = [ast_list]
1147 
1148  for c in self.passes:
1149  ast_list = [ast.accept(c()) for ast in ast_list]
1150  ast_list = itertools.chain.from_iterable( # flatten the list
1151  map(lambda x: x if isinstance(x, list) else [x], ast_list))
1152 
1153  return list(ast_list)
1154 

Member Data Documentation

generate_TableFunctionsFactory_init.Pipeline.passes

Definition at line 1141 of file generate_TableFunctionsFactory_init.py.

Referenced by generate_TableFunctionsFactory_init.Pipeline.__call__().


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