pystencils.backend.ast.structural.PsConditional#

class pystencils.backend.ast.structural.PsConditional(cond, branch_true, branch_false=None)#

Conditional branch

Parameters:
_clone_structural()#

Implementation of structural node cloning.

Return type:

PsConditional

get_children()#

Retrieve child nodes of this AST node

This operation must be implemented by subclasses.

Return type:

tuple[PsAstNode, ...]

set_child(idx, c)#

Update a child node of this AST node.

This operation must be implemented by subclasses.

Parameters: