Added a single-member group getter
This commit is contained in:
parent
9918e0e3e8
commit
f4ba176e1e
1 changed files with 6 additions and 0 deletions
|
@ -76,6 +76,12 @@ public:
|
|||
return members_;
|
||||
}
|
||||
|
||||
template<typename W>
|
||||
W& member(const T& value)
|
||||
{
|
||||
return dynamic_cast<W&>(*members_.at(value));
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the value paired with the currently actively toggled member
|
||||
* of the group.
|
||||
|
|
Loading…
Add table
Reference in a new issue