A multilist container ...
More...
#include <ocean/shrimp/VMultipleStringList.hpp>
|
| bool | add (const string &item, const USE &which) |
| | add item to one ore both of the lists.
|
| |
|
void | addAllSnakes () |
| | All items from medusa will be added to snakes.
|
| |
| void | clear (const USE &which) |
| | Clear list.
|
| |
| bool | contains (const string &item, const USE &which) const |
| | Test if item is in the list.
|
| |
| const myList_t & | getList (const USE &which) const |
| | Return a copy of the list.
|
| |
|
void | invertSnakes () |
| | Invert snakes.
|
| |
|
| MultipleStringSelection () |
| | Construct a new empty Multiple String Selection.
|
| |
| | MultipleStringSelection (const MultipleStringSelection &other) |
| | Copy contructor.
|
| |
|
| MultipleStringSelection (const StringList &stringList) |
| | Construct a new Multiple String Selection via StringList.
|
| |
|
string | print () const |
| | print medusa and snakes
|
| |
| bool | remove (const string &item, const USE &which) |
| | remove to one ore both of the lists
|
| |
| uint32_t | size (const USE &which) const |
| | size of the list
|
| |
| auto | getObjectCountID () const noexcept |
| | Get a unique ID for this object in the given domain.
|
| |
|
bool | isIdentical (const WeakPtr< MultipleStringSelection, MultipleStringSelection > &PossibleSelf) const noexcept |
| | Check if this object is identical to the one used by the given pointer.
|
| |
| void | mkAutoDestructive () |
| | Marks this object as being automatically destructed, e.g.
|
| |
|
refcount_t | refcount () const noexcept |
| | The strong reference count.
|
| |
|
| ReferenceBase (MultipleStringSelection *that) noexcept |
| | Constructor, initializes reference counter to zero.
|
| |
| const auto & | self () const |
| | Return weak pointer to the object self.
|
| |
|
refcount_t | wrefcount () const noexcept |
| | The weak reference count.
|
| |
|
|
using | reference_domain_t = MultipleStringSelection |
| | The type of the base class.
|
| |
|
using | SelfPtr_t = WeakPtr< MultipleStringSelection, MultipleStringSelection > |
| | Type for a pointer to this object itself.
|
| |
| virtual void | extremeUnction () |
| | A virtual function that will be called just before the object is destroyed.
|
| |
| ReferenceBase & | operator= (const ReferenceBase &R) |
| | Protected assignment operator (should not be called).
|
| |
|
void | suicide () |
| | Delete this.
|
| |
|
virtual | ~ReferenceBase () |
| | Virtual destructor.
|
| |
A multilist container ...
◆ MultipleStringSelection()
Copy contructor.
- Parameters
-
◆ add()
| bool Wizt::MultipleStringSelection::add |
( |
const string & |
item, |
|
|
const USE & |
which |
|
) |
| |
add item to one ore both of the lists.
Adding to snakes will fail if item is not part of medusa
- Parameters
-
| item | a list item |
| which | chose the appropriate list: either USE::MEDUSA or USE::SNAKES |
- Returns
- true if successfully added false otherwise
◆ clear()
| void Wizt::MultipleStringSelection::clear |
( |
const USE & |
which | ) |
|
Clear list.
- Parameters
-
| which | chose the appropriate list: either USE::MEDUSA or USE::SNAKES |
◆ contains()
| bool Wizt::MultipleStringSelection::contains |
( |
const string & |
item, |
|
|
const USE & |
which |
|
) |
| const |
Test if item is in the list.
- Parameters
-
| which | chose the appropriate list: either USE::MEDUSA or USE::SNAKES |
- Returns
- true if in the list
Referenced by print().
◆ getList()
| const myList_t & Wizt::MultipleStringSelection::getList |
( |
const USE & |
which | ) |
const |
Return a copy of the list.
- Parameters
-
| which | chose the appropriate list: either USE::MEDUSA or USE::SNAKES |
- Returns
- the myList_t
◆ remove()
| bool Wizt::MultipleStringSelection::remove |
( |
const string & |
item, |
|
|
const USE & |
which |
|
) |
| |
remove to one ore both of the lists
- Parameters
-
| item | a list item |
| which | chose the appropriate list: either USE::MEDUSA or USE::SNAKES |
- Returns
- true if successfully removed false otherwise
◆ size()
| uint32_t Wizt::MultipleStringSelection::size |
( |
const USE & |
which | ) |
const |
size of the list
- Parameters
-
| which | chose the appropriate list: either USE::MEDUSA or USE::SNAKES |