DeSiGNAR  0.5a
Data Structures General Library
Classes | Public Types | Public Member Functions | List of all members
Designar::GenPolygon< PointT > Class Template Reference

#include <polygon.H>

Classes

class  SegmentIterator
 
class  VertexIterator
 

Public Types

using PointType = PointT
 
using SegmentType = GenSegment< PointT >
 

Public Member Functions

 GenPolygon ()
 
 GenPolygon (const std::initializer_list< PointT > &)
 
 GenPolygon (const GenPolygon &p)
 
 GenPolygon (GenPolygon &&p)
 
 ~GenPolygon ()
 
GenPolygonoperator= (const GenPolygon &p)
 
GenPolygonoperator= (GenPolygon &&p)
 
void swap (GenPolygon &p)
 
void clear ()
 
void add_vertex (const PointT &p)
 
void add_vertex (PointT &&p)
 
PointT & get_first_vertex ()
 
const PointT & get_first_vertex () const
 
PointT & get_last_vertex ()
 
const PointT & get_last_vertex () const
 
SegmentType get_first_segment () const
 
SegmentType get_last_segment () const
 
bool is_empty () const
 
nat_t size () const
 
VertexIterator vertices_begin ()
 
VertexIterator vertices_begin () const
 
VertexIterator vertices_end ()
 
VertexIterator vertices_end () const
 
SegmentIterator segments_begin ()
 
SegmentIterator segments_begin () const
 
SegmentIterator segments_end ()
 
SegmentIterator segments_end () const
 
template<class Op >
void for_each_vertex (Op &op) const
 
template<class Op >
void for_each_vertex (Op &&op=Op()) const
 
template<class Pred >
bool all_vertex (Pred &pred) const
 
template<class Pred >
bool all_vertex (Pred &&pred=Pred()) const
 
template<class Pred >
bool exists_vertex (Pred &pred) const
 
template<class Pred >
bool exists_vertex (Pred &&pred=Pred()) const
 
template<class Pred >
bool none_vertex (Pred &pred) const
 
template<class Pred >
bool none_vertex (Pred &&pred=Pred()) const
 
template<class Op >
void for_each_segment (Op &op) const
 
template<class Op >
void for_each_segment (Op &&op=Op()) const
 
template<class Pred >
bool all_segment (Pred &pred) const
 
template<class Pred >
bool all_segment (Pred &&pred=Pred()) const
 
template<class Pred >
bool exists_segment (Pred &pred) const
 
template<class Pred >
bool exists_segment (Pred &&pred=Pred()) const
 
template<class Pred >
bool none_segment (Pred &pred) const
 
template<class Pred >
bool none_segment (Pred &&pred=Pred()) const
 

Member Typedef Documentation

template<typename PointT>
using Designar::GenPolygon< PointT >::PointType = PointT
template<typename PointT>
using Designar::GenPolygon< PointT >::SegmentType = GenSegment<PointT>

Constructor & Destructor Documentation

template<typename PointT>
Designar::GenPolygon< PointT >::GenPolygon ( )
inline
template<class PointT>
Designar::GenPolygon< PointT >::GenPolygon ( const std::initializer_list< PointT > &  l)
template<typename PointT>
Designar::GenPolygon< PointT >::GenPolygon ( const GenPolygon< PointT > &  p)
inline
template<typename PointT>
Designar::GenPolygon< PointT >::GenPolygon ( GenPolygon< PointT > &&  p)
inline
template<typename PointT>
Designar::GenPolygon< PointT >::~GenPolygon ( )
inline

Member Function Documentation

