MGCL V10  V10
MGCL V10
 全て クラス 名前空間 関数 変数 型定義 列挙型 列挙値 フレンド グループ ページ
MGSSisect_list クラス

MGSSisect_list defines linked list of MGSSisect. [詳解]

公開型

typedef std::list< MGSSisectcontainer_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 &param1, const MGCurve &param2, 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 MGFSurfacesurface1 () const
 Return the pointer to surface1. [詳解]
 
const MGFSurfacesurface2 () 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 MGSSisectfirst () const
 
const MGSSisectfront () const
 
MGSSisectfront ()
 
void insertAt (SSiterator i, const MGSSisect &isect)
 
bool isEmpty () const
 
bool empty () const
 
const MGSSisectlast () const
 
const MGSSisectback () const
 
MGSSisectback ()
 
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_listreplace12 ()
 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 container_type::iterator MGSSisect_list::iterator
typedef container_type::iterator MGSSisect_list::SSiterator

構築子と解体子

MGSSisect_list::MGSSisect_list ( const MGFSurface s1 = NULL,
const MGFSurface s2 = NULL 
)
inlineexplicit
MGSSisect_list::~MGSSisect_list ( )
inline

関数詳解

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.

const MGSSisect& MGSSisect_list::back ( ) const
inline
MGSSisect& MGSSisect_list::back ( )
inline
SSiterator MGSSisect_list::begin ( )
inline

Get the pointer of the first element of the m_SSilist.

const_SSiterator MGSSisect_list::begin ( ) const
inline
void MGSSisect_list::clear ( )
inline

Clear all the elements in m_SSilist.

bool MGSSisect_list::empty ( ) const
inline
SSiterator MGSSisect_list::end ( )
inline

Get the pointer of the next of the last element of the m_SSilist.

const_SSiterator MGSSisect_list::end ( ) const
inline
int MGSSisect_list::entries ( ) const
inline

Return the number of items that are in the list.

SSiterator MGSSisect_list::erase ( SSiterator  i)
inline

Erase the element of iterator i. Returned is the iterator located after the element i.

SSiterator MGSSisect_list::find_common ( const MGSSisect ssi2)

Find where in this ssi2 have common parts (in line_zero()) in their world representation. Fucntion's return value is the iterator of this that had the common. !=end():have common part. ==end():no common part(except a point) found.

const MGSSisect& MGSSisect_list::first ( ) const
inline

Return(but does not remove) first element in the list. If list is empty, behavior is undefined.

const MGSSisect& MGSSisect_list::front ( ) const
inline
MGSSisect& MGSSisect_list::front ( )
inline
void MGSSisect_list::insertAt ( SSiterator  i,
const MGSSisect isect 
)
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.

bool MGSSisect_list::isEmpty ( ) const
inline

Return true (1) if there are no items in the list, false(0) otherwise.

const MGSSisect& MGSSisect_list::last ( ) const
inline

Return(but does not remove) lst element in the list. If list is empty, behavior is undefined.

void MGSSisect_list::pop_back ( )
inline

Erase the last element of m_SSilist if not null.

void MGSSisect_list::pop_front ( )
inline

Erase the first element of m_SSilist if not null.

void MGSSisect_list::prepend ( const MGSSisect isect)
inline

Adds the MGSSisect to the beginning of the list. isect transfer the ownership of the curves in isect to this list.

void MGSSisect_list::push_back ( const MGSSisect isect)
inline
void MGSSisect_list::push_front ( const MGSSisect isect)
inline
MGSSisect MGSSisect_list::removeAt ( SSiterator  i)

Remove the MGSSisect and return the MGSSisect. If i is no valid, behavior is undefined.

MGSSisect MGSSisect_list::removeFirst ( )

Remove the first MGSSisect int the list and return the MGSSisect. If i is not valid, behavior is undefined.

MGSSisect MGSSisect_list::removeLast ( )

Remove the last MGSSisect in the list and return the MGSSisect. If i is not valid, behavior is undefined.

MGSSisect_list& MGSSisect_list::replace12 ( )

Replace first and second order of surface 1 and 2.

int MGSSisect_list::size ( ) const
inline
const MGFSurface* MGSSisect_list::surface1 ( ) const
inline

Return the pointer to surface1.

const MGFSurface* MGSSisect_list::surface2 ( ) const
inline

Return the pointer to surface2.

フレンドと関連関数の詳解

MG_DLL_DECLR friend std::ostream& operator<< ( std::ostream &  ,
const MGSSisect_list  
)
friend

String stream Function.


このクラス詳解は次のファイルから抽出されました: