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

This little class holds data and an index marker that is used for uniqueness. More...

#include <EventWorkspaceMRU.h>

Public Member Functions

uintptr_t hashIndexFunction () const
 Function returns a unique index, used for hashing for MRU list. More...
 
TypeWithMarkeroperator= (const TypeWithMarker &other)=delete
 
void setIndex (const uintptr_t the_index)
 Set the unique index value. More...
 
 TypeWithMarker (const TypeWithMarker &other)=delete
 
 TypeWithMarker (const uintptr_t the_index)
 Constructor. More...
 

Public Attributes

m_data
 Pointer to a vector of data. More...
 
uintptr_t m_index
 Unique index value. More...
 

Detailed Description

template<class T>
class Mantid::DataObjects::TypeWithMarker< T >

This little class holds data and an index marker that is used for uniqueness.

This is used in the MRUList.

Definition at line 33 of file EventWorkspaceMRU.h.

Constructor & Destructor Documentation

◆ TypeWithMarker() [1/2]

template<class T >
Mantid::DataObjects::TypeWithMarker< T >::TypeWithMarker ( const uintptr_t  the_index)
inline

Constructor.

Parameters
the_index:: unique index into the workspace of this data

Definition at line 39 of file EventWorkspaceMRU.h.

◆ TypeWithMarker() [2/2]

template<class T >
Mantid::DataObjects::TypeWithMarker< T >::TypeWithMarker ( const TypeWithMarker< T > &  other)
delete

Member Function Documentation

◆ hashIndexFunction()

template<class T >
uintptr_t Mantid::DataObjects::TypeWithMarker< T >::hashIndexFunction ( ) const
inline

Function returns a unique index, used for hashing for MRU list.

Definition at line 51 of file EventWorkspaceMRU.h.

References Mantid::DataObjects::TypeWithMarker< T >::m_index.

◆ operator=()

template<class T >
TypeWithMarker & Mantid::DataObjects::TypeWithMarker< T >::operator= ( const TypeWithMarker< T > &  other)
delete

◆ setIndex()

template<class T >
void Mantid::DataObjects::TypeWithMarker< T >::setIndex ( const uintptr_t  the_index)
inline

Set the unique index value.

Definition at line 54 of file EventWorkspaceMRU.h.

References Mantid::DataObjects::TypeWithMarker< T >::m_index.

Member Data Documentation

◆ m_data

template<class T >
T Mantid::DataObjects::TypeWithMarker< T >::m_data

Pointer to a vector of data.

Definition at line 48 of file EventWorkspaceMRU.h.

◆ m_index

template<class T >
uintptr_t Mantid::DataObjects::TypeWithMarker< T >::m_index

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