详细描述
template<class T>
class shogun::CList< T >
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.h第54行定义。
所有成员的列表。
构造及析构函数文档
CList |
( |
bool |
p_delete_data = false ) |
|
constructor
- 参数:
-
p_delete_data | if data shall be deleted |
在文件List.h第61行定义。
virtual ~CList |
( |
) |
[virtual] |
成员函数文档
bool append_element |
( |
T |
data ) |
|
append element AFTER the current element
- 参数:
-
data | data element to append |
- 返回:
- if appending was successful
在文件List.h第276行定义。
bool append_element_at_listend |
( |
T |
data ) |
|
append at end of list
- 参数:
-
data | data element to append |
- 返回:
- if appending was successful
在文件List.h第319行定义。
T delete_element |
( |
void |
) |
|
erases current element the new current element is the successor of the former current element
- 返回:
- the elements data - if available - is returned else NULL
在文件List.h第382行定义。
get current element in list
- 参数:
-
p_current | current list element |
- 返回:
- current element in list or NULL if not available
在文件List.h第258行定义。
T get_current_element |
( |
) |
|
get current element in list
- 返回:
- current element in list or NULL if not available
在文件List.h第165行定义。
go to first element in list and return it
- 返回:
- first element in list or NULL if list is empty
在文件List.h第97行定义。
go to first element in list and return it
- 参数:
-
p_current | current list element |
- 返回:
- first element in list or NULL if list is empty
在文件List.h第186行定义。
go to last element in list and return it
- 参数:
-
p_current | current list element |
- 返回:
- last element in list or NULL if list is empty
在文件List.h第204行定义。
go to last element in list and return it
- 返回:
- last element in list or NULL if list is empty
在文件List.h第114行定义。
virtual const char* get_name |
( |
) |
const [virtual] |
go to next element in list and return it
- 返回:
- next element in list or NULL if list is empty
在文件List.h第131行定义。
go to next element in list and return it
- 参数:
-
p_current | current list element |
- 返回:
- next element in list or NULL if list is empty
在文件List.h第222行定义。
int32_t get_num_elements |
( |
) |
|
get number of elements in list
- 返回:
- number of elements in list
在文件List.h第91行定义。
go to previous element in list and return it
- 参数:
-
p_current | current list element |
- 返回:
- previous element in list or NULL if list is empty
在文件List.h第240行定义。
T get_previous_element |
( |
) |
|
go to previous element in list and return it
- 返回:
- previous element in list or NULL if list is empty
在文件List.h第148行定义。
bool insert_element |
( |
T |
data ) |
|
insert element BEFORE the current element
- 参数:
-
data | data element to insert |
- 返回:
- if inserting was successful
在文件List.h第333行定义。
该类的文档由以下文件生成: