SyFi  0.3
SyFi::OrderedPtvSet_i Class Reference

#include <OrderedPtvSet.h>

List of all members.

Public Member Functions

 OrderedPtvSet_i ()
 OrderedPtvSet_i (OrderedPtvSet &s, unsigned int i)
 OrderedPtvSet_i (OrderedPtvSet &s, unsigned int i0, unsigned int i1)
virtual ~OrderedPtvSet_i ()
const OrderedPtvSetget_OrderedPtvSet () const
unsigned int get_i (unsigned int n) const
unsigned int size () const
bool less (const OrderedPtvSet_i &si) const

Private Attributes

pair< OrderedPtvSet, vector
< unsigned int > > 
si

Detailed Description

Definition at line 65 of file OrderedPtvSet.h.


Constructor & Destructor Documentation

Definition at line 138 of file OrderedPtvSet.cpp.

        {
        }

Definition at line 146 of file OrderedPtvSet.cpp.

References si.

        {
                si.first = s;
                si.second.push_back(i);
        }
SyFi::OrderedPtvSet_i::OrderedPtvSet_i ( OrderedPtvSet s,
unsigned int  i0,
unsigned int  i1 
)

Definition at line 152 of file OrderedPtvSet.cpp.

References si.

        {
                si.first = s;
                si.second.push_back(i0);
                si.second.push_back(i1);
        }

Definition at line 142 of file OrderedPtvSet.cpp.

        {
        }

Member Function Documentation

unsigned int SyFi::OrderedPtvSet_i::get_i ( unsigned int  n) const

Definition at line 164 of file OrderedPtvSet.cpp.

References si.

Referenced by less(), and SyFi::operator<<().

        {
                if ( n >= 0 && n < si.second.size() )
                {
                        return si.second[n];
                }
                else
                {

                        throw(std::out_of_range("The index is out of range!"));

                }
        }

Definition at line 159 of file OrderedPtvSet.cpp.

References si.

Referenced by less(), and SyFi::operator<<().

        {
                return si.first;
        }
bool SyFi::OrderedPtvSet_i::less ( const OrderedPtvSet_i si) const

Definition at line 183 of file OrderedPtvSet.cpp.

References get_i(), get_OrderedPtvSet(), si, and size().

Referenced by SyFi::OrderedPtvSet_i_is_less::operator()().

        {
                if ( si.second.size() < ss.size() ) return true;
                if ( si.second.size() > ss.size() ) return false;

                for (unsigned int d=0; d< si.second.size(); d++)
                {
                        if ( si.second[d] < ss.get_i(d) ) return true;
                        if ( si.second[d] > ss.get_i(d) ) return false;
                }

                return si.first.less(ss.get_OrderedPtvSet());

        }
unsigned int SyFi::OrderedPtvSet_i::size ( ) const

Definition at line 178 of file OrderedPtvSet.cpp.

References si.

Referenced by less(), and SyFi::operator<<().

        {
                return si.second.size();
        }

Member Data Documentation

pair<OrderedPtvSet,vector<unsigned int> > SyFi::OrderedPtvSet_i::si [private]

Definition at line 67 of file OrderedPtvSet.h.

Referenced by get_i(), get_OrderedPtvSet(), less(), OrderedPtvSet_i(), and size().


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator