OpendTect-6_4  6.4
Public Member Functions | List of all members
BufferStringSet Class Reference

Set of BufferString objects. More...

Inheritance diagram for BufferStringSet:
[legend]

Public Member Functions

 BufferStringSet (int n=0, const char *s=0)
 
 BufferStringSet (const char *arr[], int len=-1)
 
bool operator== (const BufferStringSet &) const
 
BufferStringget (int idx)
 
const BufferStringget (int idx) const
 
int indexOf (const char *) const
 first match More...
 
int indexOf (const GlobExpr &) const
 first match More...
 
int indexOf (const BufferString *b) const
 
bool isPresent (const BufferString *b) const
 
bool isPresent (const char *s) const
 
int nearestMatch (const char *, bool caseinsens=true) const
 
bool isSubsetOf (const BufferStringSet &) const
 
BufferStringSetadd (const char *)
 
BufferStringSetadd (const OD::String &)
 
BufferStringSetadd (const QString &)
 
BufferStringSetadd (const BufferStringSet &, bool allowduplicates)
 
BufferStringSetadd (const char *arr[], int len=-1)
 
BufferStringSetaddToAll (const char *, bool infront=false)
 
bool addIfNew (const char *)
 returns whether added More...
 
bool addIfNew (const OD::String &)
 
int maxLength () const
 
void sort (bool caseinsens=true, bool asc=true)
 
BufferString commonStart () const
 
int * getSortIndexes (bool caseinsns=true, bool asc=true) const
 
void useIndexes (const int *)
 
virtual void fillPar (IOPar &) const
 
virtual void usePar (const IOPar &)
 
void fill (uiStringSet &) const
 
void use (const uiStringSet &)
 
BufferString cat (const char *sepstr="\n") const
 
void unCat (const char *, const char *sepstr="\n")
 
BufferString getDispString (int maxnritems=-1, bool quoted=true) const
 
- Public Member Functions inherited from ManagedObjectSet< BufferString >
 ManagedObjectSet ()
 
 ManagedObjectSet (const ManagedObjectSet< BufferString > &)
 
virtual ~ManagedObjectSet ()
 
ManagedObjectSet< BufferString > & operator= (const ObjectSet< BufferString > &)
 
ManagedObjectSet< BufferString > & operator= (const ManagedObjectSet< BufferString > &)
 
virtual bool isManaged () const
 
virtual void erase ()
 
virtual void append (const ObjectSet< BufferString > &)
 
virtual void removeRange (size_type, size_type)
 
virtual BufferStringremoveSingle (int idx, bool kporder=true)
 
virtual BufferStringremoveAndTake (int idx, bool kporder=true)
 
virtual BufferStringreplace (int idx, BufferString *)
 
virtual ManagedObjectSet< BufferString > & operator-= (BufferString *)
 
- Public Member Functions inherited from ObjectSet< BufferString >
 ObjectSet ()
 
 ObjectSet (const ObjectSet< BufferString > &)
 
virtual ~ObjectSet ()
 
ObjectSet< BufferString > & operator= (const ObjectSet< BufferString > &)
 
bool nullAllowed () const
 
void allowNull (bool yn=true)
 
size_type size () const
 
virtual int64_t nrItems () const
 
virtual BufferStringoperator[] (size_type)
 
virtual const BufferStringoperator[] (size_type) const
 
virtual BufferStringoperator[] (const BufferString *) const
 check & unconst More...
 
virtual bool validIdx (int64_t) const
 
BufferStringfirst ()
 
const BufferStringfirst () const
 
BufferStringlast ()
 
const BufferStringlast () const
 
ObjectSet< BufferString > & add (BufferString *t)
 
ObjectSet< BufferString > & operator+= (BufferString *t)
 
void push (BufferString *t)
 
bool addIfNew (BufferString *)
 
virtual void insertAt (BufferString *newptr, size_type)
 
virtual void insertAfter (BufferString *newptr, size_type)
 
virtual void copy (const ObjectSet< BufferString > &)
 
virtual void swap (int64_t, int64_t)
 
virtual void reverse ()
 
virtual BufferStringpop ()
 
void plainErase ()
 
- Public Member Functions inherited from OD::Set
virtual ~Set ()
 
bool isEmpty () const
 
void setEmpty ()
 

Additional Inherited Members

- Public Types inherited from ManagedObjectSet< BufferString >
typedef int size_type
 
typedef BufferString object_type
 
- Public Types inherited from ObjectSet< BufferString >
typedef int size_type
 
typedef BufferString object_type
 
- Protected Member Functions inherited from ObjectSet< BufferString >
virtual ObjectSet< BufferString > & doAdd (BufferString *)
 
- Protected Attributes inherited from ObjectSet< BufferString >
VectorAccess< void *, size_typevec_
 
bool allow0_
 

Detailed Description

Set of BufferString objects.

Constructor & Destructor Documentation

BufferStringSet::BufferStringSet ( int  n = 0,
const char *  s = 0 
)
BufferStringSet::BufferStringSet ( const char *  arr[],
int  len = -1 
)

Member Function Documentation

BufferStringSet& BufferStringSet::add ( const char *  )
BufferStringSet& BufferStringSet::add ( const OD::String )
BufferStringSet& BufferStringSet::add ( const QString &  )
BufferStringSet& BufferStringSet::add ( const BufferStringSet ,
bool  allowduplicates 
)
BufferStringSet& BufferStringSet::add ( const char *  arr[],
int  len = -1 
)
bool BufferStringSet::addIfNew ( const char *  )

returns whether added

bool BufferStringSet::addIfNew ( const OD::String )
BufferStringSet& BufferStringSet::addToAll ( const char *  ,
bool  infront = false 
)
BufferString BufferStringSet::cat ( const char *  sepstr = "\n") const
BufferString BufferStringSet::commonStart ( ) const
void BufferStringSet::fill ( uiStringSet ) const
virtual void BufferStringSet::fillPar ( IOPar ) const
virtual
BufferString& BufferStringSet::get ( int  idx)
inline
const BufferString& BufferStringSet::get ( int  idx) const
inline
BufferString BufferStringSet::getDispString ( int  maxnritems = -1,
bool  quoted = true 
) const
int* 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

int BufferStringSet::indexOf ( const char *  ) const

first match

int BufferStringSet::indexOf ( const GlobExpr ) const

first match

int BufferStringSet::indexOf ( const BufferString b) const
inlinevirtual

Reimplemented from ObjectSet< BufferString >.

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

Reimplemented from ObjectSet< BufferString >.

bool BufferStringSet::isPresent ( const char *  s) const
inline
bool BufferStringSet::isSubsetOf ( const BufferStringSet ) const
int BufferStringSet::maxLength ( ) const
int BufferStringSet::nearestMatch ( const char *  ,
bool  caseinsens = true 
) const
bool BufferStringSet::operator== ( const BufferStringSet ) const
void BufferStringSet::sort ( bool  caseinsens = true,
bool  asc = true 
)
void BufferStringSet::unCat ( const char *  ,
const char *  sepstr = "\n" 
)
void BufferStringSet::use ( const uiStringSet )
void BufferStringSet::useIndexes ( const int *  )
virtual void BufferStringSet::usePar ( const IOPar )
virtual

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