Auxiliary class for format center.  
 More...
#include <JManip.hh>
Auxiliary class for format center. 
Definition at line 372 of file JManip.hh.
 
  
  
      
        
          | CENTER::JCenter::JCenter  | 
          ( | 
          std::ostream &  | 
          out,  | 
         
        
           | 
           | 
          const WIDTH &  | 
          format  | 
         
        
           | 
          ) | 
           |  | 
         
       
   | 
  
inline   | 
  
 
Constructor. 
- Parameters
 - 
  
    | out | output stream  | 
    | format | format center  | 
  
   
Definition at line 381 of file JManip.hh.
WIDTH(const int width)
Constructor. 
 
 
 
 
template<class T > 
  
  
      
        
          | std::ostream& CENTER::JCenter::operator<<  | 
          ( | 
          const T &  | 
          value | ) | 
           | 
         
       
   | 
  
inline   | 
  
 
Write value to output stream. 
- Parameters
 - 
  
  
 
- Returns
 - this JCenter 
 
Definition at line 394 of file JManip.hh.
  404       const int  w = this->
width - os.str().size();
 
  405       const char c = this->
out.fill();
 
  408         return this->
out << 
FILL(
w/2) << 
' ' << os.str() << 
FILL((
w+1)/2) << 
' ' << setfill(c);
 
  410         return this->
out << os.str();
 
Auxiliary data structure for sequence of same character. 
 
 
 
 
  
  
      
        
          | std::ostream& CENTER::JCenter::out | 
         
       
   | 
  
private   | 
  
 
 
The documentation for this struct was generated from the following file: