|
MPQC 3.0.0-alpha
|
RangeCreator<T> is Functor which can be used up to n times to create objects of type T. More...
#include <chemistry/qc/mbptr12/creator.h>
Public Member Functions | |
| RangeCreator (unsigned int n) | |
| virtual T | operator() ()=0 |
| returns a new object T, or null() if done. | |
| virtual T | null () const |
| returns the null object. Default is to return T(0). | |
Protected Member Functions | |
| bool | can_create () const |
| void | next () |
| unsigned int | ncreated () const |
RangeCreator<T> is Functor which can be used up to n times to create objects of type T.
operator() returns the objects, or 0 when done. Thus T must be Comparable to an int or Constructable from an int.
|
inlinevirtual |
returns the null object. Default is to return T(0).
Reimplemented in sc::R12TwoBodyIntKeyCreator.
|
pure virtual |
returns a new object T, or null() if done.
Implemented in sc::DistArray4Creator, sc::R12TwoBodyIntKeyCreator, and sc::TwoBodyIntDescrCreator.