From 37e364b2c6cc7487a1c888d256a73e5337bb7189 Mon Sep 17 00:00:00 2001 From: Ash Wolf Date: Wed, 14 Jun 2023 00:50:34 +0100 Subject: initial commit --- src/T2DLL/T2PeopleLinkIterator.cpp | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 src/T2DLL/T2PeopleLinkIterator.cpp (limited to 'src/T2DLL/T2PeopleLinkIterator.cpp') 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() { +} -- cgit v1.2.3