sc::RangeCreator< T > Class Template Reference

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>

Inheritance diagram for sc::RangeCreator< T >:

Inheritance graph
[legend]

List of all members.

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

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


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

Generated at Sun Feb 22 10:12:42 2009 for MPQC 3.0.0-alpha using the documentation package Doxygen 1.5.6.
These pages are hosted on SourceForge.net