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

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)
 
MGGelPositionsoperator+= (const MGGelPositions &gelps)
 Set operation. [詳解]
 
MGGelPositionsoperator+= (const MGGelPosition &gelp)
 
MGGelPositionsoperator-= (const MGGelPositions &gelps)
 
MGGelPositionsoperator-= (const MGGelPosition &gelp)
 
MGGelPositionsoperator-= (const MGAbstractGels &types)
 
MGGelPositionsoperator&= (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_typeobject_vector ()
 
const container_typeobject_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 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

構築子と解体子

MGGelPositions::MGGelPositions ( )
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).

virtual const_reference MGGelPositions::back ( ) const
inlinevirtual

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

virtual reference MGGelPositions::back ( )
inlinevirtual
const_iterator MGGelPositions::begin ( ) const
inline

Return iterator at the beginning of list.

iterator MGGelPositions::begin ( )
inline
void MGGelPositions::clear ( )
inline

clear list, that is, erase all the elements in the MGGelPositions.

bool MGGelPositions::empty ( ) const
inline

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

const_iterator MGGelPositions::end ( ) const
inline

Return const_iterator at the end of MGGelPositions.

iterator MGGelPositions::end ( )
inline
iterator MGGelPositions::erase ( iterator  x)
inline

erase element x. Function's return value is the following iterator of the erased element x.

iterator MGGelPositions::erase ( iterator  first,
iterator  last 
)
inline

erase sequence [first, last). Function's return value is the following iterator of the erased elements.

void MGGelPositions::erase ( int  i)
inline

erase i-th element.

iterator MGGelPositions::find ( const MGGelPosition gelp)
inline

Find the input MGGelposition.

const_iterator MGGelPositions::find ( const MGGelPosition gelp) const
inline
virtual const_reference MGGelPositions::front ( ) const
inlinevirtual

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

virtual reference MGGelPositions::front ( )
inlinevirtual
iterator MGGelPositions::includes ( const MGObject objin)
iterator MGGelPositions::insert ( iterator  it,
const MGGelPosition x 
)
inline

insert an element x before the position it. Function's return value is the iterator of x after inserted.

container_type& MGGelPositions::object_vector ( )
inline
const container_type& MGGelPositions::object_vector ( ) const
inline
MGGelPositions& MGGelPositions::operator&= ( const MGGelPositions gelps)
inline
MGGelPositions& MGGelPositions::operator+= ( const MGGelPositions gelps)
inline

Set operation.

MGGelPositions& MGGelPositions::operator+= ( const MGGelPosition gelp)
inline
MGGelPositions& MGGelPositions::operator-= ( const MGGelPositions gelps)
inline
MGGelPositions& MGGelPositions::operator-= ( const MGGelPosition gelp)
inline
MGGelPositions& MGGelPositions::operator-= ( const MGAbstractGels types)
inline
const_reference MGGelPositions::operator[] ( size_type  i) const
inline

Destructor ~MGGelPositions();

reference MGGelPositions::operator[] ( size_type  i)
inline
void MGGelPositions::pop_back ( )
inline

pop last element.

void MGGelPositions::push_back ( const MGGelPositions gelps)
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)
const_reverse_iterator MGGelPositions::rbegin ( ) const
inline

Return reverse_iterator at the beginning of list.

reverse_iterator MGGelPositions::rbegin ( )
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.

const_reverse_iterator MGGelPositions::rend ( ) const
inline

Return const_reverse_iterator at the end of list.

reverse_iterator MGGelPositions::rend ( )
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.

void MGGelPositions::resize ( size_type  n)
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.

size_type MGGelPositions::size ( ) const
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.

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

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

String output function.


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