shape_doc 0.1
|
#include <point_set.hpp>
Definition at line 39 of file point_set.hpp.
Reimplemented in curve_pl< C, V >, edge_set< C, V >, and edge_set< C, REF_OF(V) >.
Definition at line 43 of file point_set.hpp.
typedef Seq< Point >::const_iterator PointConstIterator |
Definition at line 45 of file point_set.hpp.
typedef Seq< Point >::iterator PointIterator |
Definition at line 44 of file point_set.hpp.
point_set | ( | void | ) |
Definition at line 81 of file point_set.hpp.
: Shape() {}
point_set | ( | unsigned | n | ) |
Definition at line 83 of file point_set.hpp.
: Shape(), m_vertices(n) {}
~point_set | ( | void | ) |
Definition at line 85 of file point_set.hpp.
{}
PointConstIterator begin | ( | ) | const [inline] |
Definition at line 59 of file point_set.hpp.
{ return m_vertices.begin() ; }
PointIterator begin | ( | ) | [inline] |
Definition at line 60 of file point_set.hpp.
{ return m_vertices.begin() ; }
void clear | ( | void | ) |
Reimplemented in curve_pl< C, V >, edge_set< C, V >, and edge_set< C, REF_OF(V) >.
Definition at line 97 of file point_set.hpp.
{ m_vertices.resize(0) ; }
PointConstIterator end | ( | ) | const [inline] |
Definition at line 61 of file point_set.hpp.
{ return m_vertices.end(); }
PointIterator end | ( | ) | [inline] |
Definition at line 62 of file point_set.hpp.
{ return m_vertices.end(); }
unsigned nbv | ( | void | ) | const [inline] |
Definition at line 72 of file point_set.hpp.
{ return m_vertices.size() ; }
Definition at line 75 of file point_set.hpp.
{ push_back(p); return *this; }
void pop | ( | Point * | vertex | ) |
Reimplemented in curve_pl< C, V >, edge_set< C, V >, and edge_set< C, REF_OF(V) >.
Definition at line 93 of file point_set.hpp.
{
// remove(m_vertices, vertex) ;
}
Definition at line 76 of file point_set.hpp.
{ push_back(p); return *this; }
void push_back | ( | const Point & | p | ) |
Definition at line 88 of file point_set.hpp.
Referenced by point_set< C, REF_OF(REF_OF(V)) >::operator<<(), and point_set< C, REF_OF(REF_OF(V)) >::push().
{ m_vertices.push_back(p) ; }
typedef SHAPE_OF | ( | V | ) |
unsigned size | ( | void | ) | const [inline] |
Definition at line 73 of file point_set.hpp.
{ return m_vertices.size() ; }
Definition at line 68 of file point_set.hpp.
{
return m_vertices[i] ;
}
Definition at line 64 of file point_set.hpp.
{
return m_vertices[i] ;
}
Seq<Point>& vertices | ( | void | ) | [inline] |
Definition at line 57 of file point_set.hpp.
{ return m_vertices ; }