Template Class match_t

Class Documentation

template<typename type>
class match_t

This class represents a match between two types.

Note

Future work: later on, we can have a confidence level associated with a match.

Public Types

using vector = vector_t<match_t>

Typedef for vector of matches_t.

Public Functions

inline match_t(type first_ = type(), type second_ = type())

Creates a new match_t object.

Parameters:
  • first_ – First endpoint of the association.

  • second_ – Second endpoint matched with first_.

inline type first_element() const

Getter for the first element of the match.

Returns:

First element of the match.

inline type second_element() const

Getter for the second element of the match.

Returns:

Second element of the match.

Private Members

type _first

First element of the match.

type _second

Second element of the match.