LIBINT  2.1.0-stable
Classes | Public Types | Public Member Functions | List of all members
libint2::VectorBraket< BFS > Class Template Reference

VectorBraket is a std::vector-based type that can be used as a BraSetType or a KetSetType parameter to construct an instance of GenIntegralSet. More...

#include <braket.h>

Inheritance diagram for libint2::VectorBraket< BFS >:
Inheritance graph
[legend]
Collaboration diagram for libint2::VectorBraket< BFS >:
Collaboration graph
[legend]

Classes

struct  parent_type
 

Public Types

typedef BFS bfs_type
 
typedef BFS bfs_stor
 
typedef bfs_stor & bfs_ref
 
typedef const bfs_stor & bfs_cref
 
typedef vector< bfs_stor > BFSVector
 
typedef vector< BFSVector > BFSMatrix
 
typedef VectorBraket< typename BFS::iter_type > iter_type
 
- Public Types inherited from libint2::Hashable< LIBINT2_UINT_LEAST64, ComputeKey >
typedef KeyTraits< LIBINT2_UINT_LEAST64 >::ReturnType KeyReturnType
 

Public Member Functions

 VectorBraket ()
 This one is a very dangerous constructor – do not to use it if at all possible. More...
 
 VectorBraket (const BFSMatrix &)
 
 VectorBraket (const VectorBraket &)
 
bool operator== (const VectorBraket &) const
 Comparison function.
 
bfs_ref member (unsigned int p, unsigned int i)
 Returns pointer to the i-th function for particle p.
 
bfs_cref member (unsigned int p, unsigned int i) const
 Returns pointer to the i-th function for particle p.
 
SubIteratormember_subiter (unsigned int p, unsigned int i) const
 Returns pointer to the SubIterator for i-th BFS of particle p.
 
void set_member (bfs_cref, unsigned int p, unsigned int i)
 Sets i-th function for particle p.
 
void set_member (const ConstructablePolymorphically &, unsigned int p, unsigned int i)
 Sets i-th function for particle p (does a dynamic cast inside)
 
unsigned int num_members (unsigned int p) const
 Returns the number of BFS for particle p.
 
unsigned int num_part () const
 Returns the number of particles.
 
LIBINT2_UINT_LEAST64 key () const
 Implements Hashable::key()
 
LIBINT2_UINT_LEAST64 max_key () const
 key lies in range [0,max_key())
 

Additional Inherited Members

- Protected Attributes inherited from libint2::Hashable< LIBINT2_UINT_LEAST64, ComputeKey >
KeyStore< LIBINT2_UINT_LEAST64, OwnKey< KeyMP >::result > key_
 

Detailed Description

template<class BFS>
class libint2::VectorBraket< BFS >

VectorBraket is a std::vector-based type that can be used as a BraSetType or a KetSetType parameter to construct an instance of GenIntegralSet.

VectorBraket is the most general implementation of Braket concept, but is fairly heavy. For better efficiency use ArrayBraket.

Constructor & Destructor Documentation

template<class BFS >
libint2::VectorBraket< BFS >::VectorBraket ( )

This one is a very dangerous constructor – do not to use it if at all possible.

Provided only for compatibility for generic subiterator algorithms


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