LIBINT
2.6.0
|
Set of basis functions with incrementable/decrementable quantum numbers. More...
#include <bfset.h>
Public Member Functions | |
virtual void | inc (unsigned int xyz, unsigned int c=1u)=0 |
Add c quanta along xyz. | |
virtual void | dec (unsigned int xyz, unsigned int c=1u)=0 |
Subtract c quanta along xyz. If impossible, invalidate the object, but do not change its quanta! | |
virtual unsigned int | norm () const =0 |
Returns the norm of the quantum numbers. | |
bool | zero () const |
norm() == 0 | |
bool | valid () const |
Return false if this object is invalid. | |
![]() | |
virtual unsigned int | num_bf () const =0 |
virtual std::string | label () const =0 |
Protected Member Functions | |
void | invalidate () |
make this object invalid | |
Set of basis functions with incrementable/decrementable quantum numbers.
Sets must be constructable using SafePtr<BFSet> or SafePtr<ConstructablePolymorphically>.
Call to dec() may invalidate the object. No further modification of such object's state is possible. Assignment of such object to another preserves the invalid state, but copy construction of a valid object is possible.