template<typename PointT>
void Designar::GenPolygon< PointT >::add_vertex ( const PointT &  p)
inline
template<typename PointT>
void Designar::GenPolygon< PointT >::add_vertex ( PointT &&  p)
inline
template<typename PointT>
template<class Pred >
bool Designar::GenPolygon< PointT >::all_segment ( Pred &  pred) const
inline
template<typename PointT>
template<class Pred >
bool Designar::GenPolygon< PointT >::all_segment ( Pred &&  pred = Pred()) const
inline
template<typename PointT>
template<class Pred >
bool Designar::GenPolygon< PointT >::all_vertex ( Pred &  pred) const
inline
template<typename PointT>
template<class Pred >
bool Designar::GenPolygon< PointT >::all_vertex ( Pred &&  pred = Pred()) const
inline
template<class PointT >
void Designar::GenPolygon< PointT >::clear ( )
template<typename PointT>
template<class Pred >
bool Designar::GenPolygon< PointT >::exists_segment ( Pred &  pred) const
inline
template<typename PointT>
template<class Pred >
bool Designar::GenPolygon< PointT >::exists_segment ( Pred &&  pred = Pred()) const
inline
template<typename PointT>
template<class Pred >
bool Designar::GenPolygon< PointT >::exists_vertex ( Pred &  pred) const
inline
template<typename PointT>
template<class Pred >
bool Designar::GenPolygon< PointT >::exists_vertex ( Pred &&  pred = Pred()) const
inline
template<typename PointT>
template<class Op >
void Designar::GenPolygon< PointT >::for_each_segment ( Op &  op) const
inline
template<typename PointT>
template<class Op >
void Designar::GenPolygon< PointT >::for_each_segment ( Op &&  op = Op()) const
inline
template<typename PointT>
template<class Op >
void Designar::GenPolygon< PointT >::for_each_vertex ( Op &  op) const
inline
template<typename PointT>
template<class Op >
void Designar::GenPolygon< PointT >::for_each_vertex ( Op &&  op = Op()) const
inline
template<typename PointT>
SegmentType Designar::GenPolygon< PointT >::get_first_segment ( ) const
inline
template<typename PointT>
PointT& Designar::GenPolygon< PointT >::get_first_vertex ( )
inline
template<typename PointT>
const PointT& Designar::GenPolygon< PointT >::get_first_vertex ( ) const
inline
template<typename PointT>
SegmentType Designar::GenPolygon< PointT >::get_last_segment ( ) const
inline
template<typename PointT>
PointT& Designar::GenPolygon< PointT >::get_last_vertex ( )
inline
template<typename PointT>
const PointT& Designar::GenPolygon< PointT >::get_last_vertex ( ) const
inline
template<typename PointT>
bool Designar::GenPolygon< PointT >::is_empty ( ) const
inline
template<typename PointT>
template<class Pred >
bool Designar::GenPolygon< PointT >::none_segment ( Pred &  pred) const
inline
template<typename PointT>
template<class Pred >
bool Designar::GenPolygon< PointT >::none_segment ( Pred &&  pred = Pred()) const
inline
template<typename PointT>
template<class Pred >
bool Designar::GenPolygon< PointT >::none_vertex ( Pred &  pred) const
inline
template<typename PointT>
template<class Pred >
bool Designar::GenPolygon< PointT >::none_vertex ( Pred &&  pred = Pred()) const
inline
template<typename PointT>
GenPolygon& Designar::GenPolygon< PointT >::operator= ( const GenPolygon< PointT > &  p)
inline
template<typename PointT>
GenPolygon& Designar::GenPolygon< PointT >::operator= ( GenPolygon< PointT > &&  p)
inline
template<typename PointT>
SegmentIterator Designar::GenPolygon< PointT >::segments_begin ( )
inline
template<typename PointT>
SegmentIterator Designar::GenPolygon< PointT >::segments_begin ( ) const
inline
template<typename PointT>
SegmentIterator Designar::GenPolygon< PointT >::segments_end ( )
inline
template<typename PointT>
SegmentIterator Designar::GenPolygon< PointT >::segments_end ( ) const
inline
template<typename PointT>
nat_t Designar::GenPolygon< PointT >::size ( ) const
inline
template<typename PointT>
void Designar::GenPolygon< PointT >::swap ( GenPolygon< PointT > &  p)
inline
template<typename PointT>
VertexIterator Designar::GenPolygon< PointT >::vertices_begin ( )
inline
template<typename PointT>
VertexIterator Designar::GenPolygon< PointT >::vertices_begin ( ) const
inline
template<typename PointT>
VertexIterator Designar::GenPolygon< PointT >::vertices_end ( )
inline
template<typename PointT>
VertexIterator Designar::GenPolygon< PointT >::vertices_end ( ) const
inline

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