5 #ifndef _MGPosition_list_HH_
6 #define _MGPosition_list_HH_
13 #include "mg/Position.h"
121 ){
return add(
true,srf1,srf2,uvuv);}
131 iterator
begin(){
return m_Plist.begin();}
132 const_iterator
begin()
const{
return m_Plist.begin();}
138 iterator
end(){
return m_Plist.end();}
139 const_iterator
end()
const{
return m_Plist.end();}
142 int entries()
const{
return int(m_Plist.size());};
143 int size()
const{
return int(m_Plist.size());};
147 iterator
erase(iterator i){
return m_Plist.erase(i);}
166 bool in(
const MGBox& box, const_iterator&
id,
int n=0)
const;
167 bool in(
const MGBox& box, iterator&
id,
int n=0);
173 {m_Plist.insert(i, pos);};
177 bool isEmpty()
const{
return m_Plist.empty();};
178 bool empty()
const{
return m_Plist.empty();};
203 ){
return add(
false,srf1,srf2,uvuv);};
265 void reverse_order();
270 void sort_uv_space(
int id);
273 container_type m_Plist;
276 int dump_size()
const;
void push_back(const MGPosition &pos)
Definition: Position_list.h:72
MGCurve is an abstract class which represents a whole curve.
Definition: Curve.h:63
MGPosition & back()
Definition: Position_list.h:185
const MGPosition & first() const
Definition: Position_list.h:151
int size() const
Definition: Position_list.h:143
MGPosition & first()
Definition: Position_list.h:153
container_type::const_iterator const_iterator
Definition: Position_list.h:34
iterator end()
Get the pointer of the next of the last element of the m_Plist.
Definition: Position_list.h:138
MGIfstream is a class to read the serialized data generated by MGOfstream.
Definition: Ifstream.h:30
std::ostream & operator<<(std::ostream &ostrm, const MGisect &is)
Debug Function.
Definition: isect.h:95
bool isEmpty() const
Definition: Position_list.h:177
iterator begin()
Get the pointer of the first element of the m_Plist.
Definition: Position_list.h:131
const_iterator begin() const
Definition: Position_list.h:132
Defines a Box of any space dimendion.
Definition: Box.h:34
MGSSisect represents one intersection line of two surfaces.
Definition: SSisect.h:29
void push_front(const MGPosition &pos)
Definition: Position_list.h:195
Represent a positional data.
Definition: Position.h:28
iterator erase(iterator i)
Definition: Position_list.h:147
const MGPosition & last() const
Definition: Position_list.h:182
bool append(const MGFSurface &srf1, const MGFSurface &srf2, const MGPosition &uvuv)
Definition: Position_list.h:117
void insertAt(iterator i, const MGPosition &pos)
Definition: Position_list.h:172
bool empty() const
Definition: Position_list.h:178
MGFSurface is an abstract class to provide the comman interfaces to MGFace and MGSurface.
Definition: FSurface.h:33
MGOfstream is a class to serialize all of the subclasses of MGGel.
Definition: Ofstream.h:31
const MGPosition & front() const
Definition: Position_list.h:152
void pop_back()
Erase the last element of m_Plist if not null.
Definition: Position_list.h:188
MGPosition_list provides a list of Positions.
Definition: Position_list.h:27
container_type::iterator iterator
Definition: Position_list.h:33
bool prepend(const MGFSurface &srf1, const MGFSurface &srf2, const MGPosition &uvuv)
Definition: Position_list.h:199
MGPosition_list(const MGPosition &P)
Constructor of length 1.
Definition: Position_list.h:42
const MGPosition & back() const
Definition: Position_list.h:183
const_iterator end() const
Definition: Position_list.h:139
MGPosition_list()
Void constructor(Constructor of length 0).
Definition: Position_list.h:39
void prepend(const MGPosition &pos)
Adds the parameter to the beginning of the list.
Definition: Position_list.h:194
void pop_front()
Erase the first element of m_Plist if not null.
Definition: Position_list.h:191
void clear()
Clear all the elements in m_Plist.
Definition: Position_list.h:135
MGPosition & front()
Definition: Position_list.h:154
MGPosition & last()
Definition: Position_list.h:184
~MGPosition_list()
Definition: Position_list.h:57
std::list< MGPosition > container_type
Definition: Position_list.h:31
int entries() const
Returns the number of items that are in the list.
Definition: Position_list.h:142