OpendTect  6.6
Public Types | Public Member Functions | Protected Types | Protected Attributes | List of all members
uiStringSet Class Reference

Public Types

typedef uiString::AppendType AppendType
 
typedef impl_type::const_iterator const_iterator
 
typedef impl_type::const_reference const_reference
 
typedef impl_type::difference_type difference_type
 
typedef impl_type::idx_type idx_type
 
typedef impl_type::iterator iterator
 
typedef impl_type::object_type object_type
 
typedef impl_type::reference reference
 
typedef uiString::SeparType SeparType
 
typedef impl_type::size_type size_type
 
typedef impl_type::value_type value_type
 

Public Member Functions

 uiStringSet ()
 
 uiStringSet (const QStringList &)
 
 uiStringSet (const uiString &)
 
 uiStringSet (const uiString &, const uiString &)
 
 uiStringSet (const uiString &, const uiString &, const uiString &)
 
 uiStringSet (const uiStringSet &oth)
 
 ~uiStringSet ()
 
uiStringSetadd (const uiRetVal &)
 
uiStringSetadd (const uiString &)
 
uiStringSetadd (const uiStringSet &)
 
template<class T >
uiStringSetaddKeyValue (const uiWord &ky, const T &val)
 
uiStringSetaddKeyValue (const uiWord &ky, const uiString &val)
 
uiStringSetappend (const uiStringSet &ss)
 
iterator begin ()
 
const_iterator begin () const
 
uiString cat (const char *sepstr) const
 
uiString cat (SeparType septyp=uiString::CloseLine, AppendType apptyp=uiString::OnNewLine) const
 
const_iterator cbegin () const
 
const_iterator cend () const
 
uiString createOptionString (bool use_and=true, int maxnritems=-1, bool separate_lines=false) const
 example: "option1, option2 and option3" More...
 
bool empty () const
 
iterator end ()
 
const_iterator end () const
 
void erase ()
 
void fill (QStringList &) const
 
uiStringget (idx_type)
 
const uiStringget (idx_type) const
 
size_type getIdx (const_iterator it) const
 
size_type getIdx (iterator it) const
 
uiStringSet getNonEmpty () const
 
idx_typegetSortIndexes (bool caseinsens, bool asc) const
 
idx_type indexOf (const uiString &) const
 
uiStringSetinsert (idx_type, const uiString &)
 
bool isEmpty () const
 
bool isPresent (const uiString &) const
 
size_type max_size () const
 
uiStringSetoperator+= (const uiString &s)
 
uiStringSetoperator= (const uiStringSet &)
 
uiStringoperator[] (idx_type i)
 
const uiStringoperator[] (idx_type i) const
 
void removeRange (idx_type, idx_type)
 
void removeSingle (idx_type, bool keep_order=true)
 
uiStringSetset (const uiRetVal &)
 
uiStringSetset (const uiString &)
 
uiStringSetset (const uiStringSet &oth)
 
void setEmpty ()
 
size_type size () const
 
void sort (const bool caseinsens=true, bool asc=true)
 
void swap (idx_type i1, idx_type i2)
 
void swap (uiStringSet &oth)
 
void useIndexes (const idx_type *idxs)
 
bool validIdx (idx_type i) const
 

Protected Types

typedef ObjectSet< uiStringimpl_type
 

Protected Attributes

impl_type strs_
 

Detailed Description

<>

Member Typedef Documentation

◆ AppendType

◆ const_iterator

◆ const_reference

◆ difference_type

◆ idx_type

◆ impl_type

◆ iterator

◆ object_type

◆ reference

◆ SeparType

◆ size_type

◆ value_type

Constructor & Destructor Documentation

◆ uiStringSet() [1/6]

uiStringSet::uiStringSet ( )
inline

◆ uiStringSet() [2/6]

uiStringSet::uiStringSet ( const uiString )

◆ uiStringSet() [3/6]

uiStringSet::uiStringSet ( const uiString ,
const uiString  
)

◆ uiStringSet() [4/6]

uiStringSet::uiStringSet ( const uiString ,
const uiString ,
const uiString  
)

◆ uiStringSet() [5/6]

uiStringSet::uiStringSet ( const uiStringSet oth)
inline

◆ uiStringSet() [6/6]

uiStringSet::uiStringSet ( const QStringList &  )

◆ ~uiStringSet()

uiStringSet::~uiStringSet ( )

Member Function Documentation

◆ add() [1/3]

uiStringSet& uiStringSet::add ( const uiRetVal )

◆ add() [2/3]

uiStringSet& uiStringSet::add ( const uiString )

◆ add() [3/3]

uiStringSet& uiStringSet::add ( const uiStringSet )

◆ addKeyValue() [1/2]

template<class T >
uiStringSet& uiStringSet::addKeyValue ( const uiWord ky,
const T &  val 
)
inline

◆ addKeyValue() [2/2]

uiStringSet& uiStringSet::addKeyValue ( const uiWord ky,
const uiString val 
)

◆ append()

uiStringSet& uiStringSet::append ( const uiStringSet ss)
inline

◆ begin() [1/2]

iterator uiStringSet::begin ( )
inline

◆ begin() [2/2]

const_iterator uiStringSet::begin ( ) const
inline

◆ cat() [1/2]

uiString uiStringSet::cat ( const char *  sepstr) const

◆ cat() [2/2]

uiString uiStringSet::cat ( SeparType  septyp = uiString::CloseLine,
AppendType  apptyp = uiString::OnNewLine 
) const

◆ cbegin()

const_iterator uiStringSet::cbegin ( ) const
inline

◆ cend()

const_iterator uiStringSet::cend ( ) const
inline

◆ createOptionString()

uiString uiStringSet::createOptionString ( bool  use_and = true,
int  maxnritems = -1,
bool  separate_lines = false 
) const

example: "option1, option2 and option3"

◆ empty()

bool uiStringSet::empty ( ) const
inline

◆ end() [1/2]

iterator uiStringSet::end ( )
inline

◆ end() [2/2]

const_iterator uiStringSet::end ( ) const
inline

◆ erase()

void uiStringSet::erase ( )
inline

◆ fill()

void uiStringSet::fill ( QStringList &  ) const

◆ get() [1/2]

uiString& uiStringSet::get ( idx_type  )

◆ get() [2/2]

const uiString& uiStringSet::get ( idx_type  ) const

◆ getIdx() [1/2]

size_type uiStringSet::getIdx ( const_iterator  it) const
inline

◆ getIdx() [2/2]

size_type uiStringSet::getIdx ( iterator  it) const
inline

◆ getNonEmpty()

uiStringSet uiStringSet::getNonEmpty ( ) const

◆ getSortIndexes()

idx_type* uiStringSet::getSortIndexes ( bool  caseinsens,
bool  asc 
) const

◆ indexOf()

idx_type uiStringSet::indexOf ( const uiString ) const

◆ insert()

uiStringSet& uiStringSet::insert ( idx_type  ,
const uiString  
)

◆ isEmpty()

bool uiStringSet::isEmpty ( ) const
inline

◆ isPresent()

bool uiStringSet::isPresent ( const uiString ) const

◆ max_size()

size_type uiStringSet::max_size ( ) const
inline

◆ operator+=()

uiStringSet& uiStringSet::operator+= ( const uiString s)
inline

◆ operator=()

uiStringSet& uiStringSet::operator= ( const uiStringSet )

◆ operator[]() [1/2]

uiString& uiStringSet::operator[] ( idx_type  i)
inline

◆ operator[]() [2/2]

const uiString& uiStringSet::operator[] ( idx_type  i) const
inline

◆ removeRange()

void uiStringSet::removeRange ( idx_type  ,
idx_type   
)

◆ removeSingle()

void uiStringSet::removeSingle ( idx_type  ,
bool  keep_order = true 
)

◆ set() [1/3]

uiStringSet& uiStringSet::set ( const uiRetVal )

◆ set() [2/3]

uiStringSet& uiStringSet::set ( const uiString )

◆ set() [3/3]

uiStringSet& uiStringSet::set ( const uiStringSet oth)
inline

◆ setEmpty()

void uiStringSet::setEmpty ( )

◆ size()

size_type uiStringSet::size ( ) const
inline

◆ sort()

void uiStringSet::sort ( const bool  caseinsens = true,
bool  asc = true 
)

◆ swap() [1/2]

void uiStringSet::swap ( idx_type  i1,
idx_type  i2 
)
inline

◆ swap() [2/2]

void uiStringSet::swap ( uiStringSet oth)
inline

◆ useIndexes()

void uiStringSet::useIndexes ( const idx_type idxs)

◆ validIdx()

bool uiStringSet::validIdx ( idx_type  i) const
inline

Member Data Documentation

◆ strs_

impl_type uiStringSet::strs_
protected

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