CMS 3D CMS Logo

Public Member Functions | Private Types

GaussianStateLessWeight< N > Class Template Reference

#include <GaussianStateLessWeight.h>

List of all members.

Public Member Functions

 GaussianStateLessWeight ()
 GaussianStateLessWeight ()
bool operator() (const RCSingleGaussianState a, const RCSingleGaussianState b) const
bool operator() (const SingleStatePtr &a, const SingleStatePtr &b) const

Private Types

typedef boost::shared_ptr
< SingleGaussianState< N > > 
SingleStatePtr

Detailed Description

template<unsigned int N>
class GaussianStateLessWeight< N >

Compare two SingleGaussianState acc. to their weight.

Definition at line 12 of file GaussianStateLessWeight.h.


Member Typedef Documentation

template<unsigned int N>
typedef boost::shared_ptr< SingleGaussianState<N> > GaussianStateLessWeight< N >::SingleStatePtr [private]

Definition at line 15 of file GaussianStateLessWeight.h.


Constructor & Destructor Documentation

template<unsigned int N>
GaussianStateLessWeight< N >::GaussianStateLessWeight ( ) [inline]

Definition at line 18 of file GaussianStateLessWeight.h.

{}
template<unsigned int N>
GaussianStateLessWeight< N >::GaussianStateLessWeight ( ) [inline]

Definition at line 13 of file GaussianStateLessWeight.h.

{}

Member Function Documentation

template<unsigned int N>
bool GaussianStateLessWeight< N >::operator() ( const SingleStatePtr a,
const SingleStatePtr b 
) const [inline]

Definition at line 19 of file GaussianStateLessWeight.h.

  {
// ThS: No validity for SingleGaussianState
//     if ( !a.isValid() || !b.isValid() )  return false;
    return a->weight()>b->weight();
  }
template<unsigned int N>
bool GaussianStateLessWeight< N >::operator() ( const RCSingleGaussianState  a,
const RCSingleGaussianState  b 
) const [inline]

Definition at line 14 of file GaussianStateLessWeight.h.

  {
// ThS: No validity for RCSingleGaussianState
//     if ( !a.isValid() || !b.isValid() )  return false;
    return a->weight()>b->weight();
  }