MGCL V10
V10
MGCL V10
|
MGGelPosition Container Class. [詳解]
公開型 | |
typedef std::vector < MGGelPosition > | container_type |
別名定義 [詳解] | |
typedef container_type::reference | reference |
typedef container_type::const_reference | const_reference |
typedef container_type::iterator | iterator |
typedef container_type::const_iterator | const_iterator |
typedef container_type::size_type | size_type |
typedef container_type::difference_type | difference_type |
typedef container_type::value_type | value_type |
typedef container_type::allocator_type | allocator_type |
typedef allocator_type::pointer | pointer |
typedef allocator_type::const_pointer | const_pointer |
typedef container_type::reverse_iterator | reverse_iterator |
typedef container_type::const_reverse_iterator | const_reverse_iterator |
公開メンバ関数 | |
MGGelPositions () | |
Void constructor(初期化なしでオブジェクトを作成する。) [詳解] | |
MGGelPositions (const MGGelPosition &gelp) | |
MGGelPositions (const MGPickObjects &gelp) | |
Conversion constructor of MGPickObjects. [詳解] | |
MGGelPositions (const MGGelPositions &obj2) | |
Copy constructor. [詳解] | |
const_reference | operator[] (size_type i) const |
reference | operator[] (size_type i) |
MGGelPositions & | operator+= (const MGGelPositions &gelps) |
Set operation. [詳解] | |
MGGelPositions & | operator+= (const MGGelPosition &gelp) |
MGGelPositions & | operator-= (const MGGelPositions &gelps) |
MGGelPositions & | operator-= (const MGGelPosition &gelp) |
MGGelPositions & | operator-= (const MGAbstractGels &types) |
MGGelPositions & | operator&= (const MGGelPositions &gelps) |
void | assign (const_iterator first, const_iterator last) |
Replace this sequence with [first,last). [詳解] | |
virtual const_reference | back () const |
virtual reference | back () |
const_iterator | begin () const |
Return iterator at the beginning of list. [詳解] | |
iterator | begin () |
void | clear () |
clear list, that is, erase all the elements in the MGGelPositions. [詳解] | |
bool | empty () const |
const_iterator | end () const |
Return const_iterator at the end of MGGelPositions. [詳解] | |
iterator | end () |
iterator | erase (iterator x) |
iterator | erase (iterator first, iterator last) |
void | erase (int i) |
erase i-th element. [詳解] | |
iterator | find (const MGGelPosition &gelp) |
Find the input MGGelposition. [詳解] | |
const_iterator | find (const MGGelPosition &gelp) const |
iterator | includes (const MGObject *objin) |
virtual const_reference | front () const |
virtual reference | front () |
iterator | insert (iterator it, const MGGelPosition &x) |
container_type & | object_vector () |
const container_type & | object_vector () const |
void | pop_back () |
pop last element. [詳解] | |
void | push_back (const MGGelPositions &gelps) |
void | push_back (const MGGelPosition &gelp) |
const_reverse_iterator | rbegin () const |
Return reverse_iterator at the beginning of list. [詳解] | |
reverse_iterator | rbegin () |
const_reverse_iterator | rend () const |
Return const_reverse_iterator at the end of list. [詳解] | |
reverse_iterator | rend () |
void | resize (size_type n) |
Resize the gelp. [詳解] | |
void | reserve (int n) |
reserve the size n, which are all null. [詳解] | |
void | remove (const MGGelPosition &gelp) |
Remove gelp if found in this. [詳解] | |
void | remove (const MGAbstractGels &types) |
Remove objects of type from this pickobjects. [詳解] | |
void | remove (const MGGelPositions &gelps) |
Remove gelps from this pickobjects. [詳解] | |
void | reset_with_common (const MGGelPositions &pobjs2) |
replace this with the common objects of this and pobjs2. [詳解] | |
void | reset_with_symmetric_difference (MGGelPositions &pobjs2) |
void | reset (int i, const MGGelPosition &pobj) |
replace the i-th elemnet to pobj. [詳解] | |
MGGelPositions | select (const MGAbstractGels &types) const |
MGGelPosition | select_1st_curve () const |
void | select_curves (MGGelPositions &curves) const |
MGGelPosition | select_1st_fsurface () const |
void | select_fsurfaces (MGGelPositions &surfaces) const |
size_type | size () const |
Return the number of items that are in the list. [詳解] | |
bool | symmetric (const MGGelPositions &gels2) const |
フレンド | |
MG_DLL_DECLR friend std::ostream & | operator<< (std::ostream &, const MGGelPositions &) |
String output function. [詳解] | |
MGGelPosition Container Class.
MGGelPositions is a class which constains MGGelPosition elements as a vector.
typedef container_type::allocator_type MGGelPositions::allocator_type |
typedef container_type::const_iterator MGGelPositions::const_iterator |
typedef allocator_type::const_pointer MGGelPositions::const_pointer |
typedef container_type::const_reference MGGelPositions::const_reference |
typedef container_type::const_reverse_iterator MGGelPositions::const_reverse_iterator |
typedef std::vector<MGGelPosition> MGGelPositions::container_type |
別名定義
typedef container_type::difference_type MGGelPositions::difference_type |
typedef container_type::iterator MGGelPositions::iterator |
typedef allocator_type::pointer MGGelPositions::pointer |
typedef container_type::reference MGGelPositions::reference |
typedef container_type::reverse_iterator MGGelPositions::reverse_iterator |
typedef container_type::size_type MGGelPositions::size_type |
typedef container_type::value_type MGGelPositions::value_type |
|
inline |
Void constructor(初期化なしでオブジェクトを作成する。)
MGGelPositions::MGGelPositions | ( | const MGGelPosition & | gelp | ) |
Construct MGGelPositions of a MGGelPosition. When gelp.is_null(), the gelp will not be set.
MGGelPositions::MGGelPositions | ( | const MGPickObjects & | gelp | ) |
Conversion constructor of MGPickObjects.
MGGelPositions::MGGelPositions | ( | const MGGelPositions & | obj2 | ) |
Copy constructor.
void MGGelPositions::assign | ( | const_iterator | first, |
const_iterator | last | ||
) |
Replace this sequence with [first,last).
|
inlinevirtual |
Return(but does not remove) last element in the group. If list is empty, behavior is undefined.
|
inlinevirtual |
|
inline |
Return iterator at the beginning of list.
|
inline |
|
inline |
clear list, that is, erase all the elements in the MGGelPositions.
|
inline |
Return true (1) if there are no items in the MGGelPositions, false(0) otherwise.
|
inline |
Return const_iterator at the end of MGGelPositions.
|
inline |
erase element x. Function's return value is the following iterator of the erased element x.
erase sequence [first, last). Function's return value is the following iterator of the erased elements.
|
inline |
erase i-th element.
|
inline |
Find the input MGGelposition.
|
inline |
|
inlinevirtual |
Return(but does not remove) first element in the MGGelPositions. If this vector is empty, behavior is undefined.
|
inlinevirtual |
|
inline |
insert an element x before the position it. Function's return value is the iterator of x after inserted.
|
inline |
|
inline |
|
inline |
|
inline |
Set operation.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Destructor ~MGGelPositions();
|
inline |
pop last element.
|
inline |
push elements in gelps at the end. All of the gel pointers are transfered to this. On return, gelps will have no gel pointer in it.
void MGGelPositions::push_back | ( | const MGGelPosition & | gelp | ) |
|
inline |
Return reverse_iterator at the beginning of list.
|
inline |
void MGGelPositions::remove | ( | const MGGelPosition & | gelp | ) |
Remove gelp if found in this.
void MGGelPositions::remove | ( | const MGAbstractGels & | types | ) |
Remove objects of type from this pickobjects.
void MGGelPositions::remove | ( | const MGGelPositions & | gelps | ) |
Remove gelps from this pickobjects.
|
inline |
Return const_reverse_iterator at the end of list.
|
inline |
void MGGelPositions::reserve | ( | int | n | ) |
reserve the size n, which are all null.
void MGGelPositions::reset | ( | int | i, |
const MGGelPosition & | pobj | ||
) |
replace the i-th elemnet to pobj.
void MGGelPositions::reset_with_common | ( | const MGGelPositions & | pobjs2 | ) |
replace this with the common objects of this and pobjs2.
void MGGelPositions::reset_with_symmetric_difference | ( | MGGelPositions & | pobjs2 | ) |
replace this with symmetric_differecne of this and pobj, that is; (1) remove the same MGPickObject from this and pobjss. (2) append the result pobjs2 to this. On return, pobjs2 will have null sequence.
|
inline |
Resize the gelp.
MGGelPositions MGGelPositions::select | ( | const MGAbstractGels & | types | ) | const |
Select objects of input type from this. Function's return value is pickobjects selected. This will be unchanged.
MGGelPosition MGGelPositions::select_1st_curve | ( | ) | const |
Select the 1st MGCurve from this. Function's return value is MGPickObject of MGCurve 1st encountered in this MGPickObject sequence. If this did not includes any MGCurve, null MGPickOjbect will be returned. This will be unchanged.
MGGelPosition MGGelPositions::select_1st_fsurface | ( | ) | const |
Select the 1st MGFSurface from this. Function's return value is MGPickObject of MGFSurface 1st encountered in this MGPickObject sequence. If this did not includes any MGFSurface, null MGPickObject will be returned. This will be unchanged.
void MGGelPositions::select_curves | ( | MGGelPositions & | curves | ) | const |
Select all the MGCurve from this. MGPickObject of MGCurve encountered in this MGPickObject sequence will be appended in curves. This will be unchanged.
void MGGelPositions::select_fsurfaces | ( | MGGelPositions & | surfaces | ) | const |
Select all the MGFSurface from this. MGGelPositions of MGFSurface encountered in this MGPickObject sequence will be appended in surfaces. This will be unchanged.
|
inline |
Return the number of items that are in the list.
bool MGGelPositions::symmetric | ( | const MGGelPositions & | gels2 | ) | const |
Test if this is symmetric to gels2. Symmetric means: (1) number of gels included is the same. (2) all of the gels are MGObject and they have the same manifold dimension.
|
friend |
String output function.