CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes
edm::TypeBases Class Reference

#include <TypeWithDict.h>

Public Member Functions

IterWithDict< TBaseClass > begin () const
 
IterWithDict< TBaseClass > end () const
 
size_t size () const
 
 TypeBases (TypeWithDict const &)
 

Private Attributes

TClass * class_
 

Detailed Description

Definition at line 153 of file TypeWithDict.h.

Constructor & Destructor Documentation

edm::TypeBases::TypeBases ( TypeWithDict const &  type)
explicit

Definition at line 836 of file TypeWithDict.cc.

836 : class_(type.getClass()) {}
type
Definition: HCALResponse.h:21
TClass * class_
Definition: TypeWithDict.h:155

Member Function Documentation

IterWithDict< TBaseClass > edm::TypeBases::begin ( void  ) const

Definition at line 838 of file TypeWithDict.cc.

References class_.

838  {
839  if (class_ == nullptr) {
840  return IterWithDict<TBaseClass>();
841  }
842  return IterWithDict<TBaseClass>(class_->GetListOfBases());
843  }
TClass * class_
Definition: TypeWithDict.h:155
IterWithDict< TBaseClass > edm::TypeBases::end ( void  ) const

Definition at line 845 of file TypeWithDict.cc.

845 { return IterWithDict<TBaseClass>(); }
size_t edm::TypeBases::size ( void  ) const

Definition at line 847 of file TypeWithDict.cc.

References class_.

Referenced by ntupleDataFormat._Collection::__iter__(), ntupleDataFormat._Collection::__len__(), and FWSimpleRepresentationChecker::inheritsFrom().

847  {
848  if (class_ == nullptr) {
849  return 0;
850  }
851  return class_->GetListOfBases()->GetSize();
852  }
TClass * class_
Definition: TypeWithDict.h:155

Member Data Documentation

TClass* edm::TypeBases::class_
private

Definition at line 155 of file TypeWithDict.h.

Referenced by begin(), and size().