TBTK
TBTK::FockStateRule::SumRule Class Reference
Inheritance diagram for TBTK::FockStateRule::SumRule:
TBTK::FockStateRule::FockStateRule

Public Member Functions

 SumRule (std::initializer_list< Index > stateIndices, int numParticles)
 
 SumRule (std::vector< Index > stateIndices, int numParticles)
 
virtual ~SumRule ()
 
virtual SumRuleclone () const
 
virtual WrapperRule createNewRule (const LadderOperator< BitRegister > &ladderOperator) const
 
virtual WrapperRule createNewRule (const LadderOperator< ExtensiveBitRegister > &ladderOperator) const
 
virtual bool isSatisfied (const FockSpace< BitRegister > &fockSpace, const FockState< BitRegister > &fockState) const
 
virtual bool isSatisfied (const FockSpace< ExtensiveBitRegister > &fockSpace, const FockState< ExtensiveBitRegister > &fockState) const
 
virtual bool operator== (const FockStateRule &rhs) const
 
virtual void print () const
 
- Public Member Functions inherited from TBTK::FockStateRule::FockStateRule
 FockStateRule (FockStateRuleID fockStateRuleID)
 
virtual ~FockStateRule ()
 
FockStateRuleID getFockStateRuleID () const
 

Additional Inherited Members

- Public Types inherited from TBTK::FockStateRule::FockStateRule
enum  FockStateRuleID { WrapperRule = 0, SumRule = 1, DifferenceRule = 2 }
 

Constructor & Destructor Documentation

◆ SumRule() [1/2]

TBTK::FockStateRule::SumRule::SumRule ( std::initializer_list< Index stateIndices,
int  numParticles 
)

Constructor

◆ SumRule() [2/2]

TBTK::FockStateRule::SumRule::SumRule ( std::vector< Index stateIndices,
int  numParticles 
)

Constructor

◆ ~SumRule()

virtual TBTK::FockStateRule::SumRule::~SumRule ( )
virtual

Destructor.

Member Function Documentation

◆ clone()

virtual SumRule* TBTK::FockStateRule::SumRule::clone ( ) const
virtual

◆ createNewRule() [1/2]

virtual WrapperRule TBTK::FockStateRule::SumRule::createNewRule ( const LadderOperator< BitRegister > &  ladderOperator) const
virtual

◆ createNewRule() [2/2]

virtual WrapperRule TBTK::FockStateRule::SumRule::createNewRule ( const LadderOperator< ExtensiveBitRegister > &  ladderOperator) const
virtual

◆ isSatisfied() [1/2]

virtual bool TBTK::FockStateRule::SumRule::isSatisfied ( const FockSpace< BitRegister > &  fockSpace,
const FockState< BitRegister > &  fockState 
) const
virtual

Check whether a given FockState fullfills the rule with respect to a particular FockSpace.

Implements TBTK::FockStateRule::FockStateRule.

◆ isSatisfied() [2/2]

virtual bool TBTK::FockStateRule::SumRule::isSatisfied ( const FockSpace< ExtensiveBitRegister > &  fockSpace,
const FockState< ExtensiveBitRegister > &  fockState 
) const
virtual

Check whether a given FockState fullfills the rule with respect to a particular FockSpace.

Implements TBTK::FockStateRule::FockStateRule.

◆ operator==()

virtual bool TBTK::FockStateRule::SumRule::operator== ( const FockStateRule rhs) const
virtual

Comparison operator.

Implements TBTK::FockStateRule::FockStateRule.

◆ print()

virtual void TBTK::FockStateRule::SumRule::print ( ) const
virtual

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