MPQC  3.0.0-alpha
mpqc::ci::String Struct Reference

Classes

struct  Index
 implements a dense String->index map, appropriate for a full CI string sets More...
 
struct  List
 String::List represents a set of String objects. More...
 
struct  orbitals
 

Public Types

typedef std::bitset< 64 > bitset
 

Public Member Functions

 String (size_t size, size_t count)
 Construct string with 'count' electrons, eg String(4,2) will generate a string '0011'. More...
 
 String (std::string value)
 Construct String from a char string. More...
 
 String (const String &s)
 
const void * data () const
 
bool operator[] (size_t i) const
 
size_t size () const
 
size_t count () const
 
orbitals occ () const
 
String swap (size_t i, size_t j) const
 
 operator std::string () const
 return string in bit representation order, lowest bit is right-most
 
size_t to_ulong () const
 
size_t operator^ (const String &b) const
 
size_t operator& (size_t b) const
 

Static Public Member Functions

static size_t difference (const String &a, const String &b)
 
static size_t count (size_t b)
 

Constructor & Destructor Documentation

◆ String() [1/2]

mpqc::ci::String::String ( size_t  size,
size_t  count 
)
inline

Construct string with 'count' electrons, eg String(4,2) will generate a string '0011'.

Parameters
sizenumber of orbitals
countnumber of electrons

◆ String() [2/2]

mpqc::ci::String::String ( std::string  value)
inlineexplicit

Construct String from a char string.

Warning
string is in "natural", NOT bit, order, i.e. string[0] bit corresponds to String[0] bit

The documentation for this struct was generated from the following file:

Generated at Sun Jan 26 2020 23:24:02 for MPQC 3.0.0-alpha using the documentation package Doxygen 1.8.16.