OpendTect  6.6
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 ()
 
virtual int add (const Coord &)
 Return new id, or -1 if unsuccessful. More...
 
virtual void addValue (int id, const Coord &)
 Adds value to existing value at id. More...
 
virtual Coord get (int id) const
 
virtual int nextID (int previd) const
 
virtual void remove (const TypeSet< int > &)
 
virtual void remove (int id)
 
virtual void set (int id, const Coord &)
 
virtual int size () const
 
- Public Member Functions inherited from Coord2List
Coord center () const
 

Protected Attributes

TypeSet< Coordpoints_
 
TypeSet< int > removedids_
 

Detailed Description

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

<>

Constructor & Destructor Documentation

◆ Coord2ListImpl()

Coord2ListImpl::Coord2ListImpl ( )

Member Function Documentation

◆ add()

virtual int Coord2ListImpl::add ( const Coord )
virtual

Return new id, or -1 if unsuccessful.

Implements Coord2List.

◆ addValue()

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

Adds value to existing value at id.

Implements Coord2List.

◆ get()

virtual Coord Coord2ListImpl::get ( int  id) const
virtual

Implements Coord2List.

◆ nextID()

virtual int Coord2ListImpl::nextID ( int  previd) const
virtual

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

Implements Coord2List.

◆ remove() [1/2]

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

Implements Coord2List.

◆ remove() [2/2]

virtual void Coord2ListImpl::remove ( int  id)
virtual

Implements Coord2List.

◆ set()

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

Implements Coord2List.

◆ size()

virtual int Coord2ListImpl::size ( ) const
inlinevirtual

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-2022