19#include "MantidGeometry/DllConfig.h"
38template <
typename T,
typename U>
class PFirst {
41 T
operator()(
const std::pair<T, U> &A) {
return A.first; }
52template <
typename T,
typename U>
class PSecond {
55 U
operator()(
const std::pair<T, U> &A) {
return A.second; }
68template <
typename KeyPart,
typename NumPart>
class valEqual {
77 bool operator()(
const std::pair<KeyPart, NumPart> &A)
const {
return A.second ==
value; }
93template <
typename KeyPart,
typename PtrPart>
class mapClone {
96 std::pair<KeyPart, PtrPart>
operator()(
const std::pair<KeyPart, PtrPart> &A)
const {
97 return std::pair<KeyPart, PtrPart>(A.first, A.second->clone());
112template <
typename KeyPart,
typename PtrPart>
class mapDelete {
131template <
typename KeyPart,
typename BodyPart>
class mapSwap {
134 std::pair<BodyPart, KeyPart>
operator()(
const std::pair<KeyPart, BodyPart> &A)
const {
135 return std::pair<BodyPart, KeyPart>(A.second, A.first);
149template <
typename PartA,
typename PartB>
class mapWrite {
152 void operator()(
const std::pair<PartA, PartB> &A)
const { logger.debug() << A.first <<
" " << A.second <<
'\n'; }
172template <
typename KeyPart,
typename NumPart>
class sndValue {
174 const std::map<KeyPart, NumPart> &
MRef;
182 typename std::map<KeyPart, NumPart>::const_iterator vc;
The Logger class is in charge of the publishing messages from the framework through various channels.
Class to access the first object in index pair.
T operator()(const std::pair< T, U > &A)
Functional to the first object.
Class to access the second object in index pair.
U operator()(const std::pair< T, U > &A)
Functional to the first object.
Functor for coping map elements with clone functions.
std::pair< KeyPart, PtrPart > operator()(const std::pair< KeyPart, PtrPart > &A) const
clone function to return insert object
Functor for deleting the second component of a map.
void operator()(std::pair< const KeyPart, PtrPart > &A)
deletion of the map:second ptr
Functor for reversing a map.
std::pair< BodyPart, KeyPart > operator()(const std::pair< KeyPart, BodyPart > &A) const
Operator()
Functor quick write out of a map.
void operator()(const std::pair< PartA, PartB > &A) const
Write both the key and object.
Functor to get second point in a map.
NumPart operator()(const KeyPart &Ky) const
Access via key.
sndValue(const std::map< KeyPart, NumPart > &Mr)
Create with Map.
const std::map< KeyPart, NumPart > & MRef
Map begin accessd.
Functor using second value as equal.
const NumPart value
Value to check against map.
valEqual(const NumPart &V)
Set Value to check.
bool operator()(const std::pair< KeyPart, NumPart > &A) const
Equality operator vs Map second object.
Holds stuff for manipulating maps.