Added to_list method for read only STL list access to the
observable_list
This commit is contained in:
parent
fdb75fdd2a
commit
efa4847a61
1 changed files with 13 additions and 0 deletions
|
|
@ -263,6 +263,19 @@ public:
|
|||
changed.emit();
|
||||
}
|
||||
|
||||
public:
|
||||
/* ===== Conversions ===== */
|
||||
|
||||
/**
|
||||
* Returns a copy of this observable_list converted to an STL list
|
||||
* object.
|
||||
* @return Returns a copy of the STL list.
|
||||
**/
|
||||
std::list<T, Allocator> to_list() const
|
||||
{
|
||||
return list;
|
||||
}
|
||||
|
||||
public:
|
||||
/* ===== Signals ===== */
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue