CMS 3D CMS Logo

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

#include <TypeWithDict.h>

Public Member Functions

IterWithDict< TDataMember > begin () const
 
IterWithDict< TDataMember > end () const
 
size_t size () const
 
 TypeDataMembers (TypeWithDict const &)
 

Private Attributes

TClass * class_
 

Detailed Description

Definition at line 164 of file TypeWithDict.h.

Constructor & Destructor Documentation

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

Definition at line 858 of file TypeWithDict.cc.

858 : class_(type.getClass()) {}
type
Definition: HCALResponse.h:21

Member Function Documentation

IterWithDict< TDataMember > edm::TypeDataMembers::begin ( void  ) const

Definition at line 860 of file TypeWithDict.cc.

References class_.

Referenced by FWItemAccessorFactory::hasMemberTVirtualCollectionProxy().

860  {
861  if (class_ == nullptr) {
862  return IterWithDict<TDataMember>();
863  }
864  return IterWithDict<TDataMember>(class_->GetListOfDataMembers());
865  }
IterWithDict< TDataMember > edm::TypeDataMembers::end ( void  ) const

Definition at line 867 of file TypeWithDict.cc.

867 { return IterWithDict<TDataMember>(); }
size_t edm::TypeDataMembers::size ( void  ) const

Definition at line 869 of file TypeWithDict.cc.

References class_.

Referenced by ntupleDataFormat._Collection::__iter__(), ntupleDataFormat._Collection::__len__(), and FWItemAccessorFactory::hasMemberTVirtualCollectionProxy().

869  {
870  if (class_ == nullptr) {
871  return 0;
872  }
873  return class_->GetListOfDataMembers()->GetSize();
874  }

Member Data Documentation

TClass* edm::TypeDataMembers::class_
private

Definition at line 166 of file TypeWithDict.h.

Referenced by begin(), and size().