diff options
author | olpc user <olpc@xo-5d-f7-86.localdomain> | 2020-01-10 14:55:19 -0800 |
---|---|---|
committer | olpc user <olpc@xo-5d-f7-86.localdomain> | 2020-01-10 14:55:19 -0800 |
commit | c8bb547bea279af2bb48c13260f98aa8add07131 (patch) | |
tree | 7f64265d514dc50427d2e5d8a70e09a46927dfbd /starts/meaning-vm/level-0/ref.cpp | |
parent | 5601d1f3324c30651ad3f264ac2d6e7f12ea8b34 (diff) | |
download | standingwithresilience-c8bb547bea279af2bb48c13260f98aa8add07131.tar.gz standingwithresilience-c8bb547bea279af2bb48c13260f98aa8add07131.zip |
move intellect-framework-from-internet into folder
Diffstat (limited to 'starts/meaning-vm/level-0/ref.cpp')
-rw-r--r-- | starts/meaning-vm/level-0/ref.cpp | 33 |
1 files changed, 0 insertions, 33 deletions
diff --git a/starts/meaning-vm/level-0/ref.cpp b/starts/meaning-vm/level-0/ref.cpp deleted file mode 100644 index 513d3ce..0000000 --- a/starts/meaning-vm/level-0/ref.cpp +++ /dev/null @@ -1,33 +0,0 @@ -#include "ref.hpp" -#include "concept.hpp" -#include "errors.hpp" -#include "memorystore.hpp" - -#include <iomanip> -#include <ostream> -#include <sstream> - -using namespace intellect::level0; -using namespace concepts; - -std::string ref::dump(ref skipmarkertype, ref skipmarkertarget) -{ - if (self.linked(skipmarkertype, skipmarkertarget)) { - return {}; - } - std::stringstream ss; - ss << std::hex << (size_t)ptr() << ":" << std::endl; - for (auto & link : self.links()) { - if (link.first.linked(allocator(), level0allocations())) { continue; } - ss << " " << (size_t)link.first.ptr() << ": " << (size_t)link.second.ptr() << std::endl; - } - self.link(skipmarkertype, skipmarkertarget); - for (auto & link : self.links()) { - if (link.first.linked(allocator(), level0allocations())) { continue; } - if (link.first == skipmarkertype && link.second == skipmarkertarget) { - continue; - } - ss << link.second.dump(skipmarkertype, skipmarkertarget); - } - return ss.str(); -} |