Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add returns filter #1853

Merged
merged 4 commits into from
Mar 21, 2018
Merged

Add returns filter #1853

merged 4 commits into from
Mar 21, 2018

Conversation

chambbj
Copy link
Member

@chambbj chambbj commented Mar 19, 2018

Users can create PointViews that contain first, intermediate, last, and only returns (based on ReturnNumber and NumberOfReturns).

onlyView->appendPoint(*inView.get(), idx);
}

if (firstView->size())
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It seems like if you've asked for certain sets, you should get them, regardless of whether they're empty or not. I think this will omit the intermediate view, even if you've asked for it, as an example.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm happy to make that change. I'm struggling to come up with a scenario in which an empty PointView would be useful. Would it be more useful to log a warning, at least acknowledging the request and explaining why it was not fulfilled?

#include <map>
#include <string>

extern "C" int32_t ReturnsFilter_ExitFunc();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This boilerplate is no longer necessary.

static const int returnLast = 4;
static const int returnOnly = 8;

static void* create();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This create(), destroy() boilerplate is no longer necessary.

virtual void prepared(PointTableRef table);
virtual PointViewSet run(PointViewPtr view);

ReturnsFilter& operator=(const ReturnsFilter&); // not implemented
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You can probably explictly delete these now. I think Windows is OK with it.

@chambbj chambbj mentioned this pull request Mar 20, 2018
@chambbj chambbj merged commit badd705 into master Mar 21, 2018
@chambbj chambbj deleted the returns-filter branch March 21, 2018 11:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants