master
a Code for the Combination of Indirect and Direct Constraints on High Energy Physics Models
LinesAsStringsBlock.hpp
Go to the documentation of this file.
1
/*
2
* LinesAsStringsBlock.hpp
3
*
4
* Created on: Mar 12, 2012
5
* Author: Ben O'Leary (benjamin.oleary@gmail.com)
6
* Copyright 2012 Ben O'Leary
7
*
8
* This file is part of LesHouchesParserClasses, released under the
9
* GNU General Public License. Please see the accompanying
10
* README.LHPC_CPP.txt file for a full list of files, brief documentation
11
* on how to use these classes, and further details on the license.
12
*/
13
14
#ifndef LINESASSTRINGSBLOCK_HPP_
15
#define LINESASSTRINGSBLOCK_HPP_
16
17
#include <string>
18
#include "../SlhaBlock.hpp"
19
#include "
InterpreterClasses/LinesAsStrings.hpp
"
20
21
namespace
LHPC
22
{
23
namespace
SLHA
24
{
25
/* this class interprets all the blocks with the same name, though
26
* differing scale values, which are interpreted just as a set of lines as
27
* std::strings.
28
*/
29
class
LinesAsStringsBlock
:
public
SlhaBlock
< std::string,
30
InterpreterClass::LinesAsStrings >
31
{
32
public
:
33
LinesAsStringsBlock
( std::string
const
&
blockName
,
34
bool
const
isVerbose
=
false
);
35
virtual
36
~LinesAsStringsBlock
();
37
38
std::string
39
operator()
(
int
const
whichLine )
const
;
40
// this returns operator() of the lowest-scale interpreter.
41
};
42
43
44
45
46
47
inline
std::string
48
LinesAsStringsBlock::operator()
(
int
const
whichLine )
const
49
// this returns operator() of the lowest-scale interpreter.
50
{
51
return
this->dataBlocks[ this->lowestScaleIndex ]( whichLine );
52
}
53
54
}
// end of SLHA namespace
55
56
}
// end of LHPC namespace
57
58
59
#endif
/* LINESASSTRINGSBLOCK_HPP_ */
LinesAsStrings.hpp
LHPC::SLHA::BaseSlhaBlock::blockName
std::string blockName
Definition:
BaseSlhaBlock.hpp:76
LHPC::SLHA::LinesAsStringsBlock
Definition:
LinesAsStringsBlock.hpp:31
LHPC::SLHA::LinesAsStringsBlock::~LinesAsStringsBlock
virtual ~LinesAsStringsBlock()
Definition:
LinesAsStringsBlock.cpp:30
LHPC::SLHA::LinesAsStringsBlock::LinesAsStringsBlock
LinesAsStringsBlock(std::string const &blockName, bool const isVerbose=false)
Definition:
LinesAsStringsBlock.cpp:21
LHPC::SLHA::LinesAsStringsBlock::operator()
std::string operator()(int const whichLine) const
Definition:
LinesAsStringsBlock.hpp:48
LHPC::SLHA::SlhaBlock
Definition:
SlhaBlock.hpp:55
LHPC::SLHA::SlhaBlock< std::string, InterpreterClass::LinesAsStrings >::isVerbose
bool const isVerbose
Definition:
SlhaBlock.hpp:138
LHPC
Definition:
FourMomentum.hpp:24
LHPC
include
SLHA
BlockClasses
LinesAsStringsBlock.hpp
Generated on Sat Aug 9 2025 for $\texttt{HEPfit}$ using
1.9.2