MGCL V10  V10
MGCL V10
 全て クラス 名前空間 関数 変数 型定義 列挙型 列挙値 フレンド グループ ページ
LSPoint_vector.h
1 /********************************************************************/
2 /* Copyright (c) 2015 DG Technologies Inc. and Yuzi Mizuno */
3 /* All rights reserved. */
4 /********************************************************************/
5 #ifndef _MGLSPoint_vector_HH_
6 #define _MGLSPoint_vector_HH_
7 
12 #include <vector>
13 #include "topo/LSPoint.h"
14 
16 
18 class MG_DLL_DECLR MGLSPoint_vector{
19 
20 public:
21 
22 typedef std::vector<MGLSPoint>::iterator LSiterator;
23 typedef std::vector<MGLSPoint>::const_iterator const_LSiterator;
24 
25 public:
26 
28 MG_DLL_DECLR friend std::ostream& operator<< (std::ostream&, const MGLSPoint_vector& );
29 
32 
34 
35 MGLSPoint& operator[](size_t i){return m_lspoints[i];};
36 const MGLSPoint& operator[](size_t i)const{return m_lspoints[i];};
37 
39 bool append(const MGLSPoint& lsp);
40 
42 void append(const MGLSPoint_vector& vec);
43 
45 int entries() const{return int(m_lspoints.size());};
46 int size() const{return int(m_lspoints.size());};
47 
50 const MGLSPoint& front() const{return m_lspoints.front();};
51 
53 void insertAt(LSiterator i, const MGLSPoint& llisect)
54 {m_lspoints.insert(i, llisect);};
55 
57 bool empty() const{return m_lspoints.empty();};
58 
61 const MGLSPoint& back() const{return m_lspoints.back();};
62 private:
63  std::vector<MGLSPoint> m_lspoints;
64 
65 };
66  // end of IsectContainer group
68 #endif
std::vector< MGLSPoint >::const_iterator const_LSiterator
Definition: LSPoint_vector.h:23
MGLSPoint & operator[](size_t i)
Member Function.
Definition: LSPoint_vector.h:35
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: LSPoint_vector.h:45
const MGLSPoint & back() const
Definition: LSPoint_vector.h:61
MGLSPoint_vector()
Definition: LSPoint_vector.h:31
MGLSPoint is to express a loop and a surface intersection point.
Definition: LSPoint.h:25
std::vector< MGLSPoint >::iterator LSiterator
Definition: LSPoint_vector.h:22
const MGLSPoint & operator[](size_t i) const
Definition: LSPoint_vector.h:36
MGLSPoint_vector defines a vector of MGLSPoint.
Definition: LSPoint_vector.h:18
void insertAt(LSiterator i, const MGLSPoint &llisect)
Insert MGLSPoint at the position i.
Definition: LSPoint_vector.h:53
const MGLSPoint & front() const
Definition: LSPoint_vector.h:50
int size() const
Definition: LSPoint_vector.h:46
bool empty() const
Return true if there are no items in the list, false otherwise.
Definition: LSPoint_vector.h:57