OpendTect 8.0
Loading...
Searching...
No Matches
PropertyRefSet Class Reference

#include <propertyref.h>

Inheritance diagram for PropertyRefSet:
[legend]

Public Member Functions

bool ensureHasElasticProps (bool withswave=true, bool withai=false)
 
PropertyRef * ensurePresent (const Mnemonic &, const char *nm1, const char *nm2=nullptr, const char *nm3=nullptr)
 
void erase () override
 
const PropertyRef * getByMnemonic (const Mnemonic &, int occ=0) const
 
const PropertyRef * getByName (const char *, bool matchaliases=true) const
 
const PropertyRef * getByType (PropertyRef::StdType, int occ=0) const
 
ManagedObjectSetBase< PropertyRef > & operator-= (PropertyRef *) override
 
PropertyRef * pop () override
 
PropertyRef * removeAndTake (int, bool keep_order=true) override
 
void removeRange (int, int) override
 
PropertyRef * removeSingle (int, bool keep_order=true) override
 
PropertyRef * replace (int, PropertyRef *) override
 
bool subselect (PropertyRef::StdType, ObjectSet< const PropertyRef > &) const
 
- Public Member Functions inherited from ManagedObjectSet< PropertyRef >
 ManagedObjectSet ()
 
 ManagedObjectSet (const ManagedObjectSet &)=delete
 
 ManagedObjectSet (const ObjectSet< PropertyRef > &)
 
void append (const ManagedObjectSet< PropertyRef > &)=delete
 
void append (const ObjectSet< PropertyRef > &os) override
 
void copy (const ObjectSet< PropertyRef > &os) override
 
ManagedObjectSet & operator= (const ManagedObjectSet &)=delete
 
ManagedObjectSet< PropertyRef > & operator= (const ObjectSet< PropertyRef > &os)
 
- Public Member Functions inherited from ManagedObjectSetBase< PropertyRef >
bool isManaged () const override
 
- Public Member Functions inherited from ObjectSet< PropertyRef >
 ObjectSet ()
 
 ObjectSet (const ObjectSet &)
 
 ObjectSet (PropertyRef *)
 
 ObjectSet (PropertyRef *, PropertyRef *)
 
 ObjectSet (PropertyRef *, PropertyRef *, PropertyRef *)
 
virtual ~ObjectSet ()
 
ObjectSet & add (PropertyRef *t)
 
bool addIfNew (PropertyRef *)
 
void allowNull (bool yn=true)
 
iterator begin ()
 
const_iterator begin () const
 
const_iterator cbegin () const
 
const_iterator cend () const
 
ObjectSet * clone () const override
 
bool empty () const
 
iterator end ()
 
const_iterator end () const
 
PropertyRef * first ()
 
const PropertyRef * first () const
 
virtual PropertyRef * get (const PropertyRef *) const
 check & unconst
 
virtual PropertyRef * get (idx_type)
 
virtual const PropertyRef * get (idx_type) const
 
virtual size_type getCapacity () const
 
idx_type getIdx (const_iterator it) const
 
idx_type getIdx (iterator it) const
 
virtual idx_type indexOf (const PropertyRef *) const
 
virtual void insertAfter (PropertyRef *newptr, idx_type)
 
virtual void insertAt (PropertyRef *newptr, idx_type)
 
virtual bool isPresent (const PropertyRef *) const
 
PropertyRef * last ()
 
const PropertyRef * last () const
 
size_type max_size () const
 
od_int64 nrItems () const override
 
bool nullAllowed () const
 
bool operator!= (const ObjectSet &oth) const
 
ObjectSet & operator+= (PropertyRef *t)
 
ObjectSet & operator= (const ObjectSet &)
 
bool operator== (const ObjectSet &) const
 
const PropertyRef * operator[] (const PropertyRef *t) const
 
PropertyRef * operator[] (idx_type i)
 
const PropertyRef * operator[] (idx_type i) const
 
void plainErase ()
 
void push (PropertyRef *t)
 
void reverse () override
 
virtual bool setCapacity (size_type, bool withmargin)
 Allocates mem only, no size() change.
 
void setNullAllowed (bool yn=true)
 
virtual bool setSize (size_type)
 
size_type size () const
 
void swap (idx_type, idx_type)
 
void swap (ObjectSet &oth)
 
void swapItems (od_int64 i1, od_int64 i2) override
 
void useIndexes (const idx_type *)
 
bool validIdx (od_int64) const override
 
- Public Member Functions inherited from OD::Set
virtual ~Set ()
 
bool isEmpty () const
 
void setEmpty ()
 

Static Public Member Functions

static const PropertyRef * getByName (const char *, const ObjectSet< const PropertyRef > &, bool matchaliases)
 
- Static Public Member Functions inherited from OD::Set
static od_int32 maxIdx32 ()
 
static od_int64 maxIdx64 ()
 

Private Member Functions

 PropertyRefSet ()
 
 PropertyRefSet (const PropertyRefSet &)=delete
 
PropertyRefSet & doAdd (PropertyRef *) override
 
PropertyRef * getByName (const char *, bool matchaliases=true)
 
PropertyRef * getByType (PropertyRef::StdType, int occ=0)
 
PropertyRefSet & operator= (const PropertyRefSet &)=delete
 
void readFrom (ascistream &, Repos::Source)
 
bool save (Repos::Source) const
 
bool writeTo (ascostream &) const
 

