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

MGHHisect_vector defines a vector of MGHHisect. [詳解]

公開型

typedef std::vector< MGHHisect >
::iterator 
HHiterator
 
typedef std::vector< MGHHisect >
::const_iterator 
const_HHiterator
 
typedef std::vector< MGHHisect >
::iterator 
iterator
 
typedef std::vector< MGHHisect >
::const_iterator 
const_iterator
 

公開メンバ関数

 MGHHisect_vector ()
 Void constructor. [詳解]
 
 MGHHisect_vector (MGHHisect &hhi)
 Constructor of 1 MGHHisect. [詳解]
 
const MGHHisectoperator[] (int i) const
 
MGHHisectoperator[] (int i)
 
void push_back (MGHHisect &isect)
 
void push_back (MGHHisect_vector &isects)
 
const MGHHisectback () const
 
MGHHisectback ()
 
HHiterator begin ()
 Get the pointer of the first element of the m_HHivector. [詳解]
 
const_HHiterator begin () const
 
void clear ()
 Clear all the elements in m_HHivector. [詳解]
 
HHiterator end ()
 Get the pointer of the next of the last element of the m_HHivector. [詳解]
 
const_HHiterator end () const
 
int size () const
 Return the number of items that are in the vector. [詳解]
 
HHiterator erase (HHiterator i)
 
const MGHHisectfront () const
 
MGHHisectfront ()
 
void insertAt (HHiterator i, MGHHisect &isect)
 Insert MGHHisect at the index position i. [詳解]
 
bool empty () const
 Return true if there are no items in the vector, false(0) otherwise. [詳解]
 
void pop_back ()
 Erase the last element of m_HHivector if not null. [詳解]
 
MGHHisect_vectorreplace12 ()
 Replace first and second order of surface 1 and 2. [詳解]
 

フレンド

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

詳解

MGHHisect_vector defines a vector of MGHHisect.

The vector is implemeted using STL's vector. All the methods to handle the vector are available from the STL's vector class, and public member m_HHivector. Refer to STL vector class. MGHHisect_vector is used to represent intersection lines of a shell with another shell, a face, or a surface. The behavior of MGHHisect is like an auto_ptr. Copy or assignment of MGHHisect means transfer of the ownership of all the included curves to copied or assigned MGHHisect and original MGHHisect does not have the ownership more. Users should be aware of this fact.

型定義メンバ詳解

構築子と解体子

MGHHisect_vector::MGHHisect_vector ( )
inline

Void constructor.

MGHHisect_vector::MGHHisect_vector ( MGHHisect hhi)
inline

Constructor of 1 MGHHisect.

関数詳解

const MGHHisect& MGHHisect_vector::back ( ) const
inline

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

MGHHisect& MGHHisect_vector::back ( )
inline
HHiterator MGHHisect_vector::begin ( )
inline

Get the pointer of the first element of the m_HHivector.

const_HHiterator MGHHisect_vector::begin ( ) const
inline
void MGHHisect_vector::clear ( )
inline

Clear all the elements in m_HHivector.

bool MGHHisect_vector::empty ( ) const
inline

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

HHiterator MGHHisect_vector::end ( )
inline

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

const_HHiterator MGHHisect_vector::end ( ) const
inline
HHiterator MGHHisect_vector::erase ( HHiterator  i)
inline

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

const MGHHisect& MGHHisect_vector::front ( ) const
inline

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

MGHHisect& MGHHisect_vector::front ( )
inline
void MGHHisect_vector::insertAt ( HHiterator  i,
MGHHisect isect 
)
inline

Insert MGHHisect at the index position i.

const MGHHisect& MGHHisect_vector::operator[] ( int  i) const
inline

Copy Constructor. MGHHisect_vector(const MGHHisect_vector& vector); Destructor. //////////// ~MGHHisect_vector(){;}; Assignment. MGHHisect_vector& MGHHisect_vector::operator= (const MGHHisect_vector&);

MGHHisect& MGHHisect_vector::operator[] ( int  i)
inline
void MGHHisect_vector::pop_back ( )
inline

Erase the last element of m_HHivector if not null.

void MGHHisect_vector::push_back ( MGHHisect isect)
inline

Adds one MGHHisect to the end of the vector. Transfers the ownership of the curves in isect to this vector.

void MGHHisect_vector::push_back ( MGHHisect_vector isects)
MGHHisect_vector& MGHHisect_vector::replace12 ( )

Replace first and second order of surface 1 and 2.

int MGHHisect_vector::size ( ) const
inline

Return the number of items that are in the vector.

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

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

String stream Function.


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