Rocstar  1.0
Rocstar multiphysics simulation application
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
MyEntityIterator Class Reference

A class for iterating through a Panes vertices or elements. More...

#include <MesqPane.h>

Inheritance diagram for MyEntityIterator:
Collaboration diagram for MyEntityIterator:

Public Member Functions

 MyEntityIterator (uint size)
 Constructor. More...
 
virtual ~MyEntityIterator ()
 Destructor. More...
 
virtual void restart ()
 Moves the iterator back to the first entity in the list. More...
 
virtual Mesh::EntityHandle operator* () const
 Return the handle currently being pointed to by the iterator. More...
 
virtual void operator++ ()
 Move to the next entity. More...
 
virtual bool is_at_end () const
 Check if we are at the end of the entites. More...
 
 MyEntityIterator (uint size)
 Constructor. More...
 
virtual ~MyEntityIterator ()
 Destructor. More...
 
virtual void restart ()
 Moves the iterator back to the first entity in the list. More...
 
virtual Mesh::EntityHandle operator* () const
 Return the handle currently being pointed to by the iterator. More...
 
virtual void operator++ ()
 Move to the next entity. More...
 
virtual bool is_at_end () const
 Check if we are at the end of the entites. More...
 
 MyEntityIterator (uint size)
 Constructor. More...
 
virtual ~MyEntityIterator ()
 Destructor. More...
 
virtual void restart ()
 Moves the iterator back to the first entity in the list. More...
 
virtual Mesh::EntityHandle operator* () const
 Return the handle currently being pointed to by the iterator. More...
 
virtual void operator++ ()
 Move to the next entity. More...
 
virtual bool is_at_end () const
 Check if we are at the end of the entites. More...
 
- Public Member Functions inherited from EntityIterator
virtual ~EntityIterator ()
 

Private Attributes

uint _cur
 
uint _size
 

Detailed Description

A class for iterating through a Panes vertices or elements.

Definition at line 495 of file MesqPane.h.

Constructor & Destructor Documentation

MyEntityIterator ( uint  size)
inline

Constructor.

Definition at line 499 of file MesqPane.h.

499 { _cur = 1; _size = size;}
virtual ~MyEntityIterator ( )
inlinevirtual

Destructor.

Definition at line 502 of file MesqPane.h.

503  {_cur = 0;
504  _size = 0;
505  }
MyEntityIterator ( uint  size)
inline

Constructor.

Definition at line 630 of file MesqPane_1_1.h.

References _cur, and _size.

630 { _cur = 1; _size = size;}
virtual ~MyEntityIterator ( )
inlinevirtual

Destructor.

Definition at line 633 of file MesqPane_1_1.h.

References _cur, and _size.

634  {_cur = 0;
635  _size = 0;
636  }
MyEntityIterator ( uint  size)
inline

Constructor.

Definition at line 526 of file MesqPane_95.h.

References _cur, and _size.

526 { _cur = 1; _size = size;}
virtual ~MyEntityIterator ( )
inlinevirtual

Destructor.

Definition at line 529 of file MesqPane_95.h.

References _cur, and _size.

530  {_cur = 0;
531  _size = 0;
532  }

Member Function Documentation

virtual bool is_at_end ( ) const
inlinevirtual

Check if we are at the end of the entites.

Returns false until the iterator has been advanced PAST the last entity once is_at_end() returns true, *iterator returns 0.

Implements EntityIterator.

Definition at line 530 of file MesqPane.h.

530  {
531  if (_cur <= _size) return 0;
532  else return 1;
533  }
virtual bool is_at_end ( ) const
inlinevirtual

Check if we are at the end of the entites.

Returns false until the iterator has been advanced PAST the last entity once is_at_end() returns true, *iterator returns 0.

Implements EntityIterator.

Definition at line 557 of file MesqPane_95.h.

References _cur, and _size.

557  {
558  if (_cur <= _size) return 0;
559  else return 1;
560  }
virtual bool is_at_end ( ) const
inlinevirtual

Check if we are at the end of the entites.

Returns false until the iterator has been advanced PAST the last entity once is_at_end() returns true, *iterator returns 0.

Implements EntityIterator.

Definition at line 661 of file MesqPane_1_1.h.

References _cur, and _size.

661  {
662  if (_cur <= _size) return 0;
663  else return 1;
664  }
virtual Mesh::EntityHandle operator* ( ) const
inlinevirtual

Return the handle currently being pointed to by the iterator.

Implements EntityIterator.

Definition at line 513 of file MesqPane.h.

513  {
514  if (_cur > _size)
515  return 0;
516  else
517  return (char*)NULL+_cur;
518  }
virtual Mesh::EntityHandle operator* ( ) const
inlinevirtual

Return the handle currently being pointed to by the iterator.

Implements EntityIterator.

Definition at line 540 of file MesqPane_95.h.

References _cur, and _size.

540  {
541  if (_cur > _size)
542  return 0;
543  else
544  return (char*)NULL+_cur;
545  }
virtual Mesh::EntityHandle operator* ( ) const
inlinevirtual

Return the handle currently being pointed to by the iterator.

Implements EntityIterator.

Definition at line 644 of file MesqPane_1_1.h.

References _cur, and _size.

644  {
645  if (_cur > _size)
646  return 0;
647  else
648  return (char*)NULL+_cur;
649  }
virtual void operator++ ( )
inlinevirtual

Move to the next entity.

Implements EntityIterator.

Definition at line 521 of file MesqPane.h.

521  {
522  _cur ++;
523  }
virtual void operator++ ( )
inlinevirtual

Move to the next entity.

Implements EntityIterator.

Definition at line 548 of file MesqPane_95.h.

References _cur.

548  {
549  _cur ++;
550  }
virtual void operator++ ( )
inlinevirtual

Move to the next entity.

Implements EntityIterator.

Definition at line 652 of file MesqPane_1_1.h.

References _cur.

652  {
653  _cur ++;
654  }
virtual void restart ( )
inlinevirtual

Moves the iterator back to the first entity in the list.

Implements EntityIterator.

Definition at line 508 of file MesqPane.h.

508  {
509  _cur = 1;
510  };
virtual void restart ( )
inlinevirtual

Moves the iterator back to the first entity in the list.

Implements EntityIterator.

Definition at line 535 of file MesqPane_95.h.

References _cur.

535  {
536  _cur = 1;
537  };
virtual void restart ( )
inlinevirtual

Moves the iterator back to the first entity in the list.

Implements EntityIterator.

Definition at line 639 of file MesqPane_1_1.h.

References _cur.

639  {
640  _cur = 1;
641  };

Member Data Documentation

uint _cur
private
uint _size
private

Definition at line 536 of file MesqPane.h.

Referenced by is_at_end(), MyEntityIterator(), operator*(), and ~MyEntityIterator().


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