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

Set of BufferString objects. More...

Inheritance diagram for BufferStringSet:
[legend]

Public Types

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 ObjectSet< BufferStringSetType
 
typedef impl_type::size_type size_type
 
typedef impl_type::value_type value_type
 

Public Member Functions

 BufferStringSet ()
 
 BufferStringSet (const char *)
 
 BufferStringSet (const char *, const char *)
 
 BufferStringSet (const char *, const char *, const char *)
 
 BufferStringSet (const char *arr[], size_type len=-1)
 
 BufferStringSet (size_type n, const char *s=nullptr)
 
virtual ~BufferStringSet ()
 
BufferStringSetadd (BufferString *bs)
 
BufferStringSetadd (const BufferStringSet &, bool allowduplicates)
 
BufferStringSetadd (const char *)
 
BufferStringSetadd (const char *arr[], size_type len=-1)
 
BufferStringSetadd (const OD::String &)
 
BufferStringSetadd (const QString &)
 
bool addIfNew (const char *)
 returns whether added More...
 
bool addIfNew (const OD::String &)
 
BufferStringSetaddToAll (const char *, bool infront=false)
 
BufferStringSetaddWordsFrom (const char *)
 
void allowNull (bool yn=true)
 
void append (const BufferStringSet &oth)
 
iterator begin ()
 
const_iterator begin () const
 
BufferString cat (const char *sepstr="\n") const
 
const_iterator cbegin () const
 
const_iterator cend () const
 
BufferStringSetclone () const
 
BufferString commonStart () const
 
BufferStringSetcopy (const BufferStringSet &)
 
bool empty () const
 
iterator end ()
 
const_iterator end () const
 
virtual void erase ()
 
void fill (QStringList &) const
 
void fill (uiStringSet &) const
 
virtual void fillPar (IOPar &) const
 
BufferStringfirst ()
 
const BufferStringfirst () const
 
idx_type firstDuplicateOf (idx_type, CaseSensitivity c=CaseSensitive, idx_type startat=0) const
 
BufferStringget (idx_type idx)
 
const BufferStringget (idx_type idx) const
 
BufferString getDispString (size_type maxnritems=-1, bool quoted=true) const
 
size_type getIdx (const_iterator it) const
 
size_type getIdx (iterator it) const
 
TypeSet< idx_typegetMatches (const char *globexpr, CaseSensitivity cs=CaseInsensitive) const
 
idx_typegetSortIndexes (bool caseinsns=true, bool asc=true) const
 
SetTypegetStringSet ()
 
const SetTypegetStringSet () const
 
uiStringSet getUiStringSet () const
 
bool hasUniqueNames (CaseSensitivity c=CaseSensitive) const
 
idx_type indexOf (const BufferString *b) const
 
idx_type indexOf (const char *, CaseSensitivity s=CaseSensitive) const
 first match More...
 
idx_type indexOf (const GlobExpr &) const
 first match More...
 
void insertAt (BufferString *bs, idx_type idx)
 
bool isEmpty () const
 
bool isPresent (const BufferString *b) const
 
bool isPresent (const char *s, CaseSensitivity c=CaseSensitive) const
 
bool isSubsetOf (const BufferStringSet &) const
 
BufferStringlast ()
 
const BufferStringlast () const
 
size_type max_size () const
 
size_type maxLength () const
 
idx_type nearestMatch (const char *, bool caseinsens) const
 
idx_type nearestMatch (const char *, CaseSensitivity cs=CaseInsensitive) const
 
virtual int64_t nrItems () const
 
bool operator!= (const BufferStringSet &) const
 
BufferStringSetoperator+= (BufferString *bs)
 
BufferStringSetoperator= (const char *arr[])
 
bool operator== (const BufferStringSet &) const
 
BufferStringoperator[] (idx_type idx)
 
const BufferStringoperator[] (idx_type idx) const
 
bool remove (const char *)
 
void removeRange (idx_type i1, idx_type i2)
 
void removeSingle (idx_type i)
 
void removeSingle (idx_type i, bool)
 
BufferStringSetreplace (idx_type idx, BufferString *bs)
 
virtual void reverse ()
 
BufferStringSetset (idx_type idx, BufferString *bs)
 
void setEmpty ()
 
void setNullAllowed (bool yn=true)
 
size_type size () const
 
void sort (bool caseinsens=true, bool asc=true)
 
void swap (BufferStringSet &oth)
 
void swap (idx_type i1, idx_type i2)
 
virtual void swapItems (int64_t i1, int64_t i2)
 
void unCat (const char *, const char *sepstr="\n")
 
void use (const QStringList &)
 
void use (const uiStringSet &)
 
void useIndexes (const idx_type *idxs)
 
virtual void usePar (const IOPar &)
 
virtual bool validIdx (int64_t i) const
 
- Public Member Functions inherited from OD::Set
virtual ~Set ()
 
bool isEmpty () const
 
void setEmpty ()
 

Protected Types

typedef ManagedObjectSet< BufferStringimpl_type
 

Protected Attributes

impl_type strs_
 

Additional Inherited Members

- Static Public Member Functions inherited from OD::Set
static int maxIdx32 ()
 
static int64_t maxIdx64 ()
 

Detailed Description

Set of BufferString objects.

<>

Member Typedef Documentation

◆ const_iterator

◆ const_reference

◆ difference_type

◆ idx_type

◆ impl_type

◆ iterator

◆ object_type

◆ reference

◆ SetType

◆ size_type

◆ value_type

Constructor & Destructor Documentation

◆ BufferStringSet() [1/6]

BufferStringSet::BufferStringSet ( )
inline

◆ BufferStringSet() [2/6]

BufferStringSet::BufferStringSet ( size_type  n,
const char *  s = nullptr 
)
explicit

◆ BufferStringSet() [3/6]

BufferStringSet::BufferStringSet ( const char *  arr[],
size_type  len = -1 
)
explicit

◆ BufferStringSet() [4/6]

BufferStringSet::BufferStringSet ( const char *  )
explicit

◆ BufferStringSet() [5/6]

BufferStringSet::BufferStringSet ( const char *  ,
const char *   
)

◆ BufferStringSet() [6/6]

BufferStringSet::BufferStringSet ( const char *  ,
const char *  ,
const char *   
)

◆ ~BufferStringSet()

virtual BufferStringSet::~BufferStringSet ( )
inlinevirtual

Member Function Documentation

◆ add() [1/6]

BufferStringSet& BufferStringSet::add ( BufferString bs)
inline

◆ add() [2/6]

BufferStringSet& BufferStringSet::add ( const BufferStringSet ,
bool  allowduplicates 
)

◆ add() [3/6]

BufferStringSet& BufferStringSet::add ( const char *  )

◆ add() [4/6]

BufferStringSet& BufferStringSet::add ( const char *  arr[],
size_type  len = -1 
)

◆ add() [5/6]

BufferStringSet& BufferStringSet::add ( const OD::String )

◆ add() [6/6]

BufferStringSet& BufferStringSet::add ( const QString &  )

◆ addIfNew() [1/2]

bool BufferStringSet::addIfNew ( const char *  )

returns whether added

◆ addIfNew() [2/2]

bool BufferStringSet::addIfNew ( const OD::String )

◆ addToAll()

BufferStringSet& BufferStringSet::addToAll ( const char *  ,
bool  infront = false 
)

◆ addWordsFrom()

BufferStringSet& BufferStringSet::addWordsFrom ( const char *  )

◆ allowNull()

void BufferStringSet::allowNull ( bool  yn = true)
inline

◆ append()

void BufferStringSet::append ( const BufferStringSet oth)
inline

◆ begin() [1/2]

iterator BufferStringSet::begin ( )
inline

◆ begin() [2/2]

const_iterator BufferStringSet::begin ( ) const
inline

◆ cat()

BufferString BufferStringSet::cat ( const char *  sepstr = "\n") const

◆ cbegin()

const_iterator BufferStringSet::cbegin ( ) const
inline

◆ cend()

const_iterator BufferStringSet::cend ( ) const
inline

◆ clone()

BufferStringSet* BufferStringSet::clone ( ) const
inlinevirtual

Implements OD::Set.

◆ commonStart()

BufferString BufferStringSet::commonStart ( ) const

◆ copy()

BufferStringSet& BufferStringSet::copy ( const BufferStringSet )

◆ empty()

bool BufferStringSet::empty ( ) const
inline

◆ end() [1/2]

iterator BufferStringSet::end ( )
inline

◆ end() [2/2]

const_iterator BufferStringSet::end ( ) const
inline

◆ erase()

virtual void BufferStringSet::erase ( )
inlinevirtual

Implements OD::Set.

Reimplemented in CommandDefs.

◆ fill() [1/2]

void BufferStringSet::fill ( QStringList &  ) const

◆ fill() [2/2]

void BufferStringSet::fill ( uiStringSet ) const

◆ fillPar()

virtual void BufferStringSet::fillPar ( IOPar ) const
virtual

◆ first() [1/2]

BufferString* BufferStringSet::first ( )
inline

◆ first() [2/2]

const BufferString* BufferStringSet::first ( ) const
inline

◆ firstDuplicateOf()

idx_type BufferStringSet::firstDuplicateOf ( idx_type  ,
CaseSensitivity  c = CaseSensitive,
idx_type  startat = 0 
) const

◆ get() [1/2]

BufferString& BufferStringSet::get ( idx_type  idx)
inline

◆ get() [2/2]

const BufferString& BufferStringSet::get ( idx_type  idx) const
inline

◆ getDispString()

BufferString BufferStringSet::getDispString ( size_type  maxnritems = -1,
bool  quoted = true 
) const

◆ getIdx() [1/2]

size_type BufferStringSet::getIdx ( const_iterator  it) const
inline

◆ getIdx() [2/2]

size_type BufferStringSet::getIdx ( iterator  it) const
inline

◆ getMatches()

TypeSet<idx_type> BufferStringSet::getMatches ( const char *  globexpr,
CaseSensitivity  cs = CaseInsensitive 
) const

◆ getSortIndexes()

