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

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

#include <ITableWorkspace.h>

Public Member Functions

 ConstColumnVector (Column_const_sptr column)
 Construct directly from column. More...
 
 ConstColumnVector (const TableConstColumnHelper &th)
 Constructor. More...
 
const T & operator[] (size_t i)
 Get the const reference to element. More...
 
size_t size ()
 Size of the vector. More...
 

Private Attributes

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

Detailed Description

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

ConstColumnVector gives const access to the column elements without alowing its resizing.

Created by TableWorkspace::getVector(...)

Definition at line 356 of file ITableWorkspace.h.

Constructor & Destructor Documentation

◆ ConstColumnVector() [1/2]

template<class T >
Mantid::API::ConstColumnVector< T >::ConstColumnVector ( const TableConstColumnHelper th)
inline

Constructor.

Definition at line 359 of file ITableWorkspace.h.

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

◆ ConstColumnVector() [2/2]

template<class T >
Mantid::API::ConstColumnVector< T >::ConstColumnVector ( Column_const_sptr  column)
inline

Construct directly from column.

Definition at line 367 of file ITableWorkspace.h.

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

Member Function Documentation

◆ operator[]()

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

Get the const reference to element.

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

Definition at line 378 of file ITableWorkspace.h.

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

◆ size()

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

Size of the vector.

Definition at line 380 of file ITableWorkspace.h.

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

Referenced by Mantid::NeXus::NexusFileIO::writeNexusVectorColumn().

Member Data Documentation

◆ m_column

template<class T >
Column_const_sptr Mantid::API::ConstColumnVector< T >::m_column
private

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