|
VTK-m
2.3
|
A vtkm::Pair is essentially the same as an STL pair object except that the methods (constructors and operators) are defined to work in both the control and execution environments (whereas std::pair is likely to work only in the control environment).
More...
#include <Pair.h>
Public Types | |
| using | FirstType = T1 |
| The type of the first object. More... | |
| using | SecondType = T2 |
| The type of the second object. More... | |
| using | first_type = FirstType |
| The same as FirstType, but follows the naming convention of std::pair. More... | |
| using | second_type = SecondType |
| The same as SecondType, but follows the naming convention of std::pair. More... | |
Public Member Functions | |
| Pair ()=default | |
| Pair (const FirstType &firstSrc, const SecondType &secondSrc) | |
| Pair (FirstType &&firstSrc, SecondType &&secondSrc) noexcept(noexcept(FirstType{ std::declval< FirstType && >() }, SecondType{ std::declval< SecondType && >() })) | |
| Pair (const Pair &)=default | |
| Pair (Pair &&)=default | |
| template<typename U1 , typename U2 > | |
| Pair (const vtkm::Pair< U1, U2 > &src) | |
| template<typename U1 , typename U2 > | |
| Pair (vtkm::Pair< U1, U2 > &&src) noexcept(noexcept(U1{ std::declval< U1 && >() }, U2{ std::declval< U2 && >() })) | |
| template<typename U1 , typename U2 > | |
| Pair (const std::pair< U1, U2 > &src) | |
| template<typename U1 , typename U2 > | |
| Pair (std::pair< U1, U2 > &&src) noexcept(noexcept(U1{ std::declval< U1 && >() }, U2{ std::declval< U2 && >() })) | |
| vtkm::Pair< FirstType, SecondType > & | operator= (const vtkm::Pair< FirstType, SecondType > &src)=default |
| vtkm::Pair< FirstType, SecondType > & | operator= (vtkm::Pair< FirstType, SecondType > &&src)=default |
| bool | operator== (const vtkm::Pair< FirstType, SecondType > &other) const |
| bool | operator!= (const vtkm::Pair< FirstType, SecondType > &other) const |
| bool | operator< (const vtkm::Pair< FirstType, SecondType > &other) const |
| Tests ordering on the first object, and then on the second object if the first are equal. More... | |
| bool | operator> (const vtkm::Pair< FirstType, SecondType > &other) const |
| Tests ordering on the first object, and then on the second object if the first are equal. More... | |
| bool | operator<= (const vtkm::Pair< FirstType, SecondType > &other) const |
| Tests ordering on the first object, and then on the second object if the first are equal. More... | |
| bool | operator>= (const vtkm::Pair< FirstType, SecondType > &other) const |
| Tests ordering on the first object, and then on the second object if the first are equal. More... | |
Public Attributes | |
| FirstType | first |
| The pair's first object. More... | |
| SecondType | second |
| The pair's second object. More... | |
A vtkm::Pair is essentially the same as an STL pair object except that the methods (constructors and operators) are defined to work in both the control and execution environments (whereas std::pair is likely to work only in the control environment).
| using vtkm::Pair< T1, T2 >::first_type = FirstType |
The same as FirstType, but follows the naming convention of std::pair.
| using vtkm::Pair< T1, T2 >::FirstType = T1 |
The type of the first object.
| using vtkm::Pair< T1, T2 >::second_type = SecondType |
The same as SecondType, but follows the naming convention of std::pair.
| using vtkm::Pair< T1, T2 >::SecondType = T2 |
The type of the second object.
|
default |
|
inline |
|
inlinenoexcept |
|
default |
|
default |
|
inline |
|
inlinenoexcept |
|
inline |
|
inlinenoexcept |
|
inline |
|
inline |
Tests ordering on the first object, and then on the second object if the first are equal.
|
inline |
Tests ordering on the first object, and then on the second object if the first are equal.
|
default |
|
default |
|
inline |
|
inline |
Tests ordering on the first object, and then on the second object if the first are equal.
|
inline |
Tests ordering on the first object, and then on the second object if the first are equal.
| FirstType vtkm::Pair< T1, T2 >::first |
The pair's first object.
Note that this field breaks VTK-m's naming conventions to make vtkm::Pair more compatible with std::pair.
| SecondType vtkm::Pair< T1, T2 >::second |
The pair's second object.
Note that this field breaks VTK-m's naming conventions to make vtkm::Pair more compatible with std::pair.
1.8.17