CASM  1.1.0
A Clusters Approach to Statistical Mechanics
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

◆ Value

Enumerator
cart 
va_off 
header_on 
frac 
va_on 
header_off 

Definition at line 10 of file FormatFlag.hh.

Constructor & Destructor Documentation

◆ FormatFlag() [1/2]

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

Definition at line 20 of file FormatFlag.hh.

◆ FormatFlag() [2/2]

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

Definition at line 22 of file FormatFlag.hh.

Member Function Documentation

◆ iword_index()

int CASM::FormatFlag::iword_index ( )
staticprivate

Definition at line 4 of file FormatFlag.cc.

◆ operator&()

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

Definition at line 53 of file FormatFlag.hh.

◆ operator&=()

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

Definition at line 68 of file FormatFlag.hh.

◆ operator^()

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

Definition at line 48 of file FormatFlag.hh.

◆ operator^=()

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

Definition at line 63 of file FormatFlag.hh.

◆ operator|()

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

Definition at line 43 of file FormatFlag.hh.

◆ operator|=()

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

Definition at line 58 of file FormatFlag.hh.

◆ print_header() [1/2]

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

Definition at line 31 of file FormatFlag.hh.

◆ print_header() [2/2]

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

Definition at line 33 of file FormatFlag.hh.

◆ print_va()

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

Definition at line 41 of file FormatFlag.hh.

◆ set()

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

Definition at line 26 of file FormatFlag.hh.

◆ value()

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

Definition at line 24 of file FormatFlag.hh.

Member Data Documentation

◆ m_value

int CASM::FormatFlag::m_value
private

Definition at line 75 of file FormatFlag.hh.


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