| 
    Open CASCADE Technology 7.8.2.dev
    
   | 
 
#include <IntPolyh_Array.hxx>
Public Types | |
| typedef NCollection_Vector< Type > | IntPolyh_VectorOfType | 
Public Member Functions | |
| IntPolyh_Array (const Standard_Integer aIncrement=256) | |
| IntPolyh_Array (const Standard_Integer aN, const Standard_Integer aIncrement=256) | |
| IntPolyh_Array & | operator= (const IntPolyh_Array &aOther) | 
| IntPolyh_Array & | Copy (const IntPolyh_Array &aOther) | 
| void | Init (const Standard_Integer aN) | 
| void | IncrementNbItems () | 
| Standard_Integer | GetN () const | 
| Standard_Integer | NbItems () const | 
| void | SetNbItems (const Standard_Integer aNb) | 
| const Type & | Value (const Standard_Integer aIndex) const | 
| const Type & | operator[] (const Standard_Integer aIndex) const | 
| Type & | ChangeValue (const Standard_Integer aIndex) | 
| Type & | operator[] (const Standard_Integer aIndex) | 
| void | Dump () const | 
Protected Attributes | |
| Standard_Integer | myNbAllocated | 
| Standard_Integer | myNbItems | 
| Standard_Integer | myIncrement | 
| IntPolyh_VectorOfType | myVectorOfType | 
Class IntPolyh_Array (dynamic array of objects)
The Array can be created: 3.1. with initial length Nb=0. In this case Array should be initiated by invoke the method Init(Nb). 3.2. with initial length Nb>0. In this case Array is initiated automatically.
The memory is allocated to store myNbAllocated oblects.
| typedef NCollection_Vector<Type> IntPolyh_Array< Type >::IntPolyh_VectorOfType | 
      
  | 
  inline | 
Constructor.
| aIncrement | size of memory (in terms of Items) to expand the array | 
      
  | 
  inline | 
Constructor.
| aN | size of memory (in terms of Items) to allocate | 
| aIncrement | size of memory (in terms of Items) to expand the array | 
      
  | 
  inline | 
query the value
| aIndex | index | 
      
  | 
  inline | 
Copy
| aOther | - the array to copy from | 
      
  | 
  inline | 
dump the contents
      
  | 
  inline | 
GetN - returns the number of 'allocated' items 
 
      
  | 
  inline | 
IncrementNbItems - increment the number of stored items
      
  | 
  inline | 
Init - allocate memory for <aN> items 
 
| aN | - the number of items to allocate the memory | 
      
  | 
  inline | 
NbItems - returns the number of stored items 
 
      
  | 
  inline | 
Assignment operator
| aOther | - the array to copy from | 
      
  | 
  inline | 
query the value
| aIndex | index | 
      
  | 
  inline | 
query the const value
| aIndex | index | 
      
  | 
  inline | 
set the number of stored items 
 
| aNb | the number of stored items | 
      
  | 
  inline | 
query the const value
| aIndex | index | 
      
  | 
  protected | 
      
  | 
  protected | 
      
  | 
  protected | 
      
  | 
  protected |