ATLAS Offline Software
Loading...
Searching...
No Matches
label.h File Reference
#include <cstdio>
#include <iostream>
Include dependency graph for label.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

std::string label (const std::string &format, int i)
std::string label (const std::string &format, unsigned i)
std::string label (const std::string &format, int i, int j)
std::string label (const std::string &format, double d)
std::string label (const std::string &format, double d, double e)
std::string label (const std::string &format, double d, double e, int i)
std::string label (const std::string &format, const std::string &s)

Detailed Description

Author
mark sutton
Date
Sun 26 Aug 2012 21:32:27 BST

Copyright (C) 2002-2019 CERN for the benefit of the ATLAS collaboration

Definition in file label.h.

Function Documentation

◆ label() [1/7]

std::string label ( const std::string & format,
const std::string & s )
inline

Definition at line 57 of file label.h.

57 {
58 char c[256];
59 std::sprintf( c, format.c_str(), s.c_str());
60 return c;
61}

◆ label() [2/7]

std::string label ( const std::string & format,
double d )
inline

Definition at line 37 of file label.h.

37 {
38 char c[256];
39 std::sprintf( c, format.c_str(), d );
40 return c;
41}

◆ label() [3/7]

std::string label ( const std::string & format,
double d,
double e )
inline

Definition at line 43 of file label.h.

43 {
44 char c[256];
45 std::sprintf( c, format.c_str(), d, e );
46 return c;
47}

◆ label() [4/7]

std::string label ( const std::string & format,
double d,
double e,
int i )
inline

Definition at line 49 of file label.h.

49 {
50 char c[256];
51 std::sprintf( c, format.c_str(), d, e, i );
52 return c;
53}

◆ label() [5/7]

std::string label ( const std::string & format,
int i )
inline

Definition at line 19 of file label.h.

19 {
20 char c[256];
21 std::sprintf( c, format.c_str(), i );
22 return c;
23}

◆ label() [6/7]

std::string label ( const std::string & format,
int i,
int j )
inline

Definition at line 31 of file label.h.

31 {
32 char c[256];
33 std::sprintf( c, format.c_str(), i, j );
34 return c;
35}

◆ label() [7/7]

std::string label ( const std::string & format,
unsigned i )
inline

Definition at line 25 of file label.h.

25 {
26 char c[256];
27 std::sprintf( c, format.c_str(), i );
28 return c;
29}