|
typedef std::bitset< 64 > | bitset |
|
|
| 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 size_t | difference (const String &a, const String &b) |
|
static size_t | count (size_t b) |
|
◆ 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
-
size | number of orbitals |
count | number 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: