MPQC  3.0.0-alpha
sc::RangeCreator< T > Class Template Referenceabstract

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. More...
 
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
 

Detailed Description

template<typename T>
class sc::RangeCreator< T >

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.

Member Function Documentation

◆ operator()()

template<typename T>
virtual T sc::RangeCreator< T >::operator() ( )
pure virtual

returns a new object T, or null() if done.

See also
null()

Implemented in sc::R12TwoBodyIntKeyCreator, sc::TwoBodyIntDescrCreator, and sc::DistArray4Creator.


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

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