5 #ifndef _MGLLisect_vector_HH_
6 #define _MGLLisect_vector_HH_
13 #include "topo/LLisect.h"
29 typedef std::vector<MGLLisect>::iterator
iterator;
58 iterator
begin(){
return m_llisects.begin();};
59 const_iterator
begin()
const{
return m_llisects.begin();};
61 iterator
end(){
return m_llisects.end();};
62 const_iterator
end()
const{
return m_llisects.end();};
65 int entries()
const{
return (
int)m_llisects.size();};
73 {m_llisects.insert(i, llisect);};
76 bool empty()
const{
return m_llisects.empty();};
83 std::vector<MGLLisect> m_llisects;
84 double m_error_square;
iterator end()
Definition: LLisect_vector.h:61
MGCurve is an abstract class which represents a whole curve.
Definition: Curve.h:63
MGLLisect & operator[](size_t i)
Definition: LLisect_vector.h:44
std::vector< MGLLisect >::const_iterator const_iterator
Definition: LLisect_vector.h:30
const MGLLisect & operator[](size_t i) const
Loop.
Definition: LLisect_vector.h:43
MGLLisect_vector defines a vector of MGLLisect.
Definition: LLisect_vector.h:23
bool empty() const
Return true if there are no items in the list, false otherwise.
Definition: LLisect_vector.h:76
std::ostream & operator<<(std::ostream &ostrm, const MGisect &is)
Debug Function.
Definition: isect.h:95
int entries() const
Return the number of items that are in the list.
Definition: LLisect_vector.h:65
To represent two loops intersection point.
Definition: LLisect.h:23
Interval of 1 dimension, i.e. MGInterval is a real line.
Definition: Interval.h:22
const MGLLisect & last() const
Definition: LLisect_vector.h:80
Represent a positional data.
Definition: Position.h:28
Is to represent a Loop's point.
Definition: LEPoint.h:28
std::vector< MGLLisect >::iterator LLiterator
Definition: LLisect_vector.h:27
MGLoop is a boundary of a face, a boundary of 2D manifold cell.
Definition: Loop.h:44
const_iterator end() const
Definition: LLisect_vector.h:62
std::vector< MGLLisect >::iterator iterator
Definition: LLisect_vector.h:29
const_iterator begin() const
Definition: LLisect_vector.h:59
void insertAt(LLiterator i, const MGLLisect &llisect)
Insert MGLLisect at the position i.
Definition: LLisect_vector.h:72
std::vector< MGLLisect >::const_iterator const_LLiterator
Definition: LLisect_vector.h:28
const MGLLisect & first() const
Definition: LLisect_vector.h:69
iterator begin()
Definition: LLisect_vector.h:58