SHOGUN v0.9.0
公有成员
CList类参考

详细描述

Class List implements a doubly connected list for low-level-objects.

For higher level objects pointers should be used. The list supports calling delete() of an object that is to be removed from the list.

在文件List.h78行定义。

继承图,类CList
Inheritance graph
[图例]

所有成员的列表。

公有成员

 CList (bool p_delete_data=false)
virtual ~CList ()
int32_t get_num_elements ()
CSGObjectget_first_element ()
CSGObjectget_last_element ()
CSGObjectget_next_element ()
CSGObjectget_previous_element ()
CSGObjectget_current_element ()
bool append_element (CSGObject *data)
bool append_element_at_listend (CSGObject *data)
bool insert_element (CSGObject *data)
CSGObjectdelete_element (void)
virtual void load_serializable_post () throw (ShogunException)
virtual const char * get_name (void) const
thread safe list access functions
CSGObjectget_first_element (CListElement *&p_current)
CSGObjectget_last_element (CListElement *&p_current)
CSGObjectget_next_element (CListElement *&p_current)
CSGObjectget_previous_element (CListElement *&p_current)
CSGObjectget_current_element (CListElement *&p_current)

构造及析构函数文档

CList ( bool  p_delete_data = false)

constructor

参数:
p_delete_dataif data shall be deleted

在文件List.h85行定义。

virtual ~CList ( ) [virtual]

在文件List.h102行定义。


成员函数文档

bool append_element ( CSGObject data)

append element AFTER the current element

参数:
datadata element to append
返回:
if appending was successful

在文件List.h307行定义。

bool append_element_at_listend ( CSGObject data)

append at end of list

参数:
datadata element to append
返回:
if appending was successful

在文件List.h350行定义。

CSGObject* delete_element ( void  )

erases current element the new current element is the successor of the former current element

返回:
the elements data - if available - otherwise NULL

在文件List.h413行定义。

CSGObject* get_current_element ( CListElement *&  p_current)

get current element in list

参数:
p_currentcurrent list element
返回:
current element in list or NULL if not available

在文件List.h289行定义。

CSGObject* get_current_element ( )

get current element in list

返回:
current element in list or NULL if not available

在文件List.h196行定义。

CSGObject* get_first_element ( )

go to first element in list and return it

返回:
first element in list or NULL if list is empty

在文件List.h128行定义。

CSGObject* get_first_element ( CListElement *&  p_current)

go to first element in list and return it

参数:
p_currentcurrent list element
返回:
first element in list or NULL if list is empty

在文件List.h217行定义。

CSGObject* get_last_element ( CListElement *&  p_current)

go to last element in list and return it

参数:
p_currentcurrent list element
返回:
last element in list or NULL if list is empty

在文件List.h235行定义。

CSGObject* get_last_element ( )

go to last element in list and return it

返回:
last element in list or NULL if list is empty

在文件List.h145行定义。

virtual const char* get_name ( void  ) const [virtual]
返回:
object name

实现了CSGObject

在文件List.h467行定义。

CSGObject* get_next_element ( CListElement *&  p_current)

go to next element in list and return it

参数:
p_currentcurrent list element
返回:
next element in list or NULL if list is empty

在文件List.h253行定义。

CSGObject* get_next_element ( )

go to next element in list and return it

返回:
next element in list or NULL if list is empty

在文件List.h162行定义。

int32_t get_num_elements ( void  )

get number of elements in list

返回:
number of elements in list

在文件List.h122行定义。

CSGObject* get_previous_element ( )

go to previous element in list and return it

返回:
previous element in list or NULL if list is empty

在文件List.h179行定义。

CSGObject* get_previous_element ( CListElement *&  p_current)

go to previous element in list and return it

参数:
p_currentcurrent list element
返回:
previous element in list or NULL if list is empty

在文件List.h271行定义。

bool insert_element ( CSGObject data)

insert element BEFORE the current element

参数:
datadata element to insert
返回:
if inserting was successful

在文件List.h364行定义。

virtual void load_serializable_post ( void  ) throw (ShogunException) [virtual]

Can (optionally) be overridden to post-initialize some member variables which are not PARAMETER::ADD'ed. Make sure that at first the overridden method BASE_CLASS::LOAD_SERIALIZABLE_POST is called.

异常:
ShogunExceptionWill be thrown if an error occurres.

重载CSGObject

在文件List.h452行定义。


该类的文档由以下文件生成:

SHOGUN Machine Learning Toolbox - Documentation