Cadabra
Computer algebra system for field theory problems
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Public Types | Public Member Functions | Protected Member Functions | Private Attributes | List of all members
combin::combinations< T > Class Template Reference

#include <Combinatorics.hh>

Inheritance diagram for combin::combinations< T >:
combin::combinations_base< T >

Public Types

typedef std::vector
< std::vector< T > > 
permuted_sets_t
 
typedef
permuted_sets_t::const_iterator 
const_iterator
 
- Public Types inherited from combin::combinations_base< T >
enum  weight_cond { weight_equals, weight_less, weight_greater }
 

Public Member Functions

 combinations ()
 
 combinations (const std::vector< T > &)
 
virtual ~combinations ()
 
virtual void clear ()
 
virtual void clear_results ()
 
const std::vector< T > & operator[] (unsigned int) const
 
int ordersign (unsigned int) const
 
unsigned int size () const
 
unsigned int multiplier (unsigned int) const
 
- Public Member Functions inherited from combin::combinations_base< T >
 combinations_base ()
 
 combinations_base (const std::vector< T > &)
 
virtual ~combinations_base ()
 
void permute (long start=-1, long end=-1)
 
unsigned int sum_of_sublengths () const
 
void set_unit_sublengths ()
 
unsigned int multiplier (const std::vector< T > &) const
 
unsigned int total_permutations () const
 

Protected Member Functions

virtual void vector_generated (const std::vector< unsigned int > &)
 
- Protected Member Functions inherited from combin::combinations_base< T >
virtual bool entry_accepted (unsigned int current) const
 

Private Attributes

permuted_sets_t storage
 

Additional Inherited Members

- Public Attributes inherited from combin::combinations_base< T >
unsigned int block_length
 
std::vector< unsigned int > sublengths
 
range_vector_t input_asym
 
std::vector< T > original
 
bool multiple_pick
 
std::vector< weights_tweights
 
std::vector< int > max_weights
 
std::vector< weight_condweight_conditions
 
unsigned int sub_problem_blocksize
 
- Protected Attributes inherited from combin::combinations_base< T >
std::vector< unsigned int > temparr
 
long start_
 
long end_
 
long vector_generated_called_
 
std::vector< int > current_weight
 

Member Typedef Documentation

template<class T>
typedef permuted_sets_t::const_iterator combin::combinations< T >::const_iterator
template<class T>
typedef std::vector<std::vector<T> > combin::combinations< T >::permuted_sets_t

Constructor & Destructor Documentation

template<class T >
combin::combinations< T >::combinations ( )
template<class T>
combin::combinations< T >::combinations ( const std::vector< T > &  oa)
template<class T >
combin::combinations< T >::~combinations ( )
virtual

Member Function Documentation

template<class T >
void combin::combinations< T >::clear ( )
virtual

Reimplemented from combin::combinations_base< T >.

template<class T >
void combin::combinations< T >::clear_results ( )
virtual

Reimplemented from combin::combinations_base< T >.

template<class T >
unsigned int combin::combinations< T >::multiplier ( unsigned int  num) const
template<class T >
const std::vector< T > & combin::combinations< T >::operator[] ( unsigned int  i) const
template<class T >
int combin::combinations< T >::ordersign ( unsigned int  num) const
template<class T >
unsigned int combin::combinations< T >::size ( ) const
template<class T >
void combin::combinations< T >::vector_generated ( const std::vector< unsigned int > &  toadd)
protectedvirtual

Member Data Documentation

template<class T>
permuted_sets_t combin::combinations< T >::storage
private

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