MOOSE - Multiscale Object Oriented Simulation Environment
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Triplet< T > Class Template Reference

#include <SparseMatrix.h>

+ Collaboration diagram for Triplet< T >:

Public Member Functions

bool operator< (const Triplet< T > &other) const
 
 Triplet ()
 
 Triplet (T a, unsigned int b, unsigned int c)
 

Static Public Member Functions

static bool cmp (const Triplet< T > &p, const Triplet< T > &q)
 

Public Attributes

a_
 
unsigned int b_
 
unsigned int c_
 

Detailed Description

template<class T>
class Triplet< T >

Definition at line 30 of file SparseMatrix.h.

Constructor & Destructor Documentation

template<class T>
Triplet< T >::Triplet ( )
inline

Definition at line 33 of file SparseMatrix.h.

34  {
35  ;
36  }
template<class T>
Triplet< T >::Triplet ( a,
unsigned int  b,
unsigned int  c 
)
inline

Definition at line 38 of file SparseMatrix.h.

39  : a_( a ), b_( b ), c_( c )
40  {
41  ;
42  }
unsigned int b_
Definition: SparseMatrix.h:57
unsigned int c_
Definition: SparseMatrix.h:58

Member Function Documentation

template<class T>
static bool Triplet< T >::cmp ( const Triplet< T > &  p,
const Triplet< T > &  q 
)
inlinestatic

Definition at line 47 of file SparseMatrix.h.

References Triplet< T >::b_, and Triplet< T >::c_.

48  {
49  if ( p.b_ == q.b_ )
50  return ( p.c_ < q.c_ );
51  else if ( p.b_ < q.b_ )
52  return true;
53  return false;
54  }
unsigned int b_
Definition: SparseMatrix.h:57
unsigned int c_
Definition: SparseMatrix.h:58
template<class T>
bool Triplet< T >::operator< ( const Triplet< T > &  other) const
inline

Definition at line 43 of file SparseMatrix.h.

44  {
45  return ( c_ < other.c_ );
46  }
unsigned int c_
Definition: SparseMatrix.h:58

Member Data Documentation

template<class T>
T Triplet< T >::a_

Definition at line 56 of file SparseMatrix.h.

template<class T>
unsigned int Triplet< T >::b_

Definition at line 57 of file SparseMatrix.h.

Referenced by Triplet< T >::cmp().

template<class T>
unsigned int Triplet< T >::c_

Definition at line 58 of file SparseMatrix.h.

Referenced by Triplet< T >::cmp().


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