concepts::Index Struct Reference

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

#include <meshImport3D.hh>

Public Member Functions

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

Public Attributes

Array< uint > n_
 Stores the data. More...
 

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 23 of file meshImport3D.hh.

Constructor & Destructor Documentation

◆ Index() [1/5]

concepts::Index::Index ( const uint  n0)

◆ Index() [2/5]

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

◆ Index() [3/5]

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

Constructor for use in a triangle.

◆ Index() [4/5]

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

Constructor for use in a quad.

◆ Index() [5/5]

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

Copy constructor.

Definition at line 42 of file meshImport3D.hh.

Member Function Documentation

◆ operator<()

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

< operator for

◆ operator==()

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

== operator

◆ operator[]() [1/2]

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

Returns the ith entry of n_.

Definition at line 48 of file meshImport3D.hh.

◆ operator[]() [2/2]

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

Returns the ith entry of n_.

Definition at line 46 of file meshImport3D.hh.

◆ size()

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

Returns number of entries in n_.

Definition at line 44 of file meshImport3D.hh.

◆ sort_()

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

◆ n_

Array<uint> concepts::Index::n_

Stores the data.

Definition at line 25 of file meshImport3D.hh.


The documentation for this struct was generated from the following file:
Page URL: http://wiki.math.ethz.ch/bin/view/Concepts/WebHome
21 August 2020
© 2020 Eidgenössische Technische Hochschule Zürich