| 229 | } |
| 230 | |
| 231 | std::shared_ptr<Transaction::ContextValue> |
| 232 | Transaction::getContextValue(const std::string &key) |
| 233 | { |
| 234 | std::shared_ptr<Transaction::ContextValue> return_context_value; |
| 235 | map<string, std::shared_ptr<Transaction::ContextValue>>::iterator iter = state_->context_values_.find(key); |
| 236 | if (iter != state_->context_values_.end()) { |
| 237 | return_context_value = iter->second; |
| 238 | } |
| 239 | |
| 240 | return return_context_value; |
| 241 | } |
| 242 | |
| 243 | void |
| 244 | Transaction::setContextValue(const std::string &key, std::shared_ptr<Transaction::ContextValue> value) |