|
SHOGUN
v1.1.0
|
Template Set class.
Lazy implementation of a set. Set grows and shrinks dynamically and can be conveniently iterated through via the [] operator.

Public Member Functions | |
| CSet (bool traceable=true) | |
| ~CSet () | |
| void | add (T e) |
| void | remove (T e) |
| bool | contains (T e) |
| int32_t | index_of (T e) |
| int32_t | get_num_elements () const |
| T | get_element (int32_t index) const |
| T * | get_element_ptr (int32_t index) |
| T | operator[] (int32_t index) const |
| T * | get_array () |
| virtual const char * | get_name () const |
Protected Attributes | |
| DynArray< T > * | array |
| void add | ( | T | e | ) |
| bool contains | ( | T | e | ) |
| T get_element | ( | int32_t | index | ) | const |
| T* get_element_ptr | ( | int32_t | index | ) |
| virtual const char* get_name | ( | ) | const [virtual] |
| int32_t get_num_elements | ( | ) | const |
| int32_t index_of | ( | T | e | ) |
| T operator[] | ( | int32_t | index | ) | const |
| void remove | ( | T | e | ) |