shape_doc 0.1
point_set< C, V > Class Template Reference

#include <point_set.hpp>

Inheritance diagram for point_set< C, V >:
SHAPE_OFV

List of all members.

Public Types

Public Member Functions


Detailed Description

template<class C, class V = default_env>
class mmx::shape::point_set< C, V >

Definition at line 39 of file point_set.hpp.


Member Typedef Documentation

typedef point<C,REF_OF(V)> Point

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.


Constructor & Destructor Documentation

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.

{}

Member Function Documentation

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() ; }
point_set<C,V>& operator<< ( const Point p) [inline]

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) ;
}
point_set<C,V>& push ( const Point p) [inline]

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 ( )
unsigned size ( void  ) const [inline]

Definition at line 73 of file point_set.hpp.

{ return m_vertices.size() ; }
Point& vertex ( unsigned  i) [inline]

Definition at line 68 of file point_set.hpp.

                            {
    return m_vertices[i] ;
  }
const Point& vertex ( unsigned  i) const [inline]

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 ; }

The documentation for this class was generated from the following file: