stdex
Additional custom or not Standard C++ covered algorithms
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
stdex::mapping< T > Struct Template Reference

Maps index in source string to index in destination string. More...

#include <stdex/mapping.hpp>

Public Member Functions

 mapping ()
 Constructs a zero to zero mapping.
 
 mapping (T x)
 Constructs an id mapping.
 
 mapping (T _from, T _to)
 Constructs a mapping.
 
bool operator== (const mapping &other) const
 Are mappings identical?
 
bool operator!= (const mapping &other) const
 Are mappings different?
 

Public Attributes

from
 
to
 

Detailed Description

template<class T>
struct stdex::mapping< T >

Maps index in source string to index in destination string.

Constructor & Destructor Documentation

◆ mapping() [1/2]

template<class T >
stdex::mapping< T >::mapping ( x)
inline

Constructs an id mapping.

Parameters
[in]xMapping from and to value

◆ mapping() [2/2]

template<class T >
stdex::mapping< T >::mapping ( _from,
_to 
)
inline

Constructs a mapping.

Parameters
[in]_fromMapping from value
[in]_toMapping to value

Member Function Documentation

◆ operator!=()

template<class T >
bool stdex::mapping< T >::operator!= ( const mapping< T > &  other) const
inline

Are mappings different?

Parameters
[in]otherOther mapping to compare against
Returns
true if mappings are different or false otherwise

◆ operator==()

template<class T >
bool stdex::mapping< T >::operator== ( const mapping< T > &  other) const
inline

Are mappings identical?

Parameters
[in]otherOther mapping to compare against
Returns
true if mappings are identical or false otherwise

The documentation for this struct was generated from the following file: