summaryrefslogtreecommitdiffstats
path: root/src/include/usr/fapi2
diff options
context:
space:
mode:
Diffstat (limited to 'src/include/usr/fapi2')
-rw-r--r--src/include/usr/fapi2/target.H14
1 files changed, 13 insertions, 1 deletions
diff --git a/src/include/usr/fapi2/target.H b/src/include/usr/fapi2/target.H
index 5912f6045..255f66dd5 100644
--- a/src/include/usr/fapi2/target.H
+++ b/src/include/usr/fapi2/target.H
@@ -487,7 +487,7 @@ inline Target<T> Target<K, V>::getParent(void) const
TARGETING::UTIL_FILTER_ALL);
}
- assert(l_parentList.size() == 1, "Found %d parents of the same type. Target HUID %x , \
+ assert(l_parentList.size() == 1, "Found %d parents of the same type. Target HUID %x ,\
looking for parents of type %x", l_parentList.size(), TARGETING::get_huid(this->get()) , requiredPType);
TARGETING::Target * l_parentTarget = l_parentList[0];
@@ -846,6 +846,18 @@ Target<K, V>::getOtherEnd(fapi2::Target<T>& o_target,
///
+/// @brief Determine whether the target is functional or not
+/// @return true if the target is functional, false otherwise
+///
+template< TargetType K, typename V >
+inline bool Target< K, V >::isFunctional(void) const
+{
+ TARGETING::PredicateIsFunctional l_functional;
+ return l_functional(static_cast<TARGETING::Target*>(this->get()));
+}
+
+
+///
/// @brief Return the string interpretation of this target
/// @tparam T The type of the target
/// @param[in] i_target Target<T>
OpenPOWER on IntegriCloud