A pair of sites. More...
#include <site_pair.hh>
Public Types | |
typedef Object< void > | category |
typedef P::coord | coord |
typedef site_pair< P > | exact_t |
Public Member Functions | |
const P & | first () const |
Return the first site. | |
const util::ord_pair< P > & | pair () const |
Return the underlying pair. | |
const P & | second () const |
Return the second site. | |
site_pair () | |
site_pair (const P &first, const P &second) | |
Private Attributes | |
util::ord_pair< P > | pair_ |
A pair of sites.
It can be used as site.
typedef Object<void> mln::Object< site_pair< P > >::category [inherited] |
typedef P ::coord mln::util::site_pair< P >::coord |
typedef site_pair< P > mln::Object< site_pair< P > >::exact_t [inherited] |
mln::util::site_pair< P >::site_pair | ( | ) |
mln::util::site_pair< P >::site_pair | ( | const P & | first, | |
const P & | second | |||
) |
const P & mln::util::site_pair< P >::first | ( | ) | const [inline] |
Return the first site.
References mln::util::ord_pair< T >::first(), and mln::util::site_pair< P >::pair_.
const util::ord_pair< P > & mln::util::site_pair< P >::pair | ( | ) | const [inline] |
Return the underlying pair.
References mln::util::site_pair< P >::pair_.
Referenced by mln::util::operator==().
const P & mln::util::site_pair< P >::second | ( | ) | const [inline] |
Return the second site.
References mln::util::site_pair< P >::pair_, and mln::util::ord_pair< T >::second().
util::ord_pair<P> mln::util::site_pair< P >::pair_ [private] |