CMS 3D CMS Logo

Public Types | Public Member Functions | Public Attributes

ora::AllKnowTypeHandlers Struct Reference

#include <RecordDetails.h>

List of all members.

Public Types

typedef std::vector
< TypeHandler const * >
::const_iterator 
CI

Public Member Functions

 AllKnowTypeHandlers ()
TypeHandler const * operator() (std::type_info const &type) const

Public Attributes

std::vector< TypeHandler const * > all
AnyTypeHandler< bool > b
AnyTypeHandler< bool * > bp
AnyTypeHandler< char > c
AnyTypeHandler< coral::Blob > cb
AnyTypeHandler< char * > cp
AnyTypeHandler< double > d
AnyTypeHandler< double * > dp
AnyTypeHandler< float > f
AnyTypeHandler< float * > fp
AnyTypeHandler< int > i
AnyTypeHandler< int * > ip
AnyTypeHandler< long > l
AnyTypeHandler< long double > ld
AnyTypeHandler< long double * > ldp
AnyTypeHandler< long long > ll
AnyTypeHandler< long long * > lp
AnyTypeHandler< short > s
AnyTypeHandler< short * > sp
AnyTypeHandler< std::string > ss
AnyTypeHandler< std::string * > ssp
AnyTypeHandler< unsigned char > uc
AnyTypeHandler< unsigned char * > ucp
AnyTypeHandler< unsigned int > ui
AnyTypeHandler< unsigned int * > uip
AnyTypeHandler< unsigned long
long > 
ul
AnyTypeHandler< unsigned long
long * > 
ulp
AnyTypeHandler< unsigned short > us
AnyTypeHandler< unsigned short * > usp
VoidStarHandler vs

Detailed Description

Definition at line 102 of file RecordDetails.h.


Member Typedef Documentation

typedef std::vector<TypeHandler const *>::const_iterator ora::AllKnowTypeHandlers::CI

Definition at line 141 of file RecordDetails.h.


Constructor & Destructor Documentation

ora::AllKnowTypeHandlers::AllKnowTypeHandlers ( )

Definition at line 151 of file RecordDetails.h.

References all, b, bp, c, cb, cp, d, dp, f, fp, i, ip, l, ld, ldp, ll, lp, s, python::multivaluedict::sort(), sp, ss, ssp, uc, ucp, ui, uip, ul, ulp, us, usp, and vs.

                                           {
    all.push_back(&vs);

    all.push_back(&b);
    all.push_back(&c);
    all.push_back(&uc);
    all.push_back(&s);
    all.push_back(&us);
    all.push_back(&i);
    all.push_back(&ui);
    all.push_back(&l);
    all.push_back(&ll);
    all.push_back(&ul);
    all.push_back(&f);
    all.push_back(&d);
    all.push_back(&ld);
    all.push_back(&ss);

    all.push_back(&bp);
    all.push_back(&cp);
    all.push_back(&ucp);
    all.push_back(&sp);
    all.push_back(&usp);
    all.push_back(&ip);
    all.push_back(&uip);
    all.push_back(&lp);
    all.push_back(&ulp);
    all.push_back(&fp);
    all.push_back(&dp);
    all.push_back(&ldp);
    all.push_back(&ssp);

    all.push_back(&cb);
    std::sort(all.begin(),all.end(),CompareTypeHandler());
  }

Member Function Documentation

TypeHandler const * ora::AllKnowTypeHandlers::operator() ( std::type_info const &  type) const

Definition at line 187 of file RecordDetails.h.

References all, and h.

                                                                                     {
    NullTypeHandler h(type);
    std::pair<CI,CI> range =  std::equal_range(all.begin(),all.end(),&h,CompareTypeHandler());
    return (range.first==range.second) ?  (TypeHandler const *)(0) : *range.first;
  }

Member Data Documentation

Definition at line 140 of file RecordDetails.h.

Referenced by AllKnowTypeHandlers(), and operator()().

Definition at line 107 of file RecordDetails.h.

Referenced by AllKnowTypeHandlers().

Definition at line 123 of file RecordDetails.h.

Referenced by AllKnowTypeHandlers().

Definition at line 108 of file RecordDetails.h.

Referenced by AllKnowTypeHandlers().

Definition at line 138 of file RecordDetails.h.

Referenced by AllKnowTypeHandlers().

Definition at line 124 of file RecordDetails.h.

Referenced by AllKnowTypeHandlers().

Definition at line 118 of file RecordDetails.h.

Referenced by AllKnowTypeHandlers().

Definition at line 133 of file RecordDetails.h.

Referenced by AllKnowTypeHandlers().

Definition at line 117 of file RecordDetails.h.

Referenced by AllKnowTypeHandlers().

Definition at line 132 of file RecordDetails.h.

Referenced by AllKnowTypeHandlers().

Definition at line 112 of file RecordDetails.h.

Referenced by AllKnowTypeHandlers().

Definition at line 128 of file RecordDetails.h.

Referenced by AllKnowTypeHandlers().

Definition at line 114 of file RecordDetails.h.

Referenced by AllKnowTypeHandlers().

Definition at line 120 of file RecordDetails.h.

Referenced by AllKnowTypeHandlers().

Definition at line 135 of file RecordDetails.h.

Referenced by AllKnowTypeHandlers().

Definition at line 115 of file RecordDetails.h.

Referenced by AllKnowTypeHandlers().

Definition at line 130 of file RecordDetails.h.

Referenced by AllKnowTypeHandlers().

Definition at line 110 of file RecordDetails.h.

Referenced by AllKnowTypeHandlers().

Definition at line 126 of file RecordDetails.h.

Referenced by AllKnowTypeHandlers().

Definition at line 121 of file RecordDetails.h.

Referenced by AllKnowTypeHandlers().

Definition at line 136 of file RecordDetails.h.

Referenced by AllKnowTypeHandlers().

Definition at line 109 of file RecordDetails.h.

Referenced by AllKnowTypeHandlers().

Definition at line 125 of file RecordDetails.h.

Referenced by AllKnowTypeHandlers().

Definition at line 113 of file RecordDetails.h.

Referenced by AllKnowTypeHandlers().

Definition at line 129 of file RecordDetails.h.

Referenced by AllKnowTypeHandlers().

Definition at line 116 of file RecordDetails.h.

Referenced by AllKnowTypeHandlers().

Definition at line 131 of file RecordDetails.h.

Referenced by AllKnowTypeHandlers().

Definition at line 111 of file RecordDetails.h.

Referenced by AllKnowTypeHandlers().

Definition at line 127 of file RecordDetails.h.

Referenced by AllKnowTypeHandlers().

Definition at line 105 of file RecordDetails.h.

Referenced by AllKnowTypeHandlers().