CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Public 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_traits< N, I >::reference rep ()
 
 rep_type ()
 
 rep_type (const N &n, I i)
 
swap (I i)
 
virtual ~rep_type ()
 

Public Attributes

N first
 
bool init_
 
second
 

Detailed Description

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

Definition at line 25 of file rep_type.h.

Constructor & Destructor Documentation

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

Definition at line 27 of file rep_type.h.

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

Definition at line 28 of file rep_type.h.

28  : first(n), second(i), init_(false)
29  { if (i) init_=true; }
int i
Definition: DBlmapReader.cc:9
bool init_
Definition: rep_type.h:33
template<class N, class I>
virtual DDI::rep_type< N, I >::~rep_type ( )
inlinevirtual

Definition at line 30 of file rep_type.h.

30 {} // talk to Chris about this: delete second; }

Member Function Documentation

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

Definition at line 45 of file rep_type.h.

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

Definition at line 35 of file rep_type.h.

35 { return *second; }
template<class N, class I>
rep_traits<N,I>::reference DDI::rep_type< N, I >::rep ( )
inline

Definition at line 36 of file rep_type.h.

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

Definition at line 37 of file rep_type.h.

38  {
39  I tmp(second);
40  second = i;
41  init_ = false;
42  if (i) init_ = true;
43  return tmp;
44  }
int i
Definition: DBlmapReader.cc:9
bool init_
Definition: rep_type.h:33
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 31 of file rep_type.h.

Referenced by DDI::rep_type< DDName, pimpl_type >::name().

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