MGCL V10
V10
MGCL V10
|
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 MGCFisect & | operator[] (int i) const |
MGCFisect & | operator[] (int i) |
void | push_back (MGCFisect &isect) |
const MGCFisect & | back () const |
MGCFisect & | back () |
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 MGCurve * | curve () 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 MGCFisect & | front () const |
MGCFisect & | front () |
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< MGCFisect > | m_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.
typedef std::vector<MGCFisect>::const_iterator MGCFisect_vector::const_iterator |
typedef std::vector<MGCFisect>::iterator MGCFisect_vector::iterator |
|
inline |
Void constructor.
Constructor of 1 MGCFisect.
|
inline |
Return(but does not remove) last element in the vector. If vector is empty, behavior is undefined.
|
inline |
|
inline |
Get the pointer of the first element of the m_CFivector.
|
inline |
|
inline |
Clear all the elements in m_CFivector.
|
inline |
Get the curve pointer.
|
inline |
Return true if there are no items in the vector, false(0) otherwise.
|
inline |
Get the pointer of the next of the last element of the m_CFivector.
|
inline |
Erase the element of iterator i. Returned is the iterator located after the element i.
|
inline |
Return(but does not remove) first element in the vector. If vector is empty, behavior is undefined.
|
inline |
Insert MGCFisect at the index position i.
|
inline |
Copy Constructor. MGCFisect_vector(const MGCFisect_vector& vector); Destructor. //////////// ~MGCFisect_vector(){;}; Assignment. MGCFisect_vector& MGCFisect_vector::operator= (const MGCFisect_vector&);
|
inline |
|
inline |
Erase the last element of m_CFivector if not null.
|
inline |
Adds one MGCFisect to the end of the vector. Transfers the ownership of the curves in isect to this vector.
|
inline |
Return the number of items that are in the vector.
|
friend |
String stream Function.
std::vector<MGCFisect> MGCFisect_vector::m_CFivector |