Static Private Member Functions

static void removeCache (const PropertyRef *)
 

Friends

class PropertyRefSetMgr
 
class uiManPROPS
 

Additional Inherited Members

- Public Types inherited from ManagedObjectSet< PropertyRef >
typedef ObjectSet< PropertyRef >::idx_type idx_type
 
typedef ObjectSet< PropertyRef >::size_type size_type
 
- Public Types inherited from ManagedObjectSetBase< PropertyRef >
typedef ObjectSet< PropertyRef >::idx_type idx_type
 
typedef ObjectSet< PropertyRef >::size_type size_type
 
- Public Types inherited from ObjectSet< PropertyRef >
typedef impl_type::const_iterator const_iterator
 
typedef const value_type & const_reference
 
typedef size_type difference_type
 
typedef size_type idx_type
 
typedef impl_type::iterator iterator
 
typedef PropertyRef object_type
 
typedef value_type & reference
 
typedef int size_type
 
typedef PropertyRef * value_type
 
- Protected Types inherited from ManagedObjectSetBase< PropertyRef >
typedef void(* PtrFunc) (PropertyRef *ptr)
 
- Protected Types inherited from ObjectSet< PropertyRef >
typedef VectorAccess< PropertyRef *, size_type > impl_type
 
- Protected Member Functions inherited from ManagedObjectSetBase< PropertyRef >
 ManagedObjectSetBase (PtrFunc delfunc)
 
 ~ManagedObjectSetBase ()
 
- Protected Attributes inherited from ObjectSet< PropertyRef >
bool allow0_
 
impl_type vec_
 

Constructor & Destructor Documentation

◆ PropertyRefSet() [1/2]

PropertyRefSet::PropertyRefSet ( )
private

◆ PropertyRefSet() [2/2]

PropertyRefSet::PropertyRefSet ( const PropertyRefSet & )
privatedelete

Member Function Documentation

◆ doAdd()

PropertyRefSet & PropertyRefSet::doAdd ( PropertyRef * )
overrideprivatevirtual

Reimplemented from ObjectSet< PropertyRef >.

◆ ensureHasElasticProps()

bool PropertyRefSet::ensureHasElasticProps ( bool withswave = true,
bool withai = false )

◆ ensurePresent()

PropertyRef * PropertyRefSet::ensurePresent ( const Mnemonic & ,
const char * nm1,
const char * nm2 = nullptr,
const char * nm3 = nullptr )

◆ erase()

void PropertyRefSet::erase ( )
overridevirtual

◆ getByMnemonic()

const PropertyRef * PropertyRefSet::getByMnemonic ( const Mnemonic & ,
int occ = 0 ) const

◆ getByName() [1/3]

PropertyRef * PropertyRefSet::getByName ( const char * ,
bool matchaliases = true )
private

◆ getByName() [2/3]

const PropertyRef * PropertyRefSet::getByName ( const char * ,
bool matchaliases = true ) const

◆ getByName() [3/3]

static const PropertyRef * PropertyRefSet::getByName ( const char * ,
const ObjectSet< const PropertyRef > & ,
bool matchaliases )
static

◆ getByType() [1/2]

PropertyRef * PropertyRefSet::getByType ( PropertyRef::StdType ,
int occ = 0 )
private

◆ getByType() [2/2]

const PropertyRef * PropertyRefSet::getByType ( PropertyRef::StdType ,
int occ = 0 ) const

◆ operator-=()

ManagedObjectSetBase< PropertyRef > & PropertyRefSet::operator-= ( PropertyRef * )
overridevirtual

◆ operator=()

PropertyRefSet & PropertyRefSet::operator= ( const PropertyRefSet & )
privatedelete

◆ pop()

PropertyRef * PropertyRefSet::pop ( )
overridevirtual

Deletes entry and returns nullptr

Reimplemented from ManagedObjectSetBase< PropertyRef >.

◆ readFrom()

void PropertyRefSet::readFrom ( ascistream & ,
Repos::Source  )
private

◆ removeAndTake()

PropertyRef * PropertyRefSet::removeAndTake ( int vidx,
bool kporder = true )
overridevirtual

Does not delete the entry.

Reimplemented from ManagedObjectSetBase< PropertyRef >.

◆ removeCache()

static void PropertyRefSet::removeCache ( const PropertyRef * )
staticprivate

◆ removeRange()

void PropertyRefSet::removeRange ( int ,
int  )
overridevirtual

◆ removeSingle()

PropertyRef * PropertyRefSet::removeSingle ( int vidx,
bool kporder = true )
overridevirtual

Removes entry and returns nullptr

Reimplemented from ManagedObjectSetBase< PropertyRef >.

◆ replace()

PropertyRef * PropertyRefSet::replace ( int vidx,
PropertyRef * ptr )
overridevirtual

Deletes entry and returns nullptr

Reimplemented from ManagedObjectSetBase< PropertyRef >.

◆ save()

bool PropertyRefSet::save ( Repos::Source ) const
private

◆ subselect()

bool PropertyRefSet::subselect ( PropertyRef::StdType ,
ObjectSet< const PropertyRef > &  ) const

◆ writeTo()

bool PropertyRefSet::writeTo ( ascostream & ) const
private

Friends And Related Symbol Documentation

◆ PropertyRefSetMgr

friend class PropertyRefSetMgr
friend

◆ uiManPROPS

friend class uiManPROPS
friend

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