refactor: add TransCache

This commit is contained in:
Christopher Mosher
2013-12-15 14:00:43 -05:00
parent 90145f3d37
commit d3068e35e6
7 changed files with 77 additions and 27 deletions

13
TransCache.cpp Normal file
View File

@@ -0,0 +1,13 @@
/*
* File: TransCache.cpp
* Author: Christopher
*
* Created on December 15, 2013, 1:39 PM
*/
#include "TransCache.h"
#include "trans.h"
void TransCache::add(Segment* c1, Segment* gate, Segment* c2) {
this->cache.insert(std::make_shared<Trans>(c1,gate,c2));
}