Mantid
Loading...
Searching...
No Matches
Public Member Functions | Private Attributes | List of all members
Mantid::API::ColumnVector< T > Class Template Reference

ColumnVector gives access to the column elements without alowing its resizing. More...

#include <ITableWorkspace.h>

Public Member Functions

 ColumnVector (Column_sptr column)
 Construct directly from column. More...
 
 ColumnVector (const TableColumnHelper &th)
 Constructor. More...
 
T & operator[] (size_t i)
 Get the element. More...
 
size_t size ()
 Size of the vector. More...
 

Private Attributes

Column_sptr m_column
 Pointer to the underlying column. More...
 

Detailed Description

template<class T>
class Mantid::API::ColumnVector< T >

ColumnVector gives access to the column elements without alowing its resizing.

Created by TableWorkspace::getVector(...)

Definition at line 321 of file ITableWorkspace.h.

Constructor & Destructor Documentation

◆ ColumnVector() [1/2]

template<class T >
Mantid::API::ColumnVector< T >::ColumnVector ( const TableColumnHelper th)
inline

Constructor.

Definition at line 324 of file ITableWorkspace.h.

References Mantid::API::ColumnVector< T >::m_column.

◆ ColumnVector() [2/2]

template<class T >
Mantid::API::ColumnVector< T >::ColumnVector ( Column_sptr  column)
inline

Construct directly from column.

Definition at line 332 of file ITableWorkspace.h.

References Mantid::API::ColumnVector< T >::m_column.

Member Function Documentation

◆ operator[]()

template<class T >
T & Mantid::API::ColumnVector< T >::operator[] ( size_t  i)
inline

Get the element.

Parameters
i:: Element's position
Returns
the column at the requested index

Definition at line 343 of file ITableWorkspace.h.

References Mantid::API::ColumnVector< T >::m_column.

◆ size()

template<class T >
size_t Mantid::API::ColumnVector< T >::size ( )
inline

Member Data Documentation

◆ m_column

template<class T >
Column_sptr Mantid::API::ColumnVector< T >::m_column
private

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