OpendTect
7.0
|
Set of BufferString objects. More...
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< BufferString > | SetType |
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 () |
BufferStringSet & | add (BufferString *bs) |
BufferStringSet & | add (const BufferStringSet &, bool allowduplicates) |
BufferStringSet & | add (const char *) |
BufferStringSet & | add (const char *arr[], size_type len=-1) |
BufferStringSet & | add (const OD::String &) |
BufferStringSet & | add (const QString &) |
bool | addIfNew (const char *) |
returns whether added More... | |
bool | addIfNew (const OD::String &) |
BufferStringSet & | addToAll (const char *, bool infront=false) |
BufferStringSet & | addWordsFrom (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 |
BufferStringSet * | clone () const override |
BufferString | commonStart () const |
BufferStringSet & | copy (const BufferStringSet &) |
bool | empty () const |
iterator | end () |
const_iterator | end () const |
void | erase () override |
void | fill (QList< QString > &) const |
void | fill (uiStringSet &) const |
virtual void | fillPar (IOPar &) const |
BufferString * | first () |
const BufferString * | first () const |
idx_type | firstDuplicateOf (idx_type, OD::CaseSensitivity cs=OD::CaseSensitive, idx_type startat=0) const |
BufferString & | get (idx_type idx) |
const BufferString & | get (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_type > | getMatches (const char *globexpr, OD::CaseSensitivity cs=OD::CaseInsensitive) const |
idx_type * | getSortIndexes (bool caseinsns=true, bool asc=true) const |
SetType & | getStringSet () |
const SetType & | getStringSet () const |
uiStringSet | getUiStringSet () const |
bool | hasUniqueNames (OD::CaseSensitivity cs=OD::CaseSensitive) const |
idx_type | indexOf (const BufferString *b) const |
idx_type | indexOf (const char *, OD::CaseSensitivity s=OD::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, OD::CaseSensitivity c=OD::CaseSensitive) const |
bool | isSubsetOf (const BufferStringSet &) const |
BufferString * | last () |
const BufferString * | last () const |
size_type | max_size () const |
size_type | maxLength () const |
idx_type | nearestMatch (const char *, bool caseinsens) const |
idx_type | nearestMatch (const char *, OD::CaseSensitivity cs=OD::CaseInsensitive) const |
std::int64_t | nrItems () const override |
bool | operator!= (const BufferStringSet &) const |
BufferStringSet & | operator+= (BufferString *bs) |
BufferStringSet & | operator= (const char *arr[]) |
bool | operator== (const BufferStringSet &) const |
BufferString * | operator[] (idx_type idx) |
const BufferString * | operator[] (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) |
BufferStringSet & | replace (idx_type idx, BufferString *bs) |
void | reverse () override |
BufferStringSet & | set (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) |
void | swapItems (std::int64_t i1, std::int64_t i2) override |
void | unCat (const char *, const char *sepstr="\n") |
void | use (const QList< QString > &) |
void | use (const uiStringSet &) |
void | useIndexes (const idx_type *idxs) |
virtual void | usePar (const IOPar &) |
bool | validIdx (std::int64_t i) const override |
Public Member Functions inherited from OD::Set | |
virtual | ~Set () |
bool | isEmpty () const |
void | setEmpty () |
Protected Types | |
typedef ManagedObjectSet< BufferString > | impl_type |
Protected Attributes | |
impl_type | strs_ |
Additional Inherited Members | |
Static Public Member Functions inherited from OD::Set | |
static std::int32_t | maxIdx32 () |
static std::int64_t | maxIdx64 () |
Set of BufferString objects.
<>
|
protected |
|
inline |
|
explicit |
|
explicit |
|
explicit |
BufferStringSet::BufferStringSet | ( | const char * | , |
const char * | |||
) |
BufferStringSet::BufferStringSet | ( | const char * | , |
const char * | , | ||
const char * | |||
) |
|
inlinevirtual |
|
inline |
BufferStringSet& BufferStringSet::add | ( | const BufferStringSet & | , |
bool | allowduplicates | ||
) |
BufferStringSet& BufferStringSet::add | ( | const char * | ) |
BufferStringSet& BufferStringSet::add | ( | const char * | arr[], |
size_type | len = -1 |
||
) |
BufferStringSet& BufferStringSet::add | ( | const OD::String & | ) |
BufferStringSet& BufferStringSet::add | ( | const QString & | ) |
bool BufferStringSet::addIfNew | ( | const char * | ) |
returns whether added
bool BufferStringSet::addIfNew | ( | const OD::String & | ) |
BufferStringSet& BufferStringSet::addToAll | ( | const char * | , |
bool | infront = false |
||
) |
BufferStringSet& BufferStringSet::addWordsFrom | ( | const char * | ) |
|
inline |
|
inline |
|
inline |
|
inline |
BufferString BufferStringSet::cat | ( | const char * | sepstr = "\n" | ) | const |
|
inline |
|
inline |
|
inlineoverridevirtual |
Implements OD::Set.
BufferString BufferStringSet::commonStart | ( | ) | const |
BufferStringSet& BufferStringSet::copy | ( | const BufferStringSet & | ) |
|
inline |
|
inline |
|
inline |
|
inlineoverridevirtual |
Implements OD::Set.
Reimplemented in CommandDefs.
void BufferStringSet::fill | ( | QList< QString > & | ) | const |
void BufferStringSet::fill | ( | uiStringSet & | ) | const |
|
virtual |
|
inline |
|
inline |
idx_type BufferStringSet::firstDuplicateOf | ( | idx_type | , |
OD::CaseSensitivity | cs = OD::CaseSensitive , |
||
idx_type | startat = 0 |
||
) | const |
|
inline |
|
inline |
BufferString BufferStringSet::getDispString | ( | size_type | maxnritems = -1 , |
bool | quoted = true |
||
) | const |
|
inline |
TypeSet<idx_type> BufferStringSet::getMatches | ( | const char * | globexpr, |
OD::CaseSensitivity | cs = OD::CaseInsensitive |
||
) | const |
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
|
inline |
|
inline |
uiStringSet BufferStringSet::getUiStringSet | ( | ) | const |
bool BufferStringSet::hasUniqueNames | ( | OD::CaseSensitivity | cs = OD::CaseSensitive | ) | const |
|
inline |
idx_type BufferStringSet::indexOf | ( | const char * | , |
OD::CaseSensitivity | s = OD::CaseSensitive |
||
) | const |
first match
|
inline |
|
inline |
|
inline |
|
inline |
bool BufferStringSet::isSubsetOf | ( | const BufferStringSet & | ) | const |
|
inline |
|
inline |
|
inline |
size_type BufferStringSet::maxLength | ( | ) | const |
idx_type BufferStringSet::nearestMatch | ( | const char * | , |
bool | caseinsens | ||
) | const |
idx_type BufferStringSet::nearestMatch | ( | const char * | , |
OD::CaseSensitivity | cs = OD::CaseInsensitive |
||
) | const |
|
inlineoverridevirtual |
Implements OD::Set.
bool BufferStringSet::operator!= | ( | const BufferStringSet & | ) | const |
|
inline |
BufferStringSet& BufferStringSet::operator= | ( | const char * | arr[] | ) |
bool BufferStringSet::operator== | ( | const BufferStringSet & | ) | const |
|
inline |
|
inline |
bool BufferStringSet::remove | ( | const char * | ) |
|
inline |
|
inline |
|
inline |
|
inlineoverridevirtual |
Implements OD::Set.
|
inline |
|
inline |
|
inline |
|
inline |
void BufferStringSet::sort | ( | bool | caseinsens = true , |
bool | asc = true |
||
) |
|
inline |
|
inlineoverridevirtual |
Implements OD::Set.
void BufferStringSet::unCat | ( | const char * | , |
const char * | sepstr = "\n" |
||
) |
void BufferStringSet::use | ( | const QList< QString > & | ) |
void BufferStringSet::use | ( | const uiStringSet & | ) |
|
inline |
|
virtual |
|
inlineoverridevirtual |
Implements OD::Set.
|
protected |
Generated at for the OpendTect seismic interpretation project. Copyright (C): dGB Beheer B.V. 1995-2024