MPQC  3.0.0-alpha
sc::StringReplacementListIterator< FString, R, GenerateStrings > Class Template Reference

Iterates over strings obtained by rank R replecement from a given string. More...

#include <chemistry/qc/nbody/string.h>

Public Types

typedef FString::state_index_type state_index_type
 

Public Member Functions

 StringReplacementListIterator (const FString &ref_string)
 
StringReplacementListIteratoroperator++ ()
 
const FString & operator* () const
 
const FermionBasicNCOper< Rank, FString > & oper () const
 
 operator bool () const
 are there more strings left? More...
 
bool operator== (const StringReplacementListIterator &other)
 

Static Public Member Functions

static StringReplacementListIterator begin (const FString &ref_string)
 
static StringReplacementListIterator end (const FString &ref_string)
 

Static Public Attributes

static const unsigned int Rank = R
 

Detailed Description

template<typename FString, unsigned int R, bool GenerateStrings>
class sc::StringReplacementListIterator< FString, R, GenerateStrings >

Iterates over strings obtained by rank R replecement from a given string.

This is a forward output iterator

Template Parameters
FStringfermion string type
Rreplacement rank
GenerateStringsif true, will compute strings also, otherwise will only compute the operators

Member Function Documentation

◆ operator bool()

template<typename FString , unsigned int R, bool GenerateStrings>
sc::StringReplacementListIterator< FString, R, GenerateStrings >::operator bool ( ) const
inline

are there more strings left?

Returns
true if there are more strings in the interation sequence

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

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