详细描述
template<class T>
class shogun::CSet< T >
Template Set class.
Lazy implementation of a set. Set grows and shrinks dynamically and can be conveniently iterated through via the [] operator.
在文件Set.h第26行定义。
所有成员的列表。
构造及析构函数文档
Default constructor
在文件Set.h第30行定义。
成员函数文档
Add an element to the set
- 参数:
-
在文件Set.h第46行定义。
Remove an element from the set
- 参数:
-
在文件Set.h第67行定义。
T get_element |
( |
int32_t |
index ) |
const |
get set element at index
(does NOT do bounds checking)
- 参数:
-
- 返回:
- array element at index
在文件Set.h第89行定义。
virtual const char* get_name |
( |
) |
const [virtual] |
int32_t get_num_elements |
( |
) |
const |
get number of elements
- 返回:
- number of elements
在文件Set.h第77行定义。
T operator[] |
( |
int32_t |
index ) |
const |
operator overload for set read only access use add() for write access
DOES NOT DO ANY BOUNDS CHECKING
- 参数:
-
- 返回:
- element at index
在文件Set.h第102行定义。
Remove an element from the set
- 参数:
-
在文件Set.h第56行定义。
成员数据文档
dynamic array the set is based on
在文件Set.h第112行定义。
该类的文档由以下文件生成: