CYCLUS
Loading...
Searching...
No Matches
exchange_translation_context.h
Go to the documentation of this file.
1#ifndef CYCLUS_SRC_EXCHANGE_TRANSLATION_CONTEXT_H_
2#define CYCLUS_SRC_EXCHANGE_TRANSLATION_CONTEXT_H_
3
4#include <map>
5
6#include "bid.h"
7#include "exchange_graph.h"
8#include "request.h"
9
10namespace cyclus {
11
12/// @class ExchangeTranslationContext
13///
14/// @brief An ExchangeTranslationContext is a simple holder class for any
15/// information needed to translate a ResourceExchange to and from an
16/// ExchangeGraph
17template <class T>
19 public:
20 std::map<Request<T>*, ExchangeNode::Ptr> request_to_node;
21 std::map<ExchangeNode::Ptr, Request<T>*> node_to_request;
22 std::map<Bid<T>*, ExchangeNode::Ptr> bid_to_node;
23 std::map<ExchangeNode::Ptr, Bid<T>*> node_to_bid;
24};
25
26} // namespace cyclus
27
28#endif // CYCLUS_SRC_EXCHANGE_TRANSLATION_CONTEXT_H_
taken directly from OsiSolverInterface.cpp on 2/17/14 from https://projects.coin-or....
Definition agent.cc:14
boost::shared_ptr< ExchangeNode > Ptr
An ExchangeTranslationContext is a simple holder class for any information needed to translate a Reso...
std::map< Request< T > *, ExchangeNode::Ptr > request_to_node
std::map< ExchangeNode::Ptr, Bid< T > * > node_to_bid
std::map< ExchangeNode::Ptr, Request< T > * > node_to_request
std::map< Bid< T > *, ExchangeNode::Ptr > bid_to_node