Belle II Software development
Variable Class Reference

Base class representing a generic variable. More...

#include <Types.h>

Inheritance diagram for Variable:
BinnedVariable TypedVariable

Public Member Functions

 Variable (const std::string &variableName)
 Constructs a new Variable.
 
virtual std::string getName () const
 Retrieves the name of the variable.
 
virtual ~Variable ()=default
 Virtual destructor.
 

Private Attributes

std::string name
 The name of the variable.
 

Detailed Description

Base class representing a generic variable.

Definition at line 30 of file Types.h.

Constructor & Destructor Documentation

◆ Variable()

Variable ( const std::string & variableName)
inline

Constructs a new Variable.

Parameters
variableNameThe name of the variable.

Definition at line 36 of file Types.h.

36: name{variableName} {}

Member Function Documentation

◆ getName()

virtual std::string getName ( ) const
inlinevirtual

Retrieves the name of the variable.

Returns
The variable name as a std::string.

Definition at line 42 of file Types.h.

42{ return name; }

Member Data Documentation

◆ name

std::string name
private

The name of the variable.

Definition at line 50 of file Types.h.


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