#include <Pointer.h>
Inheritance diagram for Pointer::
Public Methods | |
Pointer () | |
Constructor. More... | |
Pointer (const Pointer< STYPE, ATYPE > &s) | |
Copy constructor. More... | |
Pointer (STYPE *s) | |
Constructor with subscriptable. More... | |
~Pointer () | |
Destructor. More... | |
void | Dump (ostream &aStream) |
Dump this pointer. More... | |
void | Nullify () |
Make this Pointer null. More... | |
bool | IsNull () |
Return true if this is a null pointer. More... | |
Pointer< STYPE, ATYPE > & | operator= (const Pointer< STYPE, ATYPE > &s) |
Assign a Pointer to this. More... | |
Pointer< STYPE, ATYPE > & | operator-= (const long i) |
Subtract from this. More... | |
Pointer< STYPE, ATYPE > & | operator-= (Pointer< STYPE, ATYPE > &v) |
Subtract from this. More... | |
Pointer< STYPE, ATYPE > & | operator+= (const long i) |
Add to this. More... | |
Pointer< STYPE, ATYPE > & | operator+= (Pointer< STYPE, ATYPE > &v) |
Add to this. More... | |
Pointer< STYPE, ATYPE > & | operator *= (const long i) |
Multiply this. More... | |
Pointer< STYPE, ATYPE > & | operator *= (Pointer< STYPE, ATYPE > &v) |
Multiply this. More... | |
Pointer< STYPE, ATYPE > & | operator/= (const long i) |
Divide this. More... | |
Pointer< STYPE, ATYPE > & | operator/= (Pointer< STYPE, ATYPE > &v) |
Divide this. More... | |
Pointer< STYPE, ATYPE > & | operator++ () |
Prefix increment this. More... | |
Pointer< STYPE, ATYPE > & | operator++ (int) |
Postfix increment this. More... | |
Pointer< STYPE, ATYPE > & | operator-- () |
Prefix decrement this. More... | |
Pointer< STYPE, ATYPE > & | operator-- (int) |
Postfix decrement this. More... | |
long | operator| (const Pointer< STYPE, ATYPE > &v) |
Calculate difference. More... | |
Pointer< STYPE, ATYPE > & | operator+ (long v) |
Add an integer value. More... | |
Pointer< STYPE, ATYPE > & | operator- (long v) |
Subtract an integer value. More... | |
Pointer< STYPE, ATYPE > & | operator * (long v) |
Multiply by an integer value. More... | |
Pointer< STYPE, ATYPE > & | operator/ (long v) |
Divide by an integer value. More... | |
int | operator< (long v) |
Less than operator. More... | |
int | operator< (Pointer< STYPE, ATYPE > &p) |
Less than operator. More... | |
int | operator> (long v) |
Greater than operator. More... | |
int | operator> (Pointer< STYPE, ATYPE > &p) |
Greater than operator. More... | |
int | operator<= (long v) |
Less than or equal operator. More... | |
int | operator<= (Pointer< STYPE, ATYPE > &p) |
Less than or equal operator. More... | |
int | operator>= (long v) |
Greater than or equal operator. More... | |
int | operator>= (Pointer< STYPE, ATYPE > &p) |
Greater than or equal operator. More... | |
int | operator!= (long v) |
Not equal operator. More... | |
int | operator!= (Pointer< STYPE, ATYPE > &p) |
Not equal operator. More... | |
ATYPE & | operator * () |
Dereference. More... | |
int | operator== (const Pointer< STYPE, ATYPE > &s) const |
Equal operator. More... | |
int | operator== (const char *s) const |
Equal operator. More... | |
STYPE * | Get () |
Return the object to which this points. More... | |
int | GetIndex () |
Return pointer index. More... | |
void | Init (STYPE *s) |
Initialize. More... | |
Protected Attributes | |
STYPE * | ptr |
A pointer to the underlying subscriptable object. More... | |
int | pos |
Current pointer index. More... |
|
Basic Constructor method for this.
|
|
Copy constructor method for this.
|
|
Constructor with subscribtable object for this.
|
|
Class Destructor.
|
|
Dump a formated representation of this pointer pointer to an ostream. Used for debugging purposes.
|
|
Return the underlying subscriptable object to which this points.
|
|
Return the index position pointed to by this.
Reimplemented from BasicPointer. |
|
Initialize this with a subscriptable object.
|
|
Return true if this is a null pointer (as if Nullify() had been called on this).
Reimplemented from BasicPointer. |
|
Set this Pointer to NULL by dereferencing the object to which it points and setting the position and pointer fields to null.
Reimplemented from BasicPointer. |
|
Dereference this at the current index position. That is, return the value at the current index position held by this.
|
|
Multiply the index held by this by an (long) integer value.
|
|
Multiply the index held by this by another Pointer.
|
|
Multiply the index held by this by an (const) integer value.
|
|
Determine if the index held by this is not equal to another Pointer index.
|
|
Determine if the index held by this is not equal to a (long) integer value.
|
|
Add an (long) integer value to the index held by this.
|
|
Postfix increment the index held by this by one.
|
|
Prefix increment the index held by this by one.
|
|
Add the value held by another Pointer to the index held by this.
|
|
Add an (const) integer value to the index held by this.
|
|
Subtract an (long) integer value to the index held by this.
|
|
Postfix decrement the index held by this by one.
|
|
Prefix decrement the index held by this by one.
|
|
Subtract the value held by another Pointer from the index held by this.
|
|
Subtract an (const) integer value from the index held by this.
|
|
Divide the index held by this by an (long) integer value.
|
|
Divide the index held by this by another Pointer.
|
|
Divide the index held by this by an (const) integer value.
|
|
Determine if the index held by this is less than another Pointer index.
|
|
Determine if the index held by this is less than a (long) integer value.
|
|
Determine if the index held by this is less than or equal to another Pointer index.
|
|
Determine if the index held by this is less than or equal to a (long) integer value.
|
|
Assign another pointer to this.
|
|
Equality operator (principally for comparing to NULL)
|
|
Determine if the index held by this is equal to another Pointer index.
|
|
Determine if the index held by this is greater than another Pointer index.
|
|
Determine if the index held by this is greater than a (long) integer value.
|
|
Determine if the index held by this is greater than or equal to another Pointer index.
|
|
Determine if the index held by this is greater than or equal to a (long) integer value.
|
|
Calcluate the difference between the indexes of two pointers.
|
|
Current pointer index position. |
|
A pointer to the underlying subscriptable object pointed to by this. |