Class LoopInterface#

Class Documentation#

class LoopInterface#

Public Functions

inline virtual ~LoopInterface()#

Virtual destructor.

virtual bool IsLoop(AstInterface &__fa, const AstNodePtr &__fc, AstNodePtr *__init = 0, AstNodePtr *__cond = 0, AstNodePtr *__incr = 0, AstNodePtr *__body = 0) const = 0#
Parameters:
  • __fa – AST Interface to access __fc.

  • __fc – AST node to parse.

  • __init – Returns node holding initial statement, if possible.

  • __cond – Returns node holding conditional statement, if possible.

  • __incr – Returns node holding incremental statement, if possible.

  • __body – Returns node holding loop body, if possible.

Returns:

Whether the AST __fc is a loop

virtual bool IsFortranLoop(AstInterface &__fa, const AstNodePtr &__fc, AstNodePtr *__ivar = 0, AstNodePtr *__start = 0, AstNodePtr *__stop = 0, AstNodePtr *__step = 0, AstNodePtr *__body = 0) const = 0#
Parameters:
  • __fa – AST Interface to access __fc.

  • __fc – AST node to parse.

  • __ivar – Returns node holding iteration variable, if possible.

  • __start – Returns node holding initial value, if possible.

  • __stop – Returns node holding bound value, if possible.

  • __step – Returns node holding increment value, if possible.

  • __body – Returns node holding iteration body, if possible.

Returns:

Whether the AST __fc is a Fortran-style loop