Mantid
Loading...
Searching...
No Matches
Public Member Functions | Private Attributes | List of all members
MapSupport::sndValue< KeyPart, NumPart > Class Template Reference

Functor to get second point in a map. More...

#include <MapSupport.h>

Public Member Functions

NumPart operator() (const KeyPart &Ky) const
 Access via key. More...
 
 sndValue (const std::map< KeyPart, NumPart > &Mr)
 Create with Map. More...
 

Private Attributes

const std::map< KeyPart, NumPart > & MRef
 Map begin accessd. More...
 

Detailed Description

template<typename KeyPart, typename NumPart>
class MapSupport::sndValue< KeyPart, NumPart >

Functor to get second point in a map.

Author
S. Ansell
Date
September 2005
Version
1.0

This functor takes a map of key,value returns just the value. It is built so that the useage is

Additionally it does not throw any exceptions on key not found.

Definition at line 172 of file MapSupport.h.

Constructor & Destructor Documentation

◆ sndValue()

template<typename KeyPart , typename NumPart >
MapSupport::sndValue< KeyPart, NumPart >::sndValue ( const std::map< KeyPart, NumPart > &  Mr)
inline

Create with Map.

Definition at line 178 of file MapSupport.h.

Member Function Documentation

◆ operator()()

template<typename KeyPart , typename NumPart >
NumPart MapSupport::sndValue< KeyPart, NumPart >::operator() ( const KeyPart &  Ky) const
inline

Access via key.

Definition at line 181 of file MapSupport.h.

References MapSupport::sndValue< KeyPart, NumPart >::MRef.

Member Data Documentation

◆ MRef

template<typename KeyPart , typename NumPart >
const std::map<KeyPart, NumPart>& MapSupport::sndValue< KeyPart, NumPart >::MRef
private

Map begin accessd.

Definition at line 174 of file MapSupport.h.

Referenced by MapSupport::sndValue< KeyPart, NumPart >::operator()().


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