CMS 3D CMS Logo

List of all members | Public Member Functions | Public Attributes | Private Attributes
DDI::rep_type< N, I > Struct Template Reference

#include <rep_type.h>

Public Member Functions

const rep_traits< N, I >::name_type & name () const
 
 operator bool () const
 
const rep_traits< N, I >::reference rep () const
 
 rep_type ()
 
 rep_type (const N &n, I i)
 
swap (I i)
 

Public Attributes

N first
 
second
 

Private Attributes

bool init_
 

Detailed Description

template<class N, class I>
struct DDI::rep_type< N, I >

Definition at line 33 of file rep_type.h.

Constructor & Destructor Documentation

template<class N, class I>
DDI::rep_type< N, I >::rep_type ( )
inline

Definition at line 35 of file rep_type.h.

35 : second( nullptr ), init_( false ) {}
bool init_
Definition: rep_type.h:55
template<class N, class I>
DDI::rep_type< N, I >::rep_type ( const N n,
i 
)
inline

Definition at line 36 of file rep_type.h.

36  : first( n ), second( std::move( i )), init_( false )
37  { if( i ) init_ = true; }
bool init_
Definition: rep_type.h:55
def move(src, dest)
Definition: eostools.py:511

Member Function Documentation

template<class N, class I>
const rep_traits< N, I >::name_type& DDI::rep_type< N, I >::name ( void  ) const
inline
template<class N, class I>
DDI::rep_type< N, I >::operator bool ( ) const
inline

Definition at line 52 of file rep_type.h.

52 { return init_; }
bool init_
Definition: rep_type.h:55
template<class N, class I>
const rep_traits< N, I >::reference DDI::rep_type< N, I >::rep ( ) const
inline

Definition at line 42 of file rep_type.h.

42 { return *second; }
template<class N, class I>
I DDI::rep_type< N, I >::swap ( i)
inline

Definition at line 44 of file rep_type.h.

45  {
46  I tmp( second );
47  second = i;
48  init_ = false;
49  if( i ) init_ = true;
50  return tmp;
51  }
bool init_
Definition: rep_type.h:55
const std::complex< double > I
Definition: I.h:8
std::vector< std::vector< double > > tmp
Definition: MVATrainer.cc:100

Member Data Documentation

template<class N, class I>
N DDI::rep_type< N, I >::first

Definition at line 38 of file rep_type.h.

template<class N, class I>
bool DDI::rep_type< N, I >::init_
private

Definition at line 55 of file rep_type.h.

template<class N, class I>
I DDI::rep_type< N, I >::second