The Vish Visualization Shell 0.3
Vish
Public Member Functions | List of all members
MemCore::StringList Struct Reference

A list of strings. More...

#include <elementary/memcore/stringlist.hpp>

Inheritance diagram for MemCore::StringList:
MemCore::ReferenceBase< StringList > Wizt::StringSelection Wizt::VEnumSelection

Public Member Functions

template<typename... Arguments>
void addString (const string &Value, Arguments... parameters)
 Recursive handling of parameter pack.
 
string collapse (const string &delimiter) const
 Collapse a list of strings to a single string.
 
bool contains (const string &s) const
 Check if a certain string is contained here.
 
 StringList ()
 Construct empty string list.
 
 StringList (const string &path, char delimiter)
 Construct from some string by splitting up using the giving delimiter.
 
 StringList (const string &s)
 Construct string list with one entry.
 
 StringList (const string &s0, const string &s1)
 Construct string list with two entries.
 
 StringList (const string &s0, const string &s1, const string &s2)
 Construct string list with three entries.
 
 StringList (const StringList &SL)
 Construct empty string list.
 
- Public Member Functions inherited from MemCore::ReferenceBase< StringList >
auto getObjectCountID () const noexcept
 Get a unique ID for this object in the given domain.
 
bool isIdentical (const WeakPtr< StringList, StringList > &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 (StringList *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< StringList >
using reference_domain_t = StringList
 The type of the base class.
 
using SelfPtr_t = WeakPtr< StringList, StringList >
 Type for a pointer to this object itself.
 
- Protected Member Functions inherited from MemCore::ReferenceBase< StringList >
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 list of strings.

It behaves like a std::list of strings, but can be managed through RefPtr's. Multiple entries are possible.