omc::SignedSet Class Reference

List of all members.

Public Member Functions

 SignedSet (size_t)
 SignedSet (const std::string)
 SignedSet (const char *)
 SignedSet (const SignedSet &)
size_t size () const
void shrink ()
size_t numZeros () const
size_t numNonZeros () const
sign_t & operator[] (index_t i)
sign_t operator[] (index_t i) const
bool negative () const
void negate ()
void compose (SignedSet &)
void relabel (index_t, index_t)
void relabel (const Permutation &)
void reorient (index_t i)
void reorient (const Combination &)
bool operator< (const SignedSet &) const
bool operator== (const SignedSet &) const
bool operator!= (const SignedSet &) const
bool operator*= (const SignedSet &) const
bool operator/= (const SignedSet &) const
bool operator-= (const SignedSet &) const
bool operator+= (const SignedSet &) const
SignedSet operator- (const SignedSet &) const
SignedSet operator- () const
std::ostream & show (std::ostream &) const

Protected Attributes

std::vector< sign_t > m_Sign

Constructor & Destructor Documentation

omc::SignedSet::SignedSet ( size_t  len  )  [inline]

Constructor: zero signed set of given length.

omc::SignedSet::SignedSet ( const std::string  signs  ) 

Constructor: signs are given in a string.

omc::SignedSet::SignedSet ( const char *  signs  ) 

Constructor: signs are given in a string.

omc::SignedSet::SignedSet ( const SignedSet sSet  )  [inline]

Copy constructor.


Member Function Documentation

void omc::SignedSet::compose ( SignedSet S  ) 

Compose with another signed set.

void omc::SignedSet::negate (  )  [inline]

Sign negation.

bool omc::SignedSet::negative (  )  const

Test for negativity (the 1st non-zero sign is -).

size_t omc::SignedSet::numNonZeros (  )  const [inline]

Get the number of non-zeros in the signed set.

size_t omc::SignedSet::numZeros (  )  const

Get the number of 0's in the signed set.

bool omc::SignedSet::operator!= ( const SignedSet S  )  const

Comparator !=.

bool omc::SignedSet::operator*= ( const SignedSet S  )  const

Operator *= : conformal. X *= Y if for any e with X_e != 0 and Y_e !=0, X_e = Y_e.

bool omc::SignedSet::operator+= ( const SignedSet S  )  const

Operator += : support subset. X += Y if for any e with X_e != 0, Y_e != 0.

SignedSet omc::SignedSet::operator- (  )  const [inline]

Unary operator - : return the negation of the signed set.

SignedSet omc::SignedSet::operator- ( const SignedSet S  )  const

Operator - : s - t returns a signed set u whose nonzero signs (+,-) are those that are in s but not in t. e.g. 0+0+ - 00++ = 0+00.

bool omc::SignedSet::operator-= ( const SignedSet S  )  const

Operator -= : subset. X -= Y if for any e with X_e != 0, Y_e = X_e.

bool omc::SignedSet::operator/= ( const SignedSet S  )  const

Operator /= : conforms to. X /= Y if for any e with X_e != 0, X_e = Y_e.

bool omc::SignedSet::operator< ( const SignedSet S  )  const

Comparator <.

bool omc::SignedSet::operator== ( const SignedSet S  )  const

Comaparator ==.

sign_t omc::SignedSet::operator[] ( index_t  i  )  const [inline]

Get the sign at index i.

sign_t & omc::SignedSet::operator[] ( index_t  i  )  [inline]

Get the reference (can be used as lvalue) of the sign at index i.

void omc::SignedSet::relabel ( const Permutation perm  )  [inline]

Relabel using a given permutation.

void omc::SignedSet::relabel ( index_t  i,
index_t  j 
) [inline]

Relabel a pair of indices.

void omc::SignedSet::reorient ( const Combination comb  )  [inline]

Reorient a set of elements.

void omc::SignedSet::reorient ( index_t  i  )  [inline]

Reorient a single element.

std::ostream & omc::SignedSet::show ( std::ostream &  os  )  const [inline]

Output to an output stream.

void omc::SignedSet::shrink (  )  [inline]

Shrink the size by 1: the last element is erased.

size_t omc::SignedSet::size (  )  const [inline]

Size of the signed set.


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

Generated on Fri Feb 12 16:10:24 2010 by  doxygen 1.6.1