00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016 #ifndef VTK_OBJECT_VECTOR_H_
00017 # define VTK_OBJECT_VECTOR_H_
00018 # include "vtkObjectBaseVector.h"
00019 # include "vtkObjectVectorIterator.h"
00020
00031 class VTK_CONTAINERS_EXPORT vtkObjectVector
00032 : public vtkObjectBaseVector
00033 {
00034 public:
00035 static vtkObjectVector* New (void);
00036 vtkTypeRevisionMacro (vtkObjectVector, vtkObjectBaseVector);
00037 void PrintSelf (ostream&, vtkIndent);
00038
00043 virtual int Swap (vtkObjectVector* container)
00044 { return this->Superclass::Swap(container); }
00045
00050 virtual int Copy (vtkObjectVector* container)
00051 { return this->Superclass::Copy(container); }
00052
00059 vtkObject* At (vtkIdType position) const
00060 { return static_cast<vtkObject*>(this->Superclass::At(position)); }
00061
00075 virtual int Insert (vtkIdType position, vtkObject* item)
00076 { return this->Superclass::Insert(position, item); }
00077
00093 virtual int Insert (vtkIdType position,
00094 vtkObjectVector* sequence)
00095 { return this->Superclass::Insert(position, sequence); }
00096
00114 virtual int Insert (vtkIdType position,
00115 vtkObjectVector* sequence,
00116 vtkIdType seqBeg,
00117 vtkIdType seqEnd)
00118 { return this->Superclass::Insert(position, sequence, seqBeg, seqEnd); }
00119
00124 virtual int Assign (vtkIdType position, vtkObject* item)
00125 { return this->Superclass::Assign(position, item); }
00126
00131 virtual int PushBack (vtkObject* item)
00132 { return this->Superclass::PushBack(item); }
00133
00143 virtual int PushFront (vtkObject* item)
00144 { return this->Superclass::PushFront(item); }
00145
00150 vtkObject* Front (void) const
00151 { return static_cast<vtkObject*>(this->Superclass::Front()); }
00152
00157 vtkObject* Back (void) const
00158 { return static_cast<vtkObject*>(this->Superclass::Back()); }
00159
00161 vtkObjectVectorIterator* CreateIterator (void);
00162
00163 protected:
00164 vtkObjectVector (void);
00165 ~vtkObjectVector();
00166
00167 private:
00168
00170 friend class vtkObjectVectorIterator;
00171
00173 int Swap (vtkObjectBaseVector* a)
00174 { return this->Superclass::Swap(a); }
00175 int Copy (vtkObjectBaseVector* a)
00176 { return this->Superclass::Copy(a); }
00177 int Insert (vtkIdType position, vtkObjectBase* object)
00178 { return this->Superclass::Insert(position, object); }
00179 int Insert (vtkIdType pos, vtkObjectBaseVector* seq)
00180 { return this->Superclass::Insert(pos, seq); }
00181 int Insert (vtkIdType pos, vtkObjectBaseVector* seq,
00182 vtkIdType seqBeg, vtkIdType seqEnd)
00183 { return this->Superclass::Insert(pos, seq, seqBeg, seqEnd); }
00184 int Assign (vtkIdType position, vtkObjectBase* object)
00185 { return this->Superclass::Assign(position, object); }
00186 int PushBack (vtkObjectBase* object)
00187 { return this->Superclass::PushBack(object); }
00188 int PushFront (vtkObjectBase* object)
00189 { return this->Superclass::PushFront(object); }
00191
00192
00193 private:
00199 vtkObjectVector (const vtkObjectVector&);
00200 void operator= (const vtkObjectVector&);
00202 };
00203
00204 #endif
00205
00206
00207
00208