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

MGCFisect_vector defines a vector of MGCFisect. [詳解]

公開型

typedef std::vector< MGCFisect >
::iterator 
iterator
 
typedef std::vector< MGCFisect >
::const_iterator 
const_iterator
 

公開メンバ関数

 MGCFisect_vector (const MGCurve *curve=0)
 Void constructor. [詳解]
 
 MGCFisect_vector (const MGCurve *curve, MGCFisect &cfi)
 Constructor of 1 MGCFisect. [詳解]
 
const MGCFisectoperator[] (int i) const
 
MGCFisectoperator[] (int i)
 
void push_back (MGCFisect &isect)
 
const MGCFisectback () const
 
MGCFisectback ()
 
iterator begin ()
 Get the pointer of the first element of the m_CFivector. [詳解]
 
const_iterator begin () const
 
void clear ()
 Clear all the elements in m_CFivector. [詳解]
 
const MGCurvecurve () const
 Get the curve pointer. [詳解]
 
iterator end ()
 Get the pointer of the next of the last element of the m_CFivector. [詳解]
 
const_iterator end () const
 
int size () const
 Return the number of items that are in the vector. [詳解]
 
iterator erase (iterator i)
 
const MGCFisectfront () const
 
MGCFisectfront ()
 
void insertAt (iterator i, MGCFisect &isect)
 Insert MGCFisect 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_CFivector if not null. [詳解]
 

公開変数類

std::vector< MGCFisectm_CFivector
 

フレンド

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

詳解

MGCFisect_vector defines a vector of MGCFisect.

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_CFivector. Refer to STL vector class. MGCFisect_vector is used to represent intersection points of a curve with a shell. The behavior of MGCFisect is like an auto_ptr. Copy or assignment of MGCFisect means transfer of the ownership of all the included curves to copied or assigned MGCFisect and original MGCFisect does not have the ownership more. Users should be aware of this fact.

型定義メンバ詳解

構築子と解体子

MGCFisect_vector::MGCFisect_vector ( const MGCurve curve = 0)
inline

Void constructor.

MGCFisect_vector::MGCFisect_vector ( const MGCurve curve,
MGCFisect cfi 
)
inline

Constructor of 1 MGCFisect.

関数詳解

const MGCFisect& MGCFisect_vector::back ( ) const
inline

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

MGCFisect& MGCFisect_vector::back ( )
inline
iterator MGCFisect_vector::begin ( )
inline

Get the pointer of the first element of the m_CFivector.

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

Clear all the elements in m_CFivector.

const MGCurve* MGCFisect_vector::curve ( ) const
inline

Get the curve pointer.

bool MGCFisect_vector::empty ( ) const
inline

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

iterator MGCFisect_vector::end ( )
inline

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

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

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

const MGCFisect& MGCFisect_vector::front ( ) const
inline

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

MGCFisect& MGCFisect_vector::front ( )
inline
void MGCFisect_vector::insertAt ( iterator  i,
MGCFisect isect 
)
inline

Insert MGCFisect at the index position i.

const MGCFisect& MGCFisect_vector::operator[] ( int  i) const
inline

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

MGCFisect& MGCFisect_vector::operator[] ( int  i)
inline
void MGCFisect_vector::pop_back ( )
inline

Erase the last element of m_CFivector if not null.

void MGCFisect_vector::push_back ( MGCFisect isect)
inline

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

int MGCFisect_vector::size ( ) const
inline

Return the number of items that are in the vector.

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

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

String stream Function.

メンバ詳解

std::vector<MGCFisect> MGCFisect_vector::m_CFivector

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