summaryrefslogtreecommitdiff
path: root/src/T2DLL/T2PeopleLinkIterator.cpp
diff options
context:
space:
mode:
authorAsh Wolf <ninji@wuffs.org>2023-06-14 00:50:34 +0100
committerAsh Wolf <ninji@wuffs.org>2023-06-14 00:50:34 +0100
commit37e364b2c6cc7487a1c888d256a73e5337bb7189 (patch)
treeeaf6e857382eef16c2dd940eb4125536fbe068bd /src/T2DLL/T2PeopleLinkIterator.cpp
downloadt2win-37e364b2c6cc7487a1c888d256a73e5337bb7189.tar.gz
t2win-37e364b2c6cc7487a1c888d256a73e5337bb7189.zip
initial commit
Diffstat (limited to '')
-rw-r--r--src/T2DLL/T2PeopleLinkIterator.cpp28
1 files changed, 28 insertions, 0 deletions
diff --git a/src/T2DLL/T2PeopleLinkIterator.cpp b/src/T2DLL/T2PeopleLinkIterator.cpp
new file mode 100644
index 0000000..96ad5d8
--- /dev/null
+++ b/src/T2DLL/T2PeopleLinkIterator.cpp
@@ -0,0 +1,28 @@
+#include "T2PeopleLinkIterator.h"
+
+T2PeopleLinkIterator::T2PeopleLinkIterator(T2People* people)
+ : mFirst(people)
+ , mCurrent(people)
+{
+}
+
+/*virtual*/ T2PeopleLinkIterator::~T2PeopleLinkIterator() {
+}
+
+int T2PeopleLinkIterator::Current(T2People** pPeople) {
+ if (mCurrent) {
+ *pPeople = mCurrent;
+ return true;
+ }
+ return false;
+}
+
+int T2PeopleLinkIterator::Prev(T2People** pPeople) {
+ // TODO once T2Matter, T2People is done
+}
+
+int T2PeopleLinkIterator::Next(T2People** pPeople) {
+}
+
+void T2PeopleLinkIterator::Reset() {
+}