MGCL V10
V10
MGCL V10
|
MGSSisect_list defines linked list of MGSSisect. [詳解]
公開型 | |
typedef std::list< MGSSisect > | container_type |
typedef container_type::iterator | SSiterator |
typedef container_type::const_iterator | const_SSiterator |
typedef container_type::iterator | iterator |
typedef container_type::const_iterator | const_iterator |
公開メンバ関数 | |
MGSSisect_list (const MGFSurface *s1=NULL, const MGFSurface *s2=NULL) | |
~MGSSisect_list () | |
void | append (const MGSSisect &isect) |
void | push_back (const MGSSisect &isect) |
void | append (const MGSSisect_list &isectlist) |
void | append (MGCurve *iline, MGCurve *param1, MGCurve *param2, const MGSSRELATION r1=MGSSREL_UNKNOWN) |
void | append (const MGCurve &iline, const MGCurve ¶m1, const MGCurve ¶m2, const MGSSRELATION r1=MGSSREL_UNKNOWN) |
SSiterator | begin () |
Get the pointer of the first element of the m_SSilist. [詳解] | |
const_SSiterator | begin () const |
void | clear () |
Clear all the elements in m_SSilist. [詳解] | |
SSiterator | end () |
Get the pointer of the next of the last element of the m_SSilist. [詳解] | |
const_SSiterator | end () const |
SSiterator | find_common (const MGSSisect &ssi2) |
const MGFSurface * | surface1 () const |
Return the pointer to surface1. [詳解] | |
const MGFSurface * | surface2 () const |
Return the pointer to surface2. [詳解] | |
int | entries () const |
Return the number of items that are in the list. [詳解] | |
int | size () const |
SSiterator | erase (SSiterator i) |
const MGSSisect & | first () const |
const MGSSisect & | front () const |
MGSSisect & | front () |
void | insertAt (SSiterator i, const MGSSisect &isect) |
bool | isEmpty () const |
bool | empty () const |
const MGSSisect & | last () const |
const MGSSisect & | back () const |
MGSSisect & | back () |
void | pop_back () |
Erase the last element of m_SSilist if not null. [詳解] | |
void | pop_front () |
Erase the first element of m_SSilist if not null. [詳解] | |
void | prepend (const MGSSisect &isect) |
void | push_front (const MGSSisect &isect) |
MGSSisect | removeAt (SSiterator i) |
MGSSisect | removeFirst () |
MGSSisect | removeLast () |
MGSSisect_list & | replace12 () |
Replace first and second order of surface 1 and 2. [詳解] | |
フレンド | |
MG_DLL_DECLR friend std::ostream & | operator<< (std::ostream &, const MGSSisect_list &) |
String stream Function. [詳解] | |
MGSSisect_list defines linked list of MGSSisect.
This is value based list. Used to represent intersection lines of two surfaces. The behavior of MGSSisect is like a auto_ptr. Copy or assignment of MGSSisect means transfer of the ownership of all the included curve to copied or assigned MGSSisect and original MGSSisect does not have the curve any more. User should be aware of this fact.
typedef container_type::const_iterator MGSSisect_list::const_iterator |
typedef container_type::const_iterator MGSSisect_list::const_SSiterator |
typedef std::list<MGSSisect> MGSSisect_list::container_type |
typedef container_type::iterator MGSSisect_list::iterator |
typedef container_type::iterator MGSSisect_list::SSiterator |
|
inlineexplicit |
|
inline |
Copy Constructor. MGSSisect_list(const MGSSisect_list& list);
void MGSSisect_list::append | ( | const MGSSisect & | isect | ) |
Assignment. MGSSisect_list& MGSSisect_list::operator= (const MGSSisect_list&); Adds the MGSSisect to the end of the list. isect transfer the ownership of the curves in isect to this list.
void MGSSisect_list::append | ( | const MGSSisect_list & | isectlist | ) |
void MGSSisect_list::append | ( | MGCurve * | iline, |
MGCurve * | param1, | ||
MGCurve * | param2, | ||
const MGSSRELATION | r1 = MGSSREL_UNKNOWN |
||
) |
全てのコンポーネントを指定して交線を追加 Add one intersection line to the list. iline, param1, and param2 must be newed objects, and their ownership are transfered to MGSSisect_list.
void MGSSisect_list::append | ( | const MGCurve & | iline, |
const MGCurve & | param1, | ||
const MGCurve & | param2, | ||
const MGSSRELATION | r1 = MGSSREL_UNKNOWN |
||
) |
全てのコンポーネントを指定して交線を追加 Add one intersection line to the list. this append copies the three curves.
|
inline |
|
inline |
|
inline |
Get the pointer of the first element of the m_SSilist.
|
inline |
|
inline |
Clear all the elements in m_SSilist.
|
inline |
|
inline |
Get the pointer of the next of the last element of the m_SSilist.
|
inline |
|
inline |
Return the number of items that are in the list.
|
inline |
Erase the element of iterator i. Returned is the iterator located after the element i.
SSiterator MGSSisect_list::find_common | ( | const MGSSisect & | ssi2 | ) |
|
inline |
Return(but does not remove) first element in the list. If list is empty, behavior is undefined.
|
inline |
|
inline |
|
inline |
Insert MGSSisect at the index position i. This position must be between zero and the number of items in the list, or behavior is undefined.
|
inline |
Return true (1) if there are no items in the list, false(0) otherwise.
|
inline |
Return(but does not remove) lst element in the list. If list is empty, behavior is undefined.
|
inline |
Erase the last element of m_SSilist if not null.
|
inline |
Erase the first element of m_SSilist if not null.
|
inline |
Adds the MGSSisect to the beginning of the list. isect transfer the ownership of the curves in isect to this list.
|
inline |
|
inline |
MGSSisect MGSSisect_list::removeAt | ( | SSiterator | i | ) |
MGSSisect MGSSisect_list::removeFirst | ( | ) |
MGSSisect MGSSisect_list::removeLast | ( | ) |
MGSSisect_list& MGSSisect_list::replace12 | ( | ) |
Replace first and second order of surface 1 and 2.
|
inline |
|
inline |
Return the pointer to surface1.
|
inline |
Return the pointer to surface2.
|
friend |
String stream Function.