5 #ifndef _MGSSisect_list_HH_
6 #define _MGSSisect_list_HH_
13 #include "mg/SSisect.h"
43 : m_surface1(s1), m_surface2(s2){;};
84 SSiterator
begin(){
return m_SSilist.begin();}
85 const_SSiterator
begin()
const{
return m_SSilist.begin();}
88 void clear(){m_SSilist.clear();}
91 SSiterator
end(){
return m_SSilist.end();}
92 const_SSiterator
end()
const{
return m_SSilist.end();}
99 SSiterator find_common(
const MGSSisect& ssi2);
108 int entries()
const{
return int(m_SSilist.size());};
109 int size()
const{
return int(m_SSilist.size());};
113 SSiterator
erase(SSiterator i){
return m_SSilist.erase(i);}
125 {m_SSilist.insert(i, isect);};
129 bool isEmpty()
const{
return m_SSilist.empty();};
130 bool empty()
const{
return m_SSilist.empty();};
167 container_type m_SSilist;
void prepend(const MGSSisect &isect)
Definition: SSisect_list.h:146
void pop_back()
Erase the last element of m_SSilist if not null.
Definition: SSisect_list.h:139
MGCurve is an abstract class which represents a whole curve.
Definition: Curve.h:63
int size() const
Definition: SSisect_list.h:109
SSiterator erase(SSiterator i)
Definition: SSisect_list.h:113
SSiterator end()
Get the pointer of the next of the last element of the m_SSilist.
Definition: SSisect_list.h:91
const MGFSurface * surface1() const
Return the pointer to surface1.
Definition: SSisect_list.h:102
container_type::iterator iterator
Definition: SSisect_list.h:35
~MGSSisect_list()
Definition: SSisect_list.h:49
const_SSiterator begin() const
Definition: SSisect_list.h:85
void clear()
Clear all the elements in m_SSilist.
Definition: SSisect_list.h:88
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: SSisect_list.h:108
const MGFSurface * surface2() const
Return the pointer to surface2.
Definition: SSisect_list.h:105
SSiterator begin()
Get the pointer of the first element of the m_SSilist.
Definition: SSisect_list.h:84
container_type::const_iterator const_SSiterator
Definition: SSisect_list.h:33
bool isEmpty() const
Definition: SSisect_list.h:129
std::list< MGSSisect > container_type
Definition: SSisect_list.h:30
void push_back(const MGSSisect &isect)
Definition: SSisect_list.h:61
MGSSisect represents one intersection line of two surfaces.
Definition: SSisect.h:29
const MGSSisect & front() const
Definition: SSisect_list.h:118
void push_front(const MGSSisect &isect)
Definition: SSisect_list.h:147
MGSSisect_list defines linked list of MGSSisect.
Definition: SSisect_list.h:26
container_type::iterator SSiterator
Definition: SSisect_list.h:32
const MGSSisect & first() const
Definition: SSisect_list.h:117
MGFSurface is an abstract class to provide the comman interfaces to MGFace and MGSurface.
Definition: FSurface.h:33
void pop_front()
Erase the first element of m_SSilist if not null.
Definition: SSisect_list.h:142
const_SSiterator end() const
Definition: SSisect_list.h:92
container_type::const_iterator const_iterator
Definition: SSisect_list.h:36
bool empty() const
Definition: SSisect_list.h:130
void insertAt(SSiterator i, const MGSSisect &isect)
Definition: SSisect_list.h:124
const MGSSisect & back() const
Definition: SSisect_list.h:135
MGSSisect_list(const MGFSurface *s1=NULL, const MGFSurface *s2=NULL)
Definition: SSisect_list.h:42
MGSSRELATION
Relation of Surface and Surface(SurfaceとSurfaceの交線の関係).
Definition: MGCL.h:210
MGSSisect & back()
Definition: SSisect_list.h:136
MGSSisect & front()
Definition: SSisect_list.h:119
const MGSSisect & last() const
Definition: SSisect_list.h:134