summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMatt K. Light <mklight@us.ibm.com>2016-03-15 15:35:30 -0500
committerDaniel M. Crowell <dcrowell@us.ibm.com>2016-03-17 14:57:10 -0400
commit75c8dcdef96cdf7207d7074ac9f58c7c3bdddcca (patch)
treeb455c4b69042ace9f3d563168b6c1d5574d1333b /src
parent0e2011de8e18559b4456fcea8bfa52a42a630256 (diff)
downloadtalos-hostboot-75c8dcdef96cdf7207d7074ac9f58c7c3bdddcca.tar.gz
talos-hostboot-75c8dcdef96cdf7207d7074ac9f58c7c3bdddcca.zip
add < operator to Target to enable std::map use with Target index
Change-Id: I9d624df82690559ec763e16fbe95f9140d92c451 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/22069 Tested-by: Jenkins Server Tested-by: Hostboot CI Tested-by: PPE CI Reviewed-by: Brian R. Silver <bsilver@us.ibm.com> Reviewed-by: Richard J. Knight <rjknight@us.ibm.com> Reviewed-by: Santosh S. Puranik <santosh.puranik@in.ibm.com> Reviewed-by: Jennifer A. Stofer <stofer@us.ibm.com> Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/22073 Tested-by: FSP CI Jenkins Reviewed-by: Christian R. Geddes <crgeddes@us.ibm.com> Reviewed-by: Andrew J. Geissler <andrewg@us.ibm.com> Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
Diffstat (limited to 'src')
-rw-r--r--src/import/hwpf/fapi2/include/fapi2_target.H9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/import/hwpf/fapi2/include/fapi2_target.H b/src/import/hwpf/fapi2/include/fapi2_target.H
index 61fec2ae9..7c0a8d8d4 100644
--- a/src/import/hwpf/fapi2/include/fapi2_target.H
+++ b/src/import/hwpf/fapi2/include/fapi2_target.H
@@ -145,6 +145,15 @@ class Target
bool operator!=(const Target& i_right) const;
///
+ /// @brief Less Than Comparison Operator
+ /// @param[in] i_right Reference to Target to compare.
+ /// @return bool. True if less than i_right.
+ /// @note Platforms need to define this so that the physical
+ /// targets are determined to be less than rather than just the handles
+ ///
+ bool operator<(const Target& i_right) const;
+
+ ///
/// @brief Get the handle.
/// @return V The target's handle, or value
///
OpenPOWER on IntegriCloud