This is a helper class for generating nested groups of elements in the diagrams, e.g. PlantUML together
option.
T | Type of stack elements |
Definition at line 33 of file nested_element_stack.h.
#include <nested_element_stack.h>
Public Member Functions | |
nested_element_stack (bool is_flat) | |
void | enter () |
void | leave () |
void | group_together (const std::string &group_name, T *e) |
const std::map< std::string, std::vector< T * > > & | get_current_groups () |
const std::vector< T * > & | get_group (const std::string &group_name) |
bool | is_flat () const |
Private Attributes | |
bool | is_flat_ |
uint32_t | current_level_ {0} |
std::vector< std::map< std::string, std::vector< T * > > > | current_level_groups_ |
|
inline |
Definition at line 35 of file nested_element_stack.h.
|
inline |
Switch to next level in the element stack
Definition at line 44 of file nested_element_stack.h.
|
inline |
Get map of element groups at the current level.
Definition at line 76 of file nested_element_stack.h.
|
inline |
Get element group by name - the group must exist at the current level.
group_name | Element group name |
Definition at line 87 of file nested_element_stack.h.
|
inline |
Add element pointer to a specified group at the current level
Definition at line 66 of file nested_element_stack.h.
|
inline |
Definition at line 92 of file nested_element_stack.h.
|
inline |
Switch to previous level in the element stack
Definition at line 55 of file nested_element_stack.h.
|
private |
Definition at line 97 of file nested_element_stack.h.
|
private |
Definition at line 99 of file nested_element_stack.h.
|
private |
Definition at line 95 of file nested_element_stack.h.