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

MGisects defines a vector of MGisect. [詳解]

公開型

typedef MGPvector< MGisect >
::iterator 
iterator
 
typedef MGPvector< MGisect >
::const_iterator 
const_iterator
 
typedef MGPvector< MGisect >
::reverse_iterator 
reverse_iterator
 
typedef MGPvector< MGisect >
::const_reverse_iterator 
const_reverse_iterator
 
typedef MGPvector< MGisect >
::reference 
reference
 
typedef MGPvector< MGisect >
::const_reference 
const_reference
 
typedef MGPvector< MGisect >
::size_type 
size_type
 

公開メンバ関数

 MGisects (const MGObject *obj1=0, const MGObject *obj2=0)
 Constructor(of size 0) [詳解]
 
 MGisects (MGCCisect_list &ccis)
 Construct from MGCCisect_list. [詳解]
 
 MGisects (MGCSisect_list &csis)
 Construct from MGCSisect_list. [詳解]
 
 MGisects (MGSSisect_list &ssis)
 Construct from MGCSisect_list. [詳解]
 
 MGisects (MGCFisect_vector &cfis)
 Construct from MGCFisect_vector. [詳解]
 
 MGisects (MGHHisect &hhi)
 Construct from MGHHisect. [詳解]
 
 MGisects (MGHHisect_vector &hhis)
 Construct from MGCFisect_vector. [詳解]
 
const MGisectoperator[] (int i) const
 
MGisectoperator[] (int i)
 
const MGisectback () const
 
MGisectback ()
 
iterator begin ()
 Get the iterator of the first element of the m_is_vector. [詳解]
 
const_iterator begin () const
 
void clear ()
 Clear all the elements in m_is_vector. [詳解]
 
bool empty () const
 Return true if there are no items in the vector, false(0) otherwise. [詳解]
 
iterator end ()
 Get the iterator of the next of the last element of the m_is_vector. [詳解]
 
const_iterator end () const
 
iterator erase (iterator i)
 
void exchange12 ()
 Exchange first and second order of MGisect. [詳解]
 
const MGisectfront () const
 
MGisectfront ()
 
void insertAt (iterator i, MGisect *isect)
 
const MGObjectobject1 (int i) const
 
const MGObjectobject2 (int i) const
 
void pop_back ()
 Erase the last element of m_is_vector if not null. [詳解]
 
void push_back (MGisect *isect)
 
void push_back (MGisects &isects)
 
int size () const
 Return the number of items that are in the vector. [詳解]
 

フレンド

MG_DLL_DECLR friend std::ostream & operator<< (std::ostream &ostrm, const MGisects &is)
 String stream Function. [詳解]
 

詳解

MGisects defines a vector of MGisect.

The vector is implemeted using MGPvector<MGisect>. All the methods to handle the vector are available from the MGPvector class, and public member m_is_vector. Refer to MGPvector template class. MGisects is used to represent an array of intersection lines of two objects. The behavior of MGisects is like an auto_ptr. Copy or assignment of MGisects means transfer of the ownership of all the included MGisect to copied or assigned MGisects and original MGisects does not have the ownership any more. Users should be aware of this fact. Intersections are obtained from two objects, which are known using the member functions object1() and object2(). ****NOTE**** When two objects' manifold dimension are the same, object1 is this object at the invocation of MGObject::intersection(), and object2 is the argument object. However, their manifold dimension are not the same, object1 is always the lower dimension's object and object2 is the higer dimension's object.

型定義メンバ詳解

構築子と解体子

MGisects::MGisects ( const MGObject obj1 = 0,
const MGObject obj2 = 0 
)

Constructor(of size 0)

MGisects::MGisects ( MGCCisect_list ccis)

Construct from MGCCisect_list.

MGisects::MGisects ( MGCSisect_list csis)

Construct from MGCSisect_list.

MGisects::MGisects ( MGSSisect_list ssis)

Construct from MGCSisect_list.

MGisects::MGisects ( MGCFisect_vector cfis)

Construct from MGCFisect_vector.

MGisects::MGisects ( MGHHisect hhi)

Construct from MGHHisect.

MGisects::MGisects ( MGHHisect_vector hhis)

Construct from MGCFisect_vector.

関数詳解

const MGisect* MGisects::back ( ) const
inline

Assignment. MGisects& MGisects::operator= (const MGisects&); Return(but does not remove) last element in the vector. If vector is empty, behavior is undefined.

MGisect* MGisects::back ( )
inline
iterator MGisects::begin ( )
inline

Get the iterator of the first element of the m_is_vector.

const_iterator MGisects::begin ( ) const
inline
void MGisects::clear ( )
inline

Clear all the elements in m_is_vector.

bool MGisects::empty ( ) const
inline

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

iterator MGisects::end ( )
inline

Get the iterator of the next of the last element of the m_is_vector.

const_iterator MGisects::end ( ) const
inline
iterator MGisects::erase ( iterator  i)
inline

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

void MGisects::exchange12 ( )

Exchange first and second order of MGisect.

const MGisect* MGisects::front ( ) const
inline

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

MGisect* MGisects::front ( )
inline
void MGisects::insertAt ( iterator  i,
MGisect isect 
)
inline

Insert MGisect at the index position i. Transfers the ownership of the isect to this vector.

const MGObject* MGisects::object1 ( int  i) const

Get the 1st object pointer of the i-th intersection. Generally objects are different for each intersection. Ex. in the case of Shell to Shell intersection, different Face pointer will be returned.

const MGObject* MGisects::object2 ( int  i) const

Get the 2nd object pointer of the i-th intersection. Generally objects are different for each intersection. Ex. in the case of Shell to Shell intersection, different Face pointer will be returned.

const MGisect* MGisects::operator[] ( int  i) const
inline

Assignment. MGisects& MGisects::operator= (const MGisects&);

MGisect* MGisects::operator[] ( int  i)
inline
void MGisects::pop_back ( )
inline

Erase the last element of m_is_vector if not null.

void MGisects::push_back ( MGisect isect)
inline

Adds one MGisect* to the end of the vector. Transfers the ownership of the isect to this vector.

void MGisects::push_back ( MGisects isects)

append all the member of isects to the end of the vector. Transfers the ownership of the isect in isects to this vector.

int MGisects::size ( ) const
inline

Return the number of items that are in the vector.

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

MG_DLL_DECLR friend std::ostream& operator<< ( std::ostream &  ostrm,
const MGisects is 
)
friend

String stream Function.


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