OpendTect  7.0
Public Member Functions | Protected Attributes | List of all members
Coord2ListImpl Class Reference

A list of Coord where each coord has a unique id. More...

Inheritance diagram for Coord2ListImpl:
[legend]

Public Member Functions

 Coord2ListImpl ()
 
int add (const Coord &) override
 Return new id, or -1 if unsuccessful. More...
 
void addValue (int id, const Coord &) override
 Adds value to existing value at id. More...
 
Coord get (int id) const override
 
int nextID (int previd) const override
 
void remove (const TypeSet< int > &) override
 
void remove (int id) override
 
void set (int id, const Coord &) override
 
int size () const override
 
- Public Member Functions inherited from Coord2List
Coord center () const
 
- Public Member Functions inherited from RefCount::Referenced
void addObserver (WeakPtrBase *obs)
 Not for normal use. May become private. More...
 
int nrRefs () const
 Only for expert use. More...
 
void ref () const
 
bool refIfReffed () const
 Don't use in production, for debugging. More...
 
void removeObserver (WeakPtrBase *obs)
 Not for normal use. May become private. More...
 
bool tryRef () const
 Not for normal use. May become private. More...
 
void unRef () const
 
void unRefNoDelete () const
 

Protected Attributes

TypeSet< Coordpoints_
 
TypeSet< int > removedids_
 

Additional Inherited Members

- Static Public Member Functions inherited from RefCount::Referenced
static bool isSane (const Referenced *)
 
- Protected Member Functions inherited from RefCount::Referenced
 Referenced ()
 
 Referenced (const Referenced &)
 
virtual ~Referenced ()
 
Referencedoperator= (const Referenced &)
 

Detailed Description

A list of Coord where each coord has a unique id.

<>

Constructor & Destructor Documentation

◆ Coord2ListImpl()

Coord2ListImpl::Coord2ListImpl ( )

Member Function Documentation

◆ add()

int Coord2ListImpl::add ( const Coord )
overridevirtual

Return new id, or -1 if unsuccessful.

Implements Coord2List.

◆ addValue()

void Coord2ListImpl::addValue ( int  id,
const Coord  
)
overridevirtual

Adds value to existing value at id.

Implements Coord2List.

◆ get()

Coord Coord2ListImpl::get ( int  id) const
overridevirtual

Implements Coord2List.

◆ nextID()

int Coord2ListImpl::nextID ( int  previd) const
overridevirtual

If previd == -1, first id is returned. If -1 is returned, no more id's are available.

Implements Coord2List.

◆ remove() [1/2]

void Coord2ListImpl::remove ( const TypeSet< int > &  )
overridevirtual

Implements Coord2List.

◆ remove() [2/2]

void Coord2ListImpl::remove ( int  id)
overridevirtual

Implements Coord2List.

◆ set()

void Coord2ListImpl::set ( int  id,
const Coord  
)
overridevirtual

Implements Coord2List.

◆ size()

int Coord2ListImpl::size ( ) const
inlineoverridevirtual

Implements Coord2List.

Member Data Documentation

◆ points_

TypeSet<Coord> Coord2ListImpl::points_
protected

◆ removedids_

TypeSet<int> Coord2ListImpl::removedids_
protected

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