UNIVERS
15.3
UNIVERS base processing software API
|
#include <ikp1dlayers.hpp>
Public Member Functions | |
IKP1dLayers (string name="IKP1dLayers") | |
IKP1dLayers (const IKP1dLayers &obj) | |
virtual | ~IKP1dLayers () |
int | laysNum () const |
T * | layer (int n) const |
virtual void | push (T &lay) |
bool | erase (int n) |
void | insert (int n, T &lay) |
void | clear () |
void | info () const |
const string & | getName () const |
Protected Attributes | |
std::vector< T * > | lays |
string | m_name |
Vector of any layers template
|
inline |
Default constructor with object name provided
IKP1dLayers< T >::IKP1dLayers | ( | const IKP1dLayers< T > & | obj | ) |
Copy constructor
|
virtual |
Destruct object
void IKP1dLayers< T >::clear | ( | void | ) |
Clear all layers
bool IKP1dLayers< T >::erase | ( | int | n | ) |
Erase n-th layer. Return false if index is wrong
|
inline |
Get object name
void IKP1dLayers< T >::info | ( | ) | const |
Print info about itself
void IKP1dLayers< T >::insert | ( | int | n, |
T & | lay | ||
) |
Insert one layer at n-th position. If n > current number of layers then just push_back new layer. If n < 0 then n = 0
T * IKP1dLayers< T >::layer | ( | int | n | ) | const |
Interface to n-th layer through its pointer. Return null if index is out of range
|
inline |
Get number of layers
|
inlinevirtual |
Push back one layer
Reimplemented in IKP1dModel, and IKP1dHod.
|
protected |
Vector of velocity model layers
|
protected |
Object name is used for messages