Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members

PLearn::Range Class Reference

#include <Range.h>

Collaboration diagram for PLearn::Range:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 Range (int the_start=0, int the_length=0)
bool isEmpty ()
bool operator== (Range r) const
bool operator< (Range r) const
 operator void * ()
 to allow if(range) statements (safer than operator bool, according to Nicolas.)


Public Attributes

int start
 index of first element

int length
 number of elements


Constructor & Destructor Documentation

PLearn::Range::Range int  the_start = 0,
int  the_length = 0
[inline]
 

Definition at line 62 of file Range.h.

References length, and start.


Member Function Documentation

bool PLearn::Range::isEmpty  )  [inline]
 

Definition at line 65 of file Range.h.

References length.

PLearn::Range::operator void *  )  [inline]
 

to allow if(range) statements (safer than operator bool, according to Nicolas.)

Definition at line 74 of file Range.h.

References length.

bool PLearn::Range::operator< Range  r  )  const [inline]
 

Definition at line 70 of file Range.h.

References length, and start.

bool PLearn::Range::operator== Range  r  )  const [inline]
 

Definition at line 67 of file Range.h.

References length, and start.


Member Data Documentation

int PLearn::Range::length
 

number of elements

Definition at line 60 of file Range.h.

Referenced by isEmpty(), operator void *(), operator<(), PLearn::operator<<(), operator==(), Range(), and PLearn::TVec< pair< real, real > >::subVec().

int PLearn::Range::start
 

index of first element

Definition at line 59 of file Range.h.

Referenced by operator<(), PLearn::operator<<(), operator==(), Range(), and PLearn::TVec< pair< real, real > >::subVec().


The documentation for this class was generated from the following file:
Generated on Tue Aug 17 16:22:42 2004 for PLearn by doxygen 1.3.7