MPQC 3.0.0-alpha
Loading...
Searching...
No Matches
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.
 
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

◆ null()

template<typename T >
virtual T sc::RangeCreator< T >::null ( ) const
inlinevirtual

returns the null object. Default is to return T(0).

Reimplemented in sc::R12TwoBodyIntKeyCreator.

◆ 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::DistArray4Creator, sc::R12TwoBodyIntKeyCreator, and sc::TwoBodyIntDescrCreator.


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

Generated at Wed Sep 25 2024 02:45:35 for MPQC 3.0.0-alpha using the documentation package Doxygen 1.12.0.