5 #ifndef _MGKnotArray_HH_
6 #define _MGKnotArray_HH_
56 {
return m_ktArray.operator[](pos);}
58 {
return m_ktArray.operator[](pos);}
71 std::vector<MGKnot>::iterator
begin(){
return m_ktArray.begin();};
72 std::vector<MGKnot>::const_iterator
begin()
const{
return m_ktArray.begin();};
75 void clear(){m_ktArray.clear();};
78 std::vector<MGKnot>::iterator
end(){
return m_ktArray.end();};
79 std::vector<MGKnot>::const_iterator
end()
const{
return m_ktArray.end();};
88 int length()
const {
return int(m_ktArray.size());};
89 int size()
const{
return int(m_ktArray.size());};
96 int dump_size()
const;
105 std::vector<MGKnot> m_ktArray;
MGKnotArray()
Dummy constructor.
Definition: KnotArray.h:39
void clear()
Clear all the elements in m_CCilist.
Definition: KnotArray.h:75
const MGKnot & back() const
Get the last element in the vector.
Definition: KnotArray.h:67
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
std::vector< MGKnot >::const_iterator begin() const
Definition: KnotArray.h:72
std::vector< MGKnot >::iterator end()
Obtain the iterator of the first element.
Definition: KnotArray.h:78
int length() const
Return the number of items that are in the list.
Definition: KnotArray.h:88
MGKnot & operator[](int pos)
Definition: KnotArray.h:57
std::vector< MGKnot >::iterator begin()
Obtain the iterator of the first element.
Definition: KnotArray.h:71
~MGKnotArray()
Destructor.
Definition: KnotArray.h:50
std::vector< MGKnot >::const_iterator end() const
Definition: KnotArray.h:79
const MGKnot & operator[](int pos) const
[ ] reference.
Definition: KnotArray.h:55
MGOfstream is a class to serialize all of the subclasses of MGGel.
Definition: Ofstream.h:31
int size() const
Definition: KnotArray.h:89
const MGKnot & front() const
Get the first element in the vector.
Definition: KnotArray.h:82
void push_back(const MGKnot &knot)
Definition: KnotArray.h:85
Defines Array of Knots.
Definition: KnotArray.h:26
MGKnot & back()
Definition: KnotArray.h:68
Defines knot value and its multiplicity.
Definition: Knot.h:20
MGKnot & front()
Definition: KnotArray.h:83