diff options
author | olpc user <olpc@xo-5d-f7-86.localdomain> | 2019-12-09 02:38:38 -0800 |
---|---|---|
committer | olpc user <olpc@xo-5d-f7-86.localdomain> | 2019-12-09 02:38:38 -0800 |
commit | f5ec96b6f4f88065b4cc6c24057af15d1f025ad4 (patch) | |
tree | 26e8674e087f1523134a77d008971c0f1e6c6ad1 /starts/meaning-vm/level-1/ref.cpp | |
parent | 5ef775d2612ad98b58c6cf8396adac35e883910d (diff) | |
download | standingwithresilience-f5ec96b6f4f88065b4cc6c24057af15d1f025ad4.tar.gz standingwithresilience-f5ec96b6f4f88065b4cc6c24057af15d1f025ad4.zip |
move level-1 dump up into baseref so derived can use
Diffstat (limited to 'starts/meaning-vm/level-1/ref.cpp')
-rw-r--r-- | starts/meaning-vm/level-1/ref.cpp | 31 |
1 files changed, 0 insertions, 31 deletions
diff --git a/starts/meaning-vm/level-1/ref.cpp b/starts/meaning-vm/level-1/ref.cpp deleted file mode 100644 index 8d74b50..0000000 --- a/starts/meaning-vm/level-1/ref.cpp +++ /dev/null @@ -1,31 +0,0 @@ -#include "ref.hpp" - -#include "concepts.hpp" - - -using namespace intellect; -using namespace level1; -using namespace concepts; - -std::string ref::dump(ref skipmarkertype, ref skipmarkertarget) -{ - if (linked(skipmarkertype, skipmarkertarget)) { - return {}; - } - std::string ret; - for (auto & link : links()) { - if (link.first == concepts::name) { continue; } - if (ret.size() == 0) { - ret = name() + ":\n"; - } - ret += " " + link.first.name() + ": " + link.second.name() + "\n"; - } - link(skipmarkertype, skipmarkertarget); - for (auto & link : links()) { - if (link.first == skipmarkertype && link.second == skipmarkertarget) { - continue; - } - ret += link.second.dump(skipmarkertype, skipmarkertarget); - } - return ret; -} |