-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/develop'
- Loading branch information
Showing
723 changed files
with
9,173 additions
and
59,118 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
// Copyright (C) 2012-2015 Leap Motion, Inc. All rights reserved. | ||
#pragma once | ||
#include "auto_arg.h" | ||
#include <typeinfo> | ||
|
||
/// <summary> | ||
/// AutoFilter argument disposition | ||
/// </summary> | ||
struct AutoFilterDescriptorInput { | ||
AutoFilterDescriptorInput(void) : | ||
is_input(false), | ||
is_output(false), | ||
is_shared(false), | ||
is_multi(false), | ||
ti(nullptr), | ||
tshift(0) | ||
{} | ||
|
||
template<class T> | ||
AutoFilterDescriptorInput(auto_arg<T>*) : | ||
is_input(auto_arg<T>::is_input), | ||
is_output(auto_arg<T>::is_output), | ||
is_shared(auto_arg<T>::is_shared), | ||
is_multi(auto_arg<T>::is_multi), | ||
ti(&typeid(typename auto_arg<T>::id_type)), | ||
tshift(auto_arg<T>::tshift) | ||
{} | ||
|
||
const bool is_input; | ||
const bool is_output; | ||
const bool is_shared; | ||
const bool is_multi; | ||
const std::type_info* const ti; | ||
const int tshift; | ||
|
||
operator bool(void) const { | ||
return !!ti; | ||
} | ||
|
||
template<class T> | ||
struct rebind { | ||
operator AutoFilterDescriptorInput() { | ||
return AutoFilterDescriptorInput((auto_arg<T>*)nullptr); | ||
} | ||
}; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.