CMS 3D CMS Logo

Public Member Functions | Public Attributes

DDI::rep_type< N, I > Struct Template Reference

#include <rep_type.h>

List of all members.

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

first
bool init_
second

Detailed Description

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

Definition at line 26 of file rep_type.h.


Constructor & Destructor Documentation

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

Definition at line 28 of file rep_type.h.

: second(0), init_(false) {}
template<class N, class I>
DDI::rep_type< N, I >::rep_type ( const N &  n,
i 
) [inline]

Definition at line 29 of file rep_type.h.

                              : first(n), second(i), init_(false) 
    { if (i) init_=true; }
template<class N, class I>
virtual DDI::rep_type< N, I >::~rep_type ( ) [inline, virtual]

Definition at line 31 of file rep_type.h.

{}// 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 44 of file rep_type.h.

{ return init_; }        
template<class N, class I>
const rep_traits<N,I>::reference DDI::rep_type< N, I >::rep ( ) const [inline]

Definition at line 36 of file rep_type.h.

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

Definition at line 37 of file rep_type.h.

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

Definition at line 38 of file rep_type.h.

               { I tmp(second); 
                 second = i; 
                 init_ = false;
                 if (i) init_ = true;
                 return tmp; 
                }        

Member Data Documentation

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

Definition at line 32 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