ALPS MPS Codes
Reference documentation.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Types | Static Public Member Functions | Static Public Attributes | List of all members
U1 Class Reference

#include <u1.h>

Public Types

typedef int charge
 
typedef int subcharge
 

Static Public Member Functions

static charge fuse (charge a, charge b)
 
template<int R>
static charge fuse (const boost::array< charge, R > &v)
 

Static Public Attributes

static const charge IdentityCharge = 0
 
static const bool finite = false
 

Detailed Description

Definition at line 39 of file u1.h.

Member Typedef Documentation

typedef int U1::charge

Definition at line 42 of file u1.h.

typedef int U1::subcharge

Definition at line 43 of file u1.h.

Member Function Documentation

static charge U1::fuse ( charge  a,
charge  b 
)
inlinestatic

Definition at line 48 of file u1.h.

48 { return a + b; }
template<int R>
static charge U1::fuse ( const boost::array< charge, R > &  v)
inlinestatic

Definition at line 50 of file u1.h.

51  {
52  charge ret = 0;
53  for (int i = 0; i < R; i++)
54  ret += v[i];
55  return ret;
56  }
int charge
Definition: u1.h:42

Member Data Documentation

const bool U1::finite = false
static

Definition at line 46 of file u1.h.

const U1::charge U1::IdentityCharge = 0
static

Definition at line 45 of file u1.h.


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