MOOSE - Multiscale Object Oriented Simulation Environment
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
FuncOrder.h
Go to the documentation of this file.
1 /**********************************************************************
2 ** This program is part of 'MOOSE', the
3 ** Messaging Object Oriented Simulation Environment.
4 ** Copyright (C) 2003-2013 Upinder S. Bhalla. and NCBS
5 ** It is made available under the terms of the
6 ** GNU Lesser General Public License version 2.1
7 ** See the file COPYING.LIB for the full notice.
8 **********************************************************************/
14 class FuncOrder
15 {
16  public:
18  : func_( 0 ), index_( 0 )
19  {;}
20 
21  const OpFunc* func() const {
22  return func_;
23  }
24  unsigned int index() const {
25  return index_;
26  }
27 
28  void set( const OpFunc* func, unsigned int index ) {
29  func_ = func;
30  index_ = index;
31  }
32 
33  bool operator<( const FuncOrder& other ) const
34  {
35  return func_ < other.func_;
36  }
37  private:
38  const OpFunc* func_;
39  unsigned int index_;
40 };
FuncOrder()
Definition: FuncOrder.h:17
void set(const OpFunc *func, unsigned int index)
Definition: FuncOrder.h:28
const OpFunc * func_
Definition: FuncOrder.h:38
bool operator<(const FuncOrder &other) const
Definition: FuncOrder.h:33
unsigned int index() const
Definition: FuncOrder.h:24
const OpFunc * func() const
Definition: FuncOrder.h:21
unsigned int index_
Definition: FuncOrder.h:39