OmniSciDB  085a039ca4
 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 1203 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 1207 of file generate_TableFunctionsFactory_init.py.

References generate_TableFunctionsFactory_init.Pipeline.passes.

1208  def __call__(self, ast_list):
1209  if not isinstance(ast_list, list):
1210  ast_list = [ast_list]
1211 
1212  for c in self.passes:
1213  ast_list = [ast.accept(c()) for ast in ast_list]
1214  ast_list = itertools.chain.from_iterable( # flatten the list
1215  map(lambda x: x if isinstance(x, list) else [x], ast_list))
1216 
1217  return list(ast_list)
1218 

Member Data Documentation

generate_TableFunctionsFactory_init.Pipeline.passes

Definition at line 1205 of file generate_TableFunctionsFactory_init.py.

Referenced by generate_TableFunctionsFactory_init.Pipeline.__call__().


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