The Vish Visualization Shell 0.3
Vish
Public Member Functions | List of all members
Wizt::MultipleStringSelection Class Reference

A multilist container ... More...

#include <ocean/shrimp/VMultipleStringList.hpp>

Inheritance diagram for Wizt::MultipleStringSelection:
MemCore::ReferenceBase< MultipleStringSelection >

Public Member Functions

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
 
- Public Member Functions inherited from MemCore::ReferenceBase< MultipleStringSelection >
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.
 

Additional Inherited Members

- Public Types inherited from MemCore::ReferenceBase< MultipleStringSelection >
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.
 
- Protected Member Functions inherited from MemCore::ReferenceBase< MultipleStringSelection >
virtual void extremeUnction ()
 A virtual function that will be called just before the object is destroyed.
 
ReferenceBaseoperator= (const ReferenceBase &R)
 Protected assignment operator (should not be called).
 
void suicide ()
 Delete this.
 
virtual ~ReferenceBase ()
 Virtual destructor.
 

Detailed Description

A multilist container ...

Constructor & Destructor Documentation

◆ MultipleStringSelection()

Wizt::MultipleStringSelection::MultipleStringSelection ( const MultipleStringSelection other)

Copy contructor.

Parameters
other

Member Function Documentation

◆ 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
itema list item
whichchose 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
whichchose 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
whichchose 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
whichchose 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
itema list item
whichchose 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
whichchose the appropriate list: either USE::MEDUSA or USE::SNAKES