MGCL V10
V10
MGCL V10
|
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 MGHHisect & | operator[] (int i) const |
MGHHisect & | operator[] (int i) |
void | push_back (MGHHisect &isect) |
void | push_back (MGHHisect_vector &isects) |
const MGHHisect & | back () const |
MGHHisect & | back () |
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 MGHHisect & | front () const |
MGHHisect & | front () |
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_vector & | replace12 () |
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.
typedef std::vector<MGHHisect>::const_iterator MGHHisect_vector::const_HHiterator |
typedef std::vector<MGHHisect>::const_iterator MGHHisect_vector::const_iterator |
typedef std::vector<MGHHisect>::iterator MGHHisect_vector::HHiterator |
typedef std::vector<MGHHisect>::iterator MGHHisect_vector::iterator |
|
inline |
Void constructor.
|
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_HHivector.
|
inline |
|
inline |
Clear all the elements in m_HHivector.
|
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_HHivector.
|
inline |
|
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 |
|
inline |
Insert MGHHisect at the index position i.
|
inline |
Copy Constructor. MGHHisect_vector(const MGHHisect_vector& vector); Destructor. //////////// ~MGHHisect_vector(){;}; Assignment. MGHHisect_vector& MGHHisect_vector::operator= (const MGHHisect_vector&);
|
inline |
|
inline |
Erase the last element of m_HHivector if not null.
|
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.
|
inline |
Return the number of items that are in the vector.
|
friend |
String stream Function.