idx_type* BufferStringSet::getSortIndexes ( bool  caseinsns = true,
bool  asc = true 
) const

returns new int [size()] for you to 'delete []' does NOT sort but provides data for useIndexes

◆ getStringSet() [1/2]

SetType& BufferStringSet::getStringSet ( )
inline

◆ getStringSet() [2/2]

const SetType& BufferStringSet::getStringSet ( ) const
inline

◆ getUiStringSet()

uiStringSet BufferStringSet::getUiStringSet ( ) const

◆ hasUniqueNames()

bool BufferStringSet::hasUniqueNames ( CaseSensitivity  c = CaseSensitive) const

◆ indexOf() [1/3]

idx_type BufferStringSet::indexOf ( const BufferString b) const
inline

◆ indexOf() [2/3]

idx_type BufferStringSet::indexOf ( const char *  ,
CaseSensitivity  s = CaseSensitive 
) const

first match

◆ indexOf() [3/3]

idx_type BufferStringSet::indexOf ( const GlobExpr ) const

first match

◆ insertAt()

void BufferStringSet::insertAt ( BufferString bs,
idx_type  idx 
)
inline

◆ isEmpty()

bool BufferStringSet::isEmpty ( ) const
inline

◆ isPresent() [1/2]

bool BufferStringSet::isPresent ( const BufferString b) const
inline

◆ isPresent() [2/2]

bool BufferStringSet::isPresent ( const char *  s,
CaseSensitivity  c = CaseSensitive 
) const
inline

◆ isSubsetOf()

bool BufferStringSet::isSubsetOf ( const BufferStringSet ) const

◆ last() [1/2]

BufferString* BufferStringSet::last ( )
inline

◆ last() [2/2]

const BufferString* BufferStringSet::last ( ) const
inline

◆ max_size()

size_type BufferStringSet::max_size ( ) const
inline

◆ maxLength()

size_type BufferStringSet::maxLength ( ) const

◆ nearestMatch() [1/2]

idx_type BufferStringSet::nearestMatch ( const char *  ,
bool  caseinsens 
) const

◆ nearestMatch() [2/2]

idx_type BufferStringSet::nearestMatch ( const char *  ,
CaseSensitivity  cs = CaseInsensitive 
) const

◆ nrItems()

virtual int64_t BufferStringSet::nrItems ( ) const
inlinevirtual

Implements OD::Set.

◆ operator!=()

bool BufferStringSet::operator!= ( const BufferStringSet ) const

◆ operator+=()

BufferStringSet& BufferStringSet::operator+= ( BufferString bs)
inline

◆ operator=()

BufferStringSet& BufferStringSet::operator= ( const char *  arr[])

◆ operator==()

bool BufferStringSet::operator== ( const BufferStringSet ) const

◆ operator[]() [1/2]

BufferString* BufferStringSet::operator[] ( idx_type  idx)
inline

◆ operator[]() [2/2]

const BufferString* BufferStringSet::operator[] ( idx_type  idx) const
inline

◆ remove()

bool BufferStringSet::remove ( const char *  )

◆ removeRange()

void BufferStringSet::removeRange ( idx_type  i1,
idx_type  i2 
)
inline

◆ removeSingle() [1/2]

void BufferStringSet::removeSingle ( idx_type  i)
inline

◆ removeSingle() [2/2]

void BufferStringSet::removeSingle ( idx_type  i,
bool   
)
inline

◆ replace()

BufferStringSet& BufferStringSet::replace ( idx_type  idx,
BufferString bs 
)
inline

◆ reverse()

virtual void BufferStringSet::reverse ( )
inlinevirtual

Implements OD::Set.

◆ set()

BufferStringSet& BufferStringSet::set ( idx_type  idx,
BufferString bs 
)
inline

◆ setEmpty()

void BufferStringSet::setEmpty ( )
inline

◆ setNullAllowed()

void BufferStringSet::setNullAllowed ( bool  yn = true)
inline

◆ size()

size_type BufferStringSet::size ( ) const
inline

◆ sort()

void BufferStringSet::sort ( bool  caseinsens = true,
bool  asc = true 
)

◆ swap() [1/2]

void BufferStringSet::swap ( BufferStringSet oth)
inline

◆ swap() [2/2]

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

◆ swapItems()

virtual void BufferStringSet::swapItems ( int64_t  i1,
int64_t  i2 
)
inlinevirtual

Implements OD::Set.

◆ unCat()

void BufferStringSet::unCat ( const char *  ,
const char *  sepstr = "\n" 
)

◆ use() [1/2]

void BufferStringSet::use ( const QStringList &  )

◆ use() [2/2]

void BufferStringSet::use ( const uiStringSet )

◆ useIndexes()

void BufferStringSet::useIndexes ( const idx_type idxs)
inline

◆ usePar()

virtual void BufferStringSet::usePar ( const IOPar )
virtual

◆ validIdx()

virtual bool BufferStringSet::validIdx ( int64_t  i) const
inlinevirtual

Implements OD::Set.

Member Data Documentation

◆ strs_

impl_type BufferStringSet::strs_
protected

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