CMS 3D CMS Logo

List of all members | Public Member Functions | Private Member Functions | Private Attributes
npstat::Element1DAt< Container, Result > Struct Template Reference

#include <SimpleFunctors.h>

Inheritance diagram for npstat::Element1DAt< Container, Result >:
npstat::Functor1< Result, Container >

Public Member Functions

 Element1DAt (const unsigned long index)
 
Result operator() (const Container &c) const
 
- Public Member Functions inherited from npstat::Functor1< Result, Container >
virtual ~Functor1 ()
 

Private Member Functions

 Element1DAt ()=delete
 

Private Attributes

unsigned long idx
 

Additional Inherited Members

- Public Types inherited from npstat::Functor1< Result, Container >
typedef Container first_argument_type
 
typedef Result result_type
 

Detailed Description

template<class Container, class Result = typename Container::value_type>
struct npstat::Element1DAt< Container, Result >

Functor which extracts a given element from a random access linear container with bounds checking

Definition at line 195 of file SimpleFunctors.h.

Constructor & Destructor Documentation

◆ Element1DAt() [1/2]

template<class Container , class Result = typename Container::value_type>
npstat::Element1DAt< Container, Result >::Element1DAt ( const unsigned long  index)
inlineexplicit

Definition at line 196 of file SimpleFunctors.h.

196 : idx(index) {}

◆ Element1DAt() [2/2]

template<class Container , class Result = typename Container::value_type>
npstat::Element1DAt< Container, Result >::Element1DAt ( )
privatedelete

Member Function Documentation

◆ operator()()

template<class Container , class Result = typename Container::value_type>
Result npstat::Element1DAt< Container, Result >::operator() ( const Container &  c) const
inlinevirtual

Member Data Documentation

◆ idx

template<class Container , class Result = typename Container::value_type>
unsigned long npstat::Element1DAt< Container, Result >::idx
private
HltBtagPostValidation_cff.c
c
Definition: HltBtagPostValidation_cff.py:31
AlignmentPI::index
index
Definition: AlignmentPayloadInspectorHelper.h:46
npstat::Element1DAt::idx
unsigned long idx
Definition: SimpleFunctors.h:202