ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
PhysicsAnalysis
Columnar
ColumnarInterfaces
ColumnarInterfaces
IColumnarTool.h
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration
3
*/
4
6
7
8
#ifndef COLUMNAR_INTERFACES_I_COLUMNAR_TOOL_H
9
#define COLUMNAR_INTERFACES_I_COLUMNAR_TOOL_H
10
11
#include <
ColumnarInterfaces/ColumnarDef.h
>
12
#include <string>
13
#include <vector>
14
15
namespace
columnar
16
{
17
struct
ColumnInfo
;
18
19
188
189
class
IColumnarTool
190
{
191
public
:
192
virtual
~IColumnarTool
() =
default
;
193
194
205
virtual
void
callVoid
(
void
** data)
const
= 0;
206
207
213
[[nodiscard]]
virtual
std::vector<ColumnInfo>
getColumnInfo
()
const
= 0;
214
215
229
virtual
void
renameColumn
(
const
std::string& from,
const
std::string& to) = 0;
230
231
255
virtual
void
setColumnIndex
(
const
std::string& name, std::size_t
index
) = 0;
256
};
257
}
258
259
#endif
ColumnarDef.h
columnar::IColumnarTool
an interface for tools that operate on columnar data
Definition
IColumnarTool.h:190
columnar::IColumnarTool::callVoid
virtual void callVoid(void **data) const =0
run the tool on the data vector
columnar::IColumnarTool::getColumnInfo
virtual std::vector< ColumnInfo > getColumnInfo() const =0
the meta-information for the columns
columnar::IColumnarTool::renameColumn
virtual void renameColumn(const std::string &from, const std::string &to)=0
rename one of the columns the tool uses
columnar::IColumnarTool::~IColumnarTool
virtual ~IColumnarTool()=default
columnar::IColumnarTool::setColumnIndex
virtual void setColumnIndex(const std::string &name, std::size_t index)=0
set the index for the column
columnar
Definition
ClusterDef.h:16
index
Definition
index.py:1
columnar::ColumnInfo
a struct that contains meta-information about each column that's needed to interface the column with ...
Definition
ColumnInfo.h:36
Generated on
for ATLAS Offline Software by
1.17.0