diff options
author | Santosh Puranik <santosh.puranik@in.ibm.com> | 2016-05-19 12:15:50 -0500 |
---|---|---|
committer | Prachi Gupta <pragupta@us.ibm.com> | 2016-06-08 11:45:49 -0500 |
commit | affc97abc610165ce0b9c65d190a87fedff40f11 (patch) | |
tree | 5b0929fa78b657110d78ca985bd95a848526d8e6 /hwpf/include | |
parent | a127674f29196b1eea209f8fc9e7d62c7e3263e8 (diff) | |
download | talos-sbe-affc97abc610165ce0b9c65d190a87fedff40f11.tar.gz talos-sbe-affc97abc610165ce0b9c65d190a87fedff40f11.zip |
Add fapi2::Target::isFunctional implementation
Change-Id: I6a4d1b5e9ae980691a1f2d652108053340730af6
Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/24819
Tested-by: Jenkins Server
Reviewed-by: Gregory S. Still <stillgs@us.ibm.com>
Reviewed-by: Sachin Gupta <sgupta2m@in.ibm.com>
Reviewed-by: Santosh S. Puranik <santosh.puranik@in.ibm.com>
Diffstat (limited to 'hwpf/include')
-rw-r--r-- | hwpf/include/fapi2_target.H | 8 | ||||
-rw-r--r-- | hwpf/include/plat/target.H | 12 |
2 files changed, 20 insertions, 0 deletions
diff --git a/hwpf/include/fapi2_target.H b/hwpf/include/fapi2_target.H index 35fbf97e..e1f630ab 100644 --- a/hwpf/include/fapi2_target.H +++ b/hwpf/include/fapi2_target.H @@ -242,6 +242,14 @@ namespace fapi2 getOtherEnd(const TargetState i_state = TARGET_STATE_FUNCTIONAL) const; /// + /// @brief Is the target functional? + /// @return true if target is functional, false if non-functional + /// + + inline bool + isFunctional(void) const; + + /// /// @brief Copy from a Target<O> to a Target<K> /// @tparam O the target type of the other /// diff --git a/hwpf/include/plat/target.H b/hwpf/include/plat/target.H index b44b2832..8c8b673c 100644 --- a/hwpf/include/plat/target.H +++ b/hwpf/include/plat/target.H @@ -355,6 +355,18 @@ namespace fapi2 // static_assert( false, "getOtherEnd() is not supported on PPE platforms"); } + /// + /// @brief Is the target functional? + /// @return true if target is functional, false if non-functional + /// + + template<TargetType K, typename V> + inline bool + Target<K, V>::isFunctional(void) const + { + return getFunctional(); + } + /// /// @brief Return the string interpretation of this target |