Boost  v1.57.0
doxygen for www.boost.org
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
boost::geometry::side_info Class Reference

Class side_info: small class wrapping for sides (-1,0,1) More...

#include <side_info.hpp>

Public Member Functions

 side_info (int side_a1=0, int side_a2=0, int side_b1=0, int side_b2=0)
 
template<int Which>
void set (int first, int second)
 
template<int Which, int Index>
void correct_to_zero ()
 
template<int Which, int Index>
int get () const
 
template<int Which>
bool same () const
 
bool collinear () const
 
bool crossing () const
 
bool touching () const
 
template<int Which>
bool one_touching () const
 
bool meeting () const
 
template<int Which>
bool zero () const
 
template<int Which>
bool one_zero () const
 
bool one_of_all_zero () const
 
template<int Which>
int zero_index () const
 
void reverse ()
 

Public Attributes

std::pair< int, int > sides [2]
 

Detailed Description

Class side_info: small class wrapping for sides (-1,0,1)

Constructor & Destructor Documentation

boost::geometry::side_info::side_info ( int  side_a1 = 0,
int  side_a2 = 0,
int  side_b1 = 0,
int  side_b2 = 0 
)
inline

References sides.

Member Function Documentation

bool boost::geometry::side_info::collinear ( ) const
inline
template<int Which, int Index>
void boost::geometry::side_info::correct_to_zero ( )
inline

References sides.

bool boost::geometry::side_info::crossing ( ) const
inline

References sides.

template<int Which, int Index>
int boost::geometry::side_info::get ( ) const
inline
bool boost::geometry::side_info::meeting ( ) const
inline
bool boost::geometry::side_info::one_of_all_zero ( ) const
inline
template<int Which>
bool boost::geometry::side_info::one_touching ( ) const
inline
template<int Which>
bool boost::geometry::side_info::one_zero ( ) const
inline
void boost::geometry::side_info::reverse ( )
inline

References sides, and boost::swap.

template<int Which>
bool boost::geometry::side_info::same ( ) const
inline
template<int Which>
void boost::geometry::side_info::set ( int  first,
int  second 
)
inline
bool boost::geometry::side_info::touching ( ) const
inline
template<int Which>
bool boost::geometry::side_info::zero ( ) const
inline

References sides.

template<int Which>
int boost::geometry::side_info::zero_index ( ) const
inline

References sides.

Member Data Documentation

std::pair<int, int> boost::geometry::side_info::sides[2]

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