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

vtkExtensionsObjectVector Class Reference

#include <vtkExtensionsObjectVector.h>

Inheritance diagram for vtkExtensionsObjectVector:

Inheritance graph
[legend]
Collaboration diagram for vtkExtensionsObjectVector:

Collaboration graph
[legend]
List of all members.

Detailed Description

A vector sequence object for objects.

Calls Register when objects are inserted into the vector and UnRegister when the object is removed.

Author:
Sean McInerney
Version:
Revision
1.2
Date:
Date
2004/06/03 18:58:28
See also:
vtkObjectVector vtkExtensionsObject

Definition at line 36 of file vtkExtensionsObjectVector.h.

Public Member Functions

 vtkTypeRevisionMacro (vtkExtensionsObjectVector, vtkObjectVector)
virtual int Swap (vtkExtensionsObjectVector *container)
 Swaps elements of this object with those of the specified container.

virtual vtkExtensionsObjectAt (vtkIdType position) const
 Provides access to the data contained in this vector.

virtual vtkIdType Find (const vtkExtensionsObject *object) const
 Find an object in the vector.

virtual vtkIdType Find (const vtkExtensionsObject *object, CompareFunction comparison) const
 Find an object in the vector using a comparison routine.

virtual int IsPresent (const vtkExtensionsObject *object) const
 Find an object in the vector.

virtual int Insert (vtkIdType position, vtkExtensionsObject *object)
 Inserts a pointer to an object into before the specified position.

virtual int Insert (vtkIdType position, vtkExtensionsObjectVector *sequence)
 Insert a sequence at the specific position in this vector.

virtual int PushFront (vtkExtensionsObject *object)
 Add a pointer to an object to the front of this vector.

virtual int PushBack (vtkExtensionsObject *object)
 Add a pointer to an object to the end of this vector.

virtual int PushBack (vtkExtensionsObjectVector *sequence)
 Append a sequence to the end of this vector.

virtual int Assign (vtkIdType position, vtkExtensionsObject *object)
 Sets the object at the specific position to a new value.

vtkExtensionsObjectVectorIteratorCreateIterator (void)
 Create an iterator.

Traversal Methods
virtual vtkExtensionsObjectFront (void) const
 Get a read/write pointer to the first object in the vector.

virtual vtkExtensionsObjectBack (void) const
 Get a read/write pointer to the last object in the vector.


Static Public Member Functions

vtkExtensionsObjectVectorNew (void)

Protected Member Functions

 vtkExtensionsObjectVector (void)
 ~vtkExtensionsObjectVector ()


Constructor & Destructor Documentation

vtkExtensionsObjectVector::vtkExtensionsObjectVector void   )  [inline, protected]
 

Definition at line 183 of file vtkExtensionsObjectVector.h.

vtkExtensionsObjectVector::~vtkExtensionsObjectVector  )  [inline, protected]
 

Definition at line 184 of file vtkExtensionsObjectVector.h.


Member Function Documentation

virtual int vtkExtensionsObjectVector::Assign vtkIdType  position,
vtkExtensionsObject object
[inline, virtual]
 

Sets the object at the specific position to a new value.

Returns:
true if the item can be set, otherwise false.

Definition at line 156 of file vtkExtensionsObjectVector.h.

virtual vtkExtensionsObject* vtkExtensionsObjectVector::At vtkIdType  position  )  const [inline, virtual]
 

Provides access to the data contained in this vector.

Parameters:
position The element index for which data should be accessed.
Returns:
A Read/write pointer to the object if position is a valid index, otherwise null.

Reimplemented from vtkObjectVector.

Definition at line 57 of file vtkExtensionsObjectVector.h.

virtual vtkExtensionsObject* vtkExtensionsObjectVector::Back void   )  const [inline, virtual]
 

Get a read/write pointer to the last object in the vector.

Returns:
null if the vector is empty, otherwise returns a pointer to an object.

Reimplemented from vtkObjectVector.

Definition at line 175 of file vtkExtensionsObjectVector.h.

vtkExtensionsObjectVectorIterator* vtkExtensionsObjectVector::CreateIterator void   )  [virtual]
 

Create an iterator.

Reimplemented from vtkObjectVector.

virtual vtkIdType vtkExtensionsObjectVector::Find const vtkExtensionsObject object,
CompareFunction  comparison
const [inline, virtual]
 

Find an object in the vector using a comparison routine.

Returns:
true if it was found, false if it was not found.

Definition at line 72 of file vtkExtensionsObjectVector.h.

virtual vtkIdType vtkExtensionsObjectVector::Find const vtkExtensionsObject object  )  const [inline, virtual]
 

Find an object in the vector.

Returns:
The position if it was found, -1 if it was not found.

Definition at line 64 of file vtkExtensionsObjectVector.h.

virtual vtkExtensionsObject* vtkExtensionsObjectVector::Front void   )  const [inline, virtual]
 

Get a read/write pointer to the first object in the vector.

Returns:
null if the vector is empty, otherwise returns a pointer to an object.

Reimplemented from vtkObjectVector.

Definition at line 167 of file vtkExtensionsObjectVector.h.

virtual int vtkExtensionsObjectVector::Insert vtkIdType  position,
vtkExtensionsObjectVector sequence
[inline, virtual]
 

Insert a sequence at the specific position in this vector.

Any objects in the vector at a location greater than position will be shifted by the size of the sequence to make room for the inserted elements.

Parameters:
position An index into the vector.
sequence The vector containing data to be inserted.
Warning:
This can not be used with SetCapacity() because there will be no room for the additional elements.
Returns:
true on success, false otherwise.

Definition at line 115 of file vtkExtensionsObjectVector.h.

virtual int vtkExtensionsObjectVector::Insert vtkIdType  position,
vtkExtensionsObject object
[inline, virtual]
 

Inserts a pointer to an object into before the specified position.

Any objects in the vector at a location greater than position will be shifted by one position to make room for the inserted object.

Parameters:
position An index into the vector.
object Data to be inserted.
Warning:
This can not be used with SetCapacity() because there will be no room for the additional object.
Returns:
true on success, false otherwise.

Definition at line 97 of file vtkExtensionsObjectVector.h.

virtual int vtkExtensionsObjectVector::IsPresent const vtkExtensionsObject object  )  const [inline, virtual]
 

Find an object in the vector.

Returns:
true if it was found, otherwise false.

Definition at line 81 of file vtkExtensionsObjectVector.h.

vtkExtensionsObjectVector* vtkExtensionsObjectVector::New void   )  [static]
 

Reimplemented from vtkObjectVector.

virtual int vtkExtensionsObjectVector::PushBack vtkExtensionsObjectVector sequence  )  [inline, virtual]
 

Append a sequence to the end of this vector.

Parameters:
sequence The vector containing data to be appended.
Warning:
This can not be used with SetCapacity() because there will be no room for the additional elements.
Returns:
true on success, false otherwise.

Definition at line 149 of file vtkExtensionsObjectVector.h.

virtual int vtkExtensionsObjectVector::PushBack vtkExtensionsObject object  )  [inline, virtual]
 

Add a pointer to an object to the end of this vector.

Parameters:
object Data to be added.
This is a typical stack operation. The function creates an element at the end of the vector and assigns the given pointer to it.

Definition at line 137 of file vtkExtensionsObjectVector.h.

virtual int vtkExtensionsObjectVector::PushFront vtkExtensionsObject object  )  [inline, virtual]
 

Add a pointer to an object to the front of this vector.

Parameters:
object Data to be added.
This is a typical stack operation. The function creates an element at the front of the vector and assigns the given data to it.

Definition at line 126 of file vtkExtensionsObjectVector.h.

virtual int vtkExtensionsObjectVector::Swap vtkExtensionsObjectVector container  )  [inline, virtual]
 

Swaps elements of this object with those of the specified container.

Returns:
true on success, otherwise false.

Definition at line 47 of file vtkExtensionsObjectVector.h.

vtkExtensionsObjectVector::vtkTypeRevisionMacro vtkExtensionsObjectVector  ,
vtkObjectVector 
 

Reimplemented from vtkExtensionsObject.


The documentation for this class was generated from the following file:
Generated on Tue Aug 10 03:43:35 2004 for vtkExtensions by doxygen 1.3.7