Home | Doxygen Documentation | Tutorials | Developer Tools (restricted)

Public Member Functions | Public Attributes
concepts::Index Struct Reference

Stores a number of indices in a ordered fashion. More...

#include <meshImport3D.hh>

Collaboration diagram for concepts::Index:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 Index (const uint n0)
 Index (const uint n0, const uint n1, const uint n2)
 Constructor for use in a triangle.
 Index (const uint n0, const uint n1, const uint n2, const uint n3)
 Constructor for use in a quad.
 Index (const uint n0, const uint n1)
 Index (const Index &i)
 Copy constructor.
bool operator< (const concepts::Index &y) const
 < operator for
bool operator== (const concepts::Index &y) const
 == operator
uint operator[] (const uint i) const
 Returns the ith entry of n_.
uint & operator[] (const uint i)
 Returns the ith entry of n_.
uint size () const
 Returns number of entries in n_.
void sort_ ()
 Sorts the data somewhat.

Public Attributes

Array< uint > n_
 Stores the data.

Detailed Description

Stores a number of indices in a ordered fashion.

The first index is the smallest, the rest of the indices keep their siblings.

Author:
Philipp Frauenfelder, 2002
See also:
Index::sort_

Definition at line 36 of file meshImport3D.hh.


Constructor & Destructor Documentation

concepts::Index::Index ( const uint  n0)
concepts::Index::Index ( const uint  n0,
const uint  n1 
)
concepts::Index::Index ( const uint  n0,
const uint  n1,
const uint  n2 
)

Constructor for use in a triangle.

concepts::Index::Index ( const uint  n0,
const uint  n1,
const uint  n2,
const uint  n3 
)

Constructor for use in a quad.

concepts::Index::Index ( const Index i) [inline]

Copy constructor.

Definition at line 55 of file meshImport3D.hh.


Member Function Documentation

bool concepts::Index::operator< ( const concepts::Index y) const

< operator for

bool concepts::Index::operator== ( const concepts::Index y) const

== operator

uint& concepts::Index::operator[] ( const uint  i) [inline]

Returns the ith entry of n_.

Definition at line 61 of file meshImport3D.hh.

uint concepts::Index::operator[] ( const uint  i) const [inline]

Returns the ith entry of n_.

Definition at line 59 of file meshImport3D.hh.

uint concepts::Index::size ( ) const [inline]

Returns number of entries in n_.

Definition at line 57 of file meshImport3D.hh.

Here is the call graph for this function:

void concepts::Index::sort_ ( )

Sorts the data somewhat.

This routine is called by the constructor. The smallest entry in the data given to the constructor is stored as the first entry of n_. The rest of the data is order in the following way: the entry on the left or on the right (depending on which is the smaller) fixes the orientation in which the rest of the entries are stored into n_.


Member Data Documentation

Stores the data.

Definition at line 38 of file meshImport3D.hh.


The documentation for this struct was generated from the following file:

Home | Doxygen Documentation | Tutorials | Developer Tools (restricted)