54 #ifndef _GAMS_AUCTIONS_AUCTION_BID_H_
55 #define _GAMS_AUCTIONS_AUCTION_BID_H_
60 #include "madara/knowledge/KnowledgeRecord.h"
94 madara::knowledge::KnowledgeRecord
amount;
169 #include "AuctionBid.inl"
Comparator for sorting bids in ascending order(least to greatest)
bool operator()(const AuctionBid &lhs, const AuctionBid &rhs) const
Comparison for sorting.
Comparator for sorting bids in descending order(greater to least)
bool operator()(const AuctionBid &lhs, const AuctionBid &rhs) const
Comparison for sorting.
Auction bidding instance.
bool operator==(const AuctionBid &rhs) const
Compares for bid equality.
bool operator<(const AuctionBid &rhs) const
Compares for bid less than.
std::string bidder
the id of the bidder(e.g., "agent.0")
bool operator>(const AuctionBid &rhs) const
Compares for bid greater than.
madara::knowledge::KnowledgeRecord amount
the amount of the bid(e.g., 2.50)
std::vector< AuctionBid > AuctionBids
convenience typedef for vector fo AuctionBid
void sort_descending(AuctionBids &bids)
Convenience function for sorting bids in descending order, using the AuctionBidDescending comparator.
void strip_prefix_fast(const std::string &prefix, AuctionBids &bids)
Strips bids' bidder of an auction prefix for convenience(unsafe).
void sort_ascending(AuctionBids &bids)
Convenience function for sorting bids in ascending order, using the AuctionBidAscending comparator.
void strip_prefix_safe(const std::string &prefix, AuctionBids &bids)
Strips bids' bidder of an auction prefix for convenience.
Contains all GAMS-related tools, classes and code.