OpendTect-6_4  6.4
Public Member Functions | Static Private Member Functions | List of all members
uiStringSet Class Reference
Inheritance diagram for uiStringSet:
[legend]

Public Member Functions

 uiStringSet ()
 
 uiStringSet (const uiString *)
 
 uiStringSet (const uiStringSet &sl)
 
 uiStringSet (const uiString &s)
 
uiString createOptionString (bool use_and=true, int maxnritems=-1, char space= ' ') const
 Returns a string with "option1, option2, and/or option 3". More...
 
void fill (::QStringList &) const
 
uiString cat (const char *sepstr="\n") const
 
- Public Member Functions inherited from TypeSet< uiString >
 TypeSet ()
 
 TypeSet (int nr, uiString typ)
 
 TypeSet (const uiString *t, int nr)
 
 TypeSet (const TypeSet< uiString > &t)
 
- Public Member Functions inherited from TypeSetBase< uiString, int >
virtual ~TypeSetBase ()
 
TypeSetBase< uiString, int > & operator= (const TypeSetBase< uiString, int > &ts)
 
size_type size () const
 
virtual int64_t nrItems () const
 
virtual bool setSize (size_type, uiString val=uiString())
 
virtual bool setCapacity (size_type sz, bool withmargin)
 
virtual size_type getCapacity () const
 
void setAll (uiString)
 
void replace (uiString, uiString)
 
uiStringoperator[] (size_type)
 
const uiStringoperator[] (size_type) const
 
uiStringfirst ()
 
const uiStringfirst () const
 
uiStringlast ()
 
const uiStringlast () const
 
virtual bool validIdx (int64_t) const
 
virtual size_type indexOf (uiString, bool forward=true, size_type start=-1) const
 
bool isPresent (const uiString &) const
 
size_type count (const uiString &) const
 
TypeSetBase< uiString, int > & add (const uiString &)
 
virtual void insert (size_type, const uiString &)
 
bool push (const uiString &)
 
uiString pop ()
 
TypeSetBase< uiString, int > & operator+= (const uiString &t)
 
virtual bool append (const uiString *, size_type)
 
virtual bool append (const TypeSetBase< uiString, int > &)
 
virtual bool addIfNew (const uiString &)
 
virtual TypeSetBase< uiString, int > & copy (const uiString *, size_type)
 
virtual TypeSetBase< uiString, int > & copy (const TypeSetBase< uiString, int > &)
 
virtual void createUnion (const TypeSetBase< uiString, int > &)
 
virtual void createIntersection (const TypeSetBase< uiString, int > &)
 Only keeps common items. More...
 
virtual void createDifference (const TypeSetBase< uiString, int > &, bool must_preserve_order=false)
 Removes all items present in other set. More...
 
virtual void swap (int64_t, int64_t)
 
virtual void move (size_type from, size_type to)
 
virtual void getReOrdered (const size_type *, TypeSetBase< uiString, int > &)
 Fills as per the given array of indexes. More...
 
virtual void reverse ()
 
virtual void erase ()
 
virtual void removeSingle (size_type, bool preserver_order=true)
 
TypeSetBase< uiString, int > & operator-= (const uiString &)
 
virtual void removeRange (size_type from, size_type to)
 
virtual uiStringarr ()
 3rd party access More...
 
virtual const uiStringarr () const
 
std::vector< uiString > & vec ()
 
const std::vector< uiString > & vec () const
 
- Public Member Functions inherited from OD::Set
virtual ~Set ()
 
bool isEmpty () const
 
void setEmpty ()
 

Static Private Member Functions

static uiString tr (const char *text, const char *disambiguation=0, int pluralnr=-1)
 
static uiString legacyTr (const char *text, const char *disambiguation=0, int pluralnr=-1)
 

Additional Inherited Members

- Public Types inherited from TypeSetBase< uiString, int >
typedef int size_type
 
typedef uiString object_type
 
- Protected Member Functions inherited from TypeSetBase< uiString, int >
 TypeSetBase ()
 
 TypeSetBase (size_type nr, uiString typ)
 
 TypeSetBase (const uiString *, size_type nr)
 
 TypeSetBase (const TypeSetBase< uiString, size_type > &)
 
virtual uiStringgtArr () const
 
- Protected Attributes inherited from TypeSetBase< uiString, int >
VectorAccess< uiString, int > vec_
 

Detailed Description

Constructor & Destructor Documentation

uiStringSet::uiStringSet ( )
inline
uiStringSet::uiStringSet ( const uiString )

Adds list of strings until an empty string is found.

uiStringSet::uiStringSet ( const uiStringSet sl)
inline
uiStringSet::uiStringSet ( const uiString s)
inline

Member Function Documentation

uiString uiStringSet::cat ( const char *  sepstr = "\n") const
uiString uiStringSet::createOptionString ( bool  use_and = true,
int  maxnritems = -1,
char  space = ' ' 
) const

Returns a string with "option1, option2, and/or option 3".

void uiStringSet::fill ( ::QStringList &  ) const
static uiString uiStringSet::legacyTr ( const char *  text,
const char *  disambiguation = 0,
int  pluralnr = -1 
)
inlinestaticprivate
static uiString uiStringSet::tr ( const char *  text,
const char *  disambiguation = 0,
int  pluralnr = -1 
)
inlinestaticprivate

Generated at for the OpendTect seismic interpretation project. Copyright (C): dGB Beheer B. V. 2019