From bda1982db0c73661c600494c4417360e9bd92539 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89milie=20Feral?= Date: Fri, 7 Oct 2016 14:08:09 +0200 Subject: [PATCH] [apps/graph] Add methods to find active functions in function store Change-Id: Ibe7242b945160b8917421186d061c46301bb004d --- apps/graph/function_store.cpp | 25 +++++++++++++++++++++++++ apps/graph/function_store.h | 2 ++ 2 files changed, 27 insertions(+) diff --git a/apps/graph/function_store.cpp b/apps/graph/function_store.cpp index b3c6a03e2..ccdbc2263 100644 --- a/apps/graph/function_store.cpp +++ b/apps/graph/function_store.cpp @@ -17,6 +17,21 @@ Graph::Function * Graph::FunctionStore::functionAtIndex(int i) { return &m_functions[i]; } +Graph::Function * Graph::FunctionStore::activeFunctionAtIndex(int i) { + assert(i>=0 && i