UNIVERS  15.3
UNIVERS base processing software API
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Public Member Functions | Protected Attributes | List of all members
IKP1dLayers< T > Class Template Reference

#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
 

Detailed Description

template<class T>
class IKP1dLayers< T >

Vector of any layers template

Constructor & Destructor Documentation

template<class T>
IKP1dLayers< T >::IKP1dLayers ( string  name = "IKP1dLayers< T >")
inline

Default constructor with object name provided

template<typename T >
IKP1dLayers< T >::IKP1dLayers ( const IKP1dLayers< T > &  obj)

Copy constructor

template<typename T >
IKP1dLayers< T >::~IKP1dLayers ( )
virtual

Destruct object

Member Function Documentation

template<typename T >
void IKP1dLayers< T >::clear ( void  )

Clear all layers

template<typename T >
bool IKP1dLayers< T >::erase ( int  n)

Erase n-th layer. Return false if index is wrong

template<class T>
const string& IKP1dLayers< T >::getName ( ) const
inline

Get object name

template<typename T >
void IKP1dLayers< T >::info ( ) const

Print info about itself

template<typename T>
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

template<typename T >
T * IKP1dLayers< T >::layer ( int  n) const

Interface to n-th layer through its pointer. Return null if index is out of range

template<class T>
int IKP1dLayers< T >::laysNum ( ) const
inline

Get number of layers

template<class T>
virtual void IKP1dLayers< T >::push ( T &  lay)
inlinevirtual

Push back one layer

Reimplemented in IKP1dModel, and IKP1dHod.

Member Data Documentation

template<class T>
std::vector<T*> IKP1dLayers< T >::lays
protected

Vector of velocity model layers

template<class T>
string IKP1dLayers< T >::m_name
protected

Object name is used for messages


The documentation for this class was generated from the following file: