CMS 3D CMS Logo

List of all members | Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes
ValueExample Class Reference

#include <FWCore/Integration/test/stubs/ValueExample.h>

Public Member Functions

int value () const
 
 ValueExample (const edm::ParameterSet &)
 
virtual ~ValueExample ()
 

Static Public Member Functions

static void fillDescriptions (edm::ConfigurationDescriptions &descriptions)
 

Private Member Functions

const ValueExampleoperator= (const ValueExample &)=delete
 
 ValueExample (const ValueExample &)=delete
 

Private Attributes

int value_
 

Detailed Description

Description: An example of a trivial Service

Usage: <usage>

Definition at line 26 of file ValueExample.h.

Constructor & Destructor Documentation

◆ ValueExample() [1/2]

ValueExample::ValueExample ( const edm::ParameterSet iPSet)

Definition at line 18 of file ValueExample.cc.

18 : value_(iPSet.getParameter<int>("value")) {}
T getParameter(std::string const &) const
Definition: ParameterSet.h:307

◆ ~ValueExample()

ValueExample::~ValueExample ( )
virtual

Definition at line 20 of file ValueExample.cc.

20 {}

◆ ValueExample() [2/2]

ValueExample::ValueExample ( const ValueExample )
privatedelete

Member Function Documentation

◆ fillDescriptions()

void ValueExample::fillDescriptions ( edm::ConfigurationDescriptions descriptions)
static

Definition at line 22 of file ValueExample.cc.

References edm::ConfigurationDescriptions::addDefault(), and submitPVResolutionJobs::desc.

22  {
24  desc.add<int>("value");
25  descriptions.addDefault(desc);
26 }
void addDefault(ParameterSetDescription const &psetDescription)

◆ operator=()

const ValueExample& ValueExample::operator= ( const ValueExample )
privatedelete

◆ value()

int ValueExample::value ( ) const
inline

Member Data Documentation

◆ value_

int ValueExample::value_
private

Definition at line 45 of file ValueExample.h.

Referenced by value().