CASM
AClustersApproachtoStatisticalMechanics
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules
CASM_global_definitions.cc
Go to the documentation of this file.
2 
3 namespace CASM {
4 
5  bool valid_index(Index i) {
6  return 0 <= i;
7  }
8 
9  std::istream &operator>>(std::istream &sin, COORD_TYPE &coord) {
10  std::string s;
11  sin >> s;
12  if(s == "FRAC" || s == "0") {
13  coord = FRAC;
14  }
15  else if(s == "CART" || s == "1") {
16  coord = CART;
17  }
18  else if(s == "COORD_DEFAULT" || s == "2") {
19  coord = COORD_DEFAULT;
20  }
21  return sin;
22  }
23 
24  void print_splash(std::ostream &out) {
25 
26  out << " .::::::::. .:::::. .::::::. .:. .:. \n"
27  << " .:::::::::::. .:::::::. .::::::::::. .:::. .:::. \n"
28  << " .:::' ':::. .:::' ':::. .:::' ':::: .:::::. .:::::. \n"
29  << " :::: :::: .:::' ':::. :::: '::' .:::::::. .:::::::. \n"
30  << " :::: :::: :::: '::::. ::::'':::.:::'':::: \n"
31  << " :::: :::: :::: '::::::. :::: ':::::' :::: \n"
32  << " :::: ::::::::::::: ''::::::. :::: ':::' :::: \n"
33  << " :::: ::::::::::::: ':::::: :::: ':' :::: \n"
34  << " :::: .:::: :::: :::: ::::: :::: :::: \n"
35  << " ':::. .::::' :::: :::: .::. .:::: :::: :::: \n"
36  << " '::::::::::' :::: :::: :::::...:::::' :::: :::: \n"
37  << " ':::::' '::' '::' ':::::::::::' '::' '::' \n";
38  }
39 
40 
41 }
42 
Main CASM namespace.
Definition: complete.cpp:8
EigenIndex Index
For long integer indexing:
void print_splash(std::ostream &out)
std::istream & operator>>(std::istream &_in, std::vector< T > &vec)
bool valid_index(Index i)