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

MGParam_Vector provides a list to store parameters of a curve. [詳解]

公開型

typedef std::list< double > container_type
 
typedef container_type::iterator Citerator
 
typedef
container_type::const_iterator 
const_Citerator
 
typedef container_type::iterator iterator
 
typedef
container_type::const_iterator 
const_iterator
 

公開メンバ関数

 MGCParam_list (const MGCurve *curve=0)
 Constructor of length 0. [詳解]
 
 ~MGCParam_list ()
 
void append (double param)
 Adds the parameter to the end of the list. [詳解]
 
void push_back (double param)
 
void append (const MGCParam_list &lst)
 Adds the parameter list to the end of the list. [詳解]
 
Citerator begin ()
 Get the pointer of the first element of the m_CPlist. [詳解]
 
const_Citerator begin () const
 
void clear ()
 Clear all the elements in m_CPlist. [詳解]
 
const MGCurvecurve () const
 Returns the pointer to the curve. [詳解]
 
Citerator end ()
 Get the pointer of the next of the last element of the m_CPlist. [詳解]
 
const_Citerator end () const
 
int entries () const
 Returns the number of items that are in the list. [詳解]
 
int size () const
 
Citerator erase (Citerator i)
 
double front () const
 
double first () const
 
void insertAt (Citerator i, double param)
 
int isEmpty () const
 
int empty () const
 
double last () const
 
double back () const
 
bool lower_bound (double param, double &lowerBound) const
 
void pop_front ()
 Erase the first element of m_CPlist if not null. [詳解]
 
void pop_back ()
 Erase the last element of m_CPlist if not null. [詳解]
 
void prepend (double param)
 Adds the parameter to the beginning of the list. [詳解]
 
void push_front (double param)
 
double removeAt (Citerator i)
 
double removeFirst ()
 
double removeLast ()
 
void sort ()
 Sort the elements in m_CPlist;. [詳解]
 
void unique ()
 erase the same elements as previous element in the sequence. [詳解]
 

フレンド

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

詳解

MGParam_Vector provides a list to store parameters of a curve.

型定義メンバ詳解

typedef container_type::iterator MGCParam_list::Citerator
typedef container_type::const_iterator MGCParam_list::const_Citerator
typedef container_type::const_iterator MGCParam_list::const_iterator
typedef std::list<double> MGCParam_list::container_type
typedef container_type::iterator MGCParam_list::iterator

構築子と解体子

MGCParam_list::MGCParam_list ( const MGCurve curve = 0)
explicit

Constructor of length 0.

MGCParam_list::~MGCParam_list ( )
inline

関数詳解

void MGCParam_list::append ( double  param)

Adds the parameter to the end of the list.

void MGCParam_list::append ( const MGCParam_list lst)

Adds the parameter list to the end of the list.

double MGCParam_list::back ( ) const
inline
Citerator MGCParam_list::begin ( )
inline

Get the pointer of the first element of the m_CPlist.

const_Citerator MGCParam_list::begin ( ) const
inline
void MGCParam_list::clear ( )
inline

Clear all the elements in m_CPlist.

const MGCurve* MGCParam_list::curve ( ) const
inline

Returns the pointer to the curve.

int MGCParam_list::empty ( ) const
inline
Citerator MGCParam_list::end ( )
inline

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

const_Citerator MGCParam_list::end ( ) const
inline
int MGCParam_list::entries ( ) const
inline

Returns the number of items that are in the list.

Citerator MGCParam_list::erase ( Citerator  i)
inline

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

double MGCParam_list::first ( ) const
inline
double MGCParam_list::front ( ) const
inline

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

void MGCParam_list::insertAt ( Citerator  i,
double  param 
)
inline

Inserts parameter at the index position i. This position must be between zero and the number of items in the list, or behavior is undefined.

int MGCParam_list::isEmpty ( ) const
inline

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

double MGCParam_list::last ( ) const
inline

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

bool MGCParam_list::lower_bound ( double  param,
double &  lowerBound 
) const
inline

Get Lower Bound(this must be sorted) if no lower bound return false

void MGCParam_list::pop_back ( )
inline

Erase the last element of m_CPlist if not null.

void MGCParam_list::pop_front ( )
inline

Erase the first element of m_CPlist if not null.

void MGCParam_list::prepend ( double  param)
inline

Adds the parameter to the beginning of the list.

void MGCParam_list::push_back ( double  param)
inline
void MGCParam_list::push_front ( double  param)
inline
double MGCParam_list::removeAt ( Citerator  i)

Remove the parameter and return the parameter. If i is not valid, behavior is undefined.

double MGCParam_list::removeFirst ( )

Remove the first parameter int the list and return the parameter. If i is not valid, behavior is undefined.

double MGCParam_list::removeLast ( )

Remove the last parameter in the list and return the parameter. If i is not valid, behavior is undefined.

int MGCParam_list::size ( ) const
inline
void MGCParam_list::sort ( )
inline

Sort the elements in m_CPlist;.

void MGCParam_list::unique ( )
inline

erase the same elements as previous element in the sequence.

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

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

String stream Function.


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