VectorCollection Class Reference

#include <IEModel.h>

Collaboration diagram for VectorCollection:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 VectorCollection ()
virtual ~VectorCollection ()
VectorGetArray ()
Vector GetAt (int index) const
int GetSize () const
void SetSize (int newsize, int growby=-1)
VectorElementAt (int index)
int Add (Vector &vector, LONG key=-1)
int LookUp (const Vector &vector, LONG key=-1)
int LookUpHashKey (Vector &vector)
int GetHashKey (LONG key)
int GetHashKey (const Vector &vector)
void Empty ()
Vector operator[] (int index) const
Vectoroperator[] (int index)
void Shrink ()
 VectorCollection ()
virtual ~VectorCollection ()
int GetSize () const
void SetSize (int newsize, int growby=-1)
int Add (Vector &vector, LONG key=-1)
int LookUp (const Vector &vector, LONG key=-1)
int LookUpHashKey (Vector &vector)
void Empty ()
void Shrink ()
VectorGetArray ()
Vector GetAt (int index) const
VectorElementAt (int index)
Vector operator[] (int index) const
Vectoroperator[] (int index)

Public Attributes

HashArray< Vector, Vector & > m_array
CArray< Vector, Vector & > m_array

Private Member Functions

int GetHashKey (LONG key)
int GetHashKey (const Vector &vector)

Private Attributes

HashArray< HashNode *, HashNode * > m_hasharray
CArray< HashNode *, HashNode * > m_hasharray

Detailed Description

Definition at line 274 of file IEModel.h.


Constructor & Destructor Documentation

VectorCollection::VectorCollection  )  [inline]
 

Definition at line 281 of file IEModel.h.

References m_array, and HashArray< TYPE, ARG_TYPE >::SetGranularity().

Here is the call graph for this function:

VectorCollection::~VectorCollection  )  [inline, virtual]
 

Definition at line 324 of file IEModel.h.

References Empty().

Here is the call graph for this function:

VectorCollection::VectorCollection  )  [inline]
 

Definition at line 23 of file VectorCo.h.

References m_array, m_hasharray, HashArray< TYPE, ARG_TYPE >::SetGranularity(), and HashArray< TYPE, ARG_TYPE >::SetSize().

Here is the call graph for this function:

virtual VectorCollection::~VectorCollection  )  [virtual]
 


Member Function Documentation

int VectorCollection::Add Vector vector,
LONG  key = -1
 

int VectorCollection::Add Vector vector,
LONG  key = -1
[inline]
 

Definition at line 387 of file IEModel.h.

References HashArray< TYPE, ARG_TYPE >::Add(), HashArray< TYPE, ARG_TYPE >::GetAt(), GetHashKey(), HashArray< TYPE, ARG_TYPE >::GetSize(), m_array, m_hasharray, HashNode::m_id, HashNode::m_key, HashNode::m_next, HashArray< TYPE, ARG_TYPE >::SetAt(), HashArray< TYPE, ARG_TYPE >::SetSize(), Vector::x, Vector::y, and Vector::z.

Here is the call graph for this function:

Vector& VectorCollection::ElementAt int  index  )  [inline]
 

Definition at line 43 of file VectorCo.h.

References HashArray< TYPE, ARG_TYPE >::ElementAt(), and m_array.

Here is the call graph for this function:

Vector& VectorCollection::ElementAt int  index  )  [inline]
 

Definition at line 292 of file IEModel.h.

References HashArray< TYPE, ARG_TYPE >::ElementAt(), and m_array.

Here is the call graph for this function:

void VectorCollection::Empty  ) 
 

void VectorCollection::Empty  )  [inline]
 

Definition at line 307 of file IEModel.h.

References HashArray< TYPE, ARG_TYPE >::GetSize(), m_array, m_hasharray, HashNode::m_next, and HashArray< TYPE, ARG_TYPE >::SetSize().

Referenced by ~VectorCollection().

Here is the call graph for this function:

Vector* VectorCollection::GetArray  )  [inline]
 

Definition at line 41 of file VectorCo.h.

References HashArray< TYPE, ARG_TYPE >::GetArray(), and m_array.

Here is the call graph for this function:

Vector* VectorCollection::GetArray  )  [inline]
 

Definition at line 288 of file IEModel.h.

References HashArray< TYPE, ARG_TYPE >::GetArray(), and m_array.

Here is the call graph for this function:

Vector VectorCollection::GetAt int  index  )  const [inline]
 

Definition at line 42 of file VectorCo.h.

References HashArray< TYPE, ARG_TYPE >::GetAt(), and m_array.

Here is the call graph for this function:

Vector VectorCollection::GetAt int  index  )  const [inline]
 

Definition at line 289 of file IEModel.h.

References HashArray< TYPE, ARG_TYPE >::GetAt(), and m_array.

Here is the call graph for this function:

int VectorCollection::GetHashKey const Vector vector  )  [private]
 

int VectorCollection::GetHashKey LONG  key  )  [private]
 

int VectorCollection::GetHashKey const Vector vector  )  [inline]
 

Definition at line 334 of file IEModel.h.

References SIGN, Vector::x, Vector::y, and Vector::z.

int VectorCollection::GetHashKey LONG  key  )  [inline]
 

Definition at line 329 of file IEModel.h.

Referenced by Add(), and LookUp().

int VectorCollection::GetSize  )  const [inline]
 

Definition at line 30 of file VectorCo.h.

References HashArray< TYPE, ARG_TYPE >::GetSize(), and m_array.

Here is the call graph for this function:

int VectorCollection::GetSize  )  const [inline]
 

Definition at line 290 of file IEModel.h.

References HashArray< TYPE, ARG_TYPE >::GetSize(), and m_array.

Referenced by IEPolyModel::GetNumNormals(), and IEPolyModel::GetNumVerts().

Here is the call graph for this function:

int VectorCollection::LookUp const Vector vector,
LONG  key = -1
 

int VectorCollection::LookUp const Vector vector,
LONG  key = -1
[inline]
 

Definition at line 342 of file IEModel.h.

References HashArray< TYPE, ARG_TYPE >::GetAt(), GetHashKey(), HashArray< TYPE, ARG_TYPE >::GetSize(), m_array, m_hasharray, HashNode::m_id, HashNode::m_next, Vector::x, Vector::y, and Vector::z.

Here is the call graph for this function:

int VectorCollection::LookUpHashKey Vector vector  ) 
 

int VectorCollection::LookUpHashKey Vector vector  )  [inline]
 

Definition at line 368 of file IEModel.h.

References HashArray< TYPE, ARG_TYPE >::GetAt(), HashArray< TYPE, ARG_TYPE >::GetSize(), m_array, m_hasharray, HashNode::m_next, Vector::x, Vector::y, and Vector::z.

Here is the call graph for this function:

Vector& VectorCollection::operator[] int  index  )  [inline]
 

Definition at line 45 of file VectorCo.h.

References HashArray< TYPE, ARG_TYPE >::ElementAt(), and m_array.

Here is the call graph for this function:

Vector VectorCollection::operator[] int  index  )  const [inline]
 

Definition at line 44 of file VectorCo.h.

References HashArray< TYPE, ARG_TYPE >::GetAt(), and m_array.

Here is the call graph for this function:

Vector& VectorCollection::operator[] int  index  )  [inline]
 

Definition at line 300 of file IEModel.h.

References HashArray< TYPE, ARG_TYPE >::ElementAt(), and m_array.

Here is the call graph for this function:

Vector VectorCollection::operator[] int  index  )  const [inline]
 

Definition at line 299 of file IEModel.h.

References HashArray< TYPE, ARG_TYPE >::GetAt(), and m_array.

Here is the call graph for this function:

void VectorCollection::SetSize int  newsize,
int  growby = -1
[inline]
 

Definition at line 31 of file VectorCo.h.

References m_array, and HashArray< TYPE, ARG_TYPE >::SetSize().

Here is the call graph for this function:

void VectorCollection::SetSize int  newsize,
int  growby = -1
[inline]
 

Definition at line 291 of file IEModel.h.

References m_array, and HashArray< TYPE, ARG_TYPE >::SetSize().

Referenced by IEPolyModel::SetNumNormals(), and IEPolyModel::SetNumVerts().

Here is the call graph for this function:

void VectorCollection::Shrink  )  [inline]
 

Definition at line 37 of file VectorCo.h.

References HashArray< TYPE, ARG_TYPE >::FreeExtra(), and m_array.

Here is the call graph for this function:

void VectorCollection::Shrink  )  [inline]
 

Definition at line 302 of file IEModel.h.

References HashArray< TYPE, ARG_TYPE >::FreeExtra(), and m_array.

Here is the call graph for this function:


Member Data Documentation

CArray<Vector, Vector &> VectorCollection::m_array
 

Definition at line 21 of file VectorCo.h.

HashArray<Vector, Vector &> VectorCollection::m_array
 

Definition at line 279 of file IEModel.h.

Referenced by Add(), ElementAt(), Empty(), GetArray(), GetAt(), GetSize(), LookUp(), LookUpHashKey(), operator[](), SetSize(), Shrink(), and VectorCollection().

CArray<HashNode *, HashNode *> VectorCollection::m_hasharray [private]
 

Definition at line 16 of file VectorCo.h.

HashArray<HashNode *, HashNode *> VectorCollection::m_hasharray [private]
 

Definition at line 277 of file IEModel.h.

Referenced by Add(), Empty(), LookUp(), LookUpHashKey(), and VectorCollection().


The documentation for this class was generated from the following files:
This A:M SDK v12.0 documentation is maintained by Hash Inc. Please address any comments concerning this documentation to AMReports. If you have any information, knowledge, or documentation to share with the A:M developer community, please post them on the Hash SDK forum.

Generated on Thu Oct 27 11:47:06 2005 with doxygen 1.4.5 written by Dimitri van Heesch, © 1997-2001