CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions | Private Attributes | Friends
edm::OStreamColumn Class Reference

#include <OStreamColumn.h>

Public Member Functions

template<typename T >
auto operator() (T const &t) const
 
 OStreamColumn (std::string const &t)
 
 OStreamColumn (std::string const &t, std::size_t const w)
 
std::size_t width () const
 

Private Attributes

std::string title_
 
std::size_t width_
 

Friends

std::ostream & operator<< (std::ostream &, OStreamColumn const &)
 
template<typename E >
std::ostream & operator<< (std::ostream &, OStreamColumnEntry< E > const &)
 

Detailed Description

Definition at line 53 of file OStreamColumn.h.

Constructor & Destructor Documentation

OStreamColumn::OStreamColumn ( std::string const &  t)
explicit
OStreamColumn::OStreamColumn ( std::string const &  t,
std::size_t const  w 
)
explicit

Definition at line 9 of file OStreamColumn.cc.

Member Function Documentation

template<typename T >
auto edm::OStreamColumn::operator() ( T const &  t) const
inline

Definition at line 59 of file OStreamColumn.h.

59  {
60  return OStreamColumnEntry<T>{*this, t};
61  }
std::size_t edm::OStreamColumn::width ( ) const
inline

Definition at line 63 of file OStreamColumn.h.

References width_.

63 { return width_; }
std::size_t width_
Definition: OStreamColumn.h:67

Friends And Related Function Documentation

std::ostream& operator<< ( std::ostream &  t,
OStreamColumn const &  c 
)
friend
template<typename E >
std::ostream& operator<< ( std::ostream &  t,
OStreamColumnEntry< E > const &  ce 
)
friend

Definition at line 78 of file OStreamColumn.h.

78  {
79  t << std::setw(ce.col.width_) << ce.t;
80  return t;
81  }

Member Data Documentation

std::string edm::OStreamColumn::title_
private

Definition at line 66 of file OStreamColumn.h.

Referenced by edm::operator<<().

std::size_t edm::OStreamColumn::width_
private

Definition at line 67 of file OStreamColumn.h.

Referenced by edm::operator<<(), and width().