CASM
AClustersApproachtoStatisticalMechanics
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules
CASM::FormatFlag Class Reference

#include <FormatFlag.hh>

Detailed Description

Definition at line 8 of file FormatFlag.hh.

Public Types

enum  Value {
  cart = 0, va_off = 0, header_on = 0, frac = (1u << 0),
  va_on = (1u << 1), header_off = (1u << 2)
}
 

Public Member Functions

 FormatFlag (int _value)
 
 FormatFlag (std::ostream &_stream)
 
int value () const
 
std::ostream & set (std::ostream &_stream) const
 
bool print_header () const
 
FormatFlagprint_header (bool _set)
 
bool print_va () const
 
FormatFlag operator| (int RHS)
 
FormatFlag operator^ (int RHS)
 
FormatFlag operator& (int RHS)
 
FormatFlagoperator|= (int RHS)
 
FormatFlagoperator^= (int RHS)
 
FormatFlagoperator&= (int RHS)
 

Static Private Member Functions

static int iword_index ()
 

Private Attributes

int m_value
 

Member Enumeration Documentation

Enumerator
cart 
va_off 
header_on 
frac 
va_on 
header_off 

Definition at line 10 of file FormatFlag.hh.

Constructor & Destructor Documentation

CASM::FormatFlag::FormatFlag ( int  _value)
inline

Definition at line 20 of file FormatFlag.hh.

CASM::FormatFlag::FormatFlag ( std::ostream &  _stream)
inline

Definition at line 22 of file FormatFlag.hh.

Member Function Documentation

int CASM::FormatFlag::iword_index ( )
staticprivate

Definition at line 4 of file FormatFlag.cc.

FormatFlag CASM::FormatFlag::operator& ( int  RHS)
inline

Definition at line 59 of file FormatFlag.hh.

FormatFlag& CASM::FormatFlag::operator&= ( int  RHS)
inline

Definition at line 74 of file FormatFlag.hh.

FormatFlag CASM::FormatFlag::operator^ ( int  RHS)
inline

Definition at line 54 of file FormatFlag.hh.

FormatFlag& CASM::FormatFlag::operator^= ( int  RHS)
inline

Definition at line 69 of file FormatFlag.hh.

FormatFlag CASM::FormatFlag::operator| ( int  RHS)
inline

Definition at line 49 of file FormatFlag.hh.

FormatFlag& CASM::FormatFlag::operator|= ( int  RHS)
inline

Definition at line 64 of file FormatFlag.hh.

bool CASM::FormatFlag::print_header ( ) const
inline

Definition at line 33 of file FormatFlag.hh.

FormatFlag& CASM::FormatFlag::print_header ( bool  _set)
inline

Definition at line 37 of file FormatFlag.hh.

bool CASM::FormatFlag::print_va ( ) const
inline

Definition at line 45 of file FormatFlag.hh.

std::ostream& CASM::FormatFlag::set ( std::ostream &  _stream) const
inline

Definition at line 28 of file FormatFlag.hh.

int CASM::FormatFlag::value ( ) const
inline

Definition at line 24 of file FormatFlag.hh.

Member Data Documentation

int CASM::FormatFlag::m_value
private

Definition at line 81 of file FormatFlag.hh.


The documentation for this class was generated from the following files: