Class documentation of Concepts

Loading...
Searching...
No Matches
concepts::Index Struct Reference

#include <meshImport3D.hh>

Public Member Functions

void sort_ ()
 
 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.
 
 Index (const uint n0, const uint n1, const uint n2, const uint n3)
 Constructor for use in a quad.
 
 Index (const Index &i)
 Copy constructor.
 
uint size () const
 Returns number of entries in n_.
 
uint operator[] (const uint i) const
 Returns the ith entry of n_.
 
uintoperator[] (const uint i)
 Returns the ith entry of n_.
 
bool operator< (const concepts::Index &y) const
 < operator for
 
bool operator== (const concepts::Index &y) const
 == operator
 

Public Attributes

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

Constructor & Destructor Documentation

◆ Index()

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

Copy constructor.

Definition at line 42 of file meshImport3D.hh.

Member Function Documentation

◆ 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: