Public Types | Public Member Functions | Private Types | Private Attributes
Energy< captype, tcaptype, flowtype > Class Template Reference

#include <energy.h>

Inheritance diagram for Energy< captype, tcaptype, flowtype >:
Inheritance graph
[legend]

List of all members.

Public Types

typedef flowtype TotalValue
typedef captype Value
typedef GraphT::node_id Var

Public Member Functions

void add_constant (Value E)
void add_term1 (Var x, Value E0, Value E1)
void add_term2 (Var x, Var y, Value E00, Value E01, Value E10, Value E11)
void add_term3 (Var x, Var y, Var z, Value E000, Value E001, Value E010, Value E011, Value E100, Value E101, Value E110, Value E111)
Var add_variable (int num=1)
 Energy (int var_num_max, int edge_num_max, void(*err_function)(char *)=NULL)
int get_var (Var x)
TotalValue minimize ()
 ~Energy ()

Private Types

typedef Graph< captype,
tcaptype, flowtype > 
GraphT

Private Attributes

TotalValue Econst
void(* error_function )(char *)

Detailed Description

template<typename captype, typename tcaptype, typename flowtype>
class Energy< captype, tcaptype, flowtype >

Definition at line 79 of file energy.h.


Member Typedef Documentation

template<typename captype , typename tcaptype , typename flowtype >
typedef Graph<captype,tcaptype,flowtype> Energy< captype, tcaptype, flowtype >::GraphT [private]

Definition at line 81 of file energy.h.

template<typename captype , typename tcaptype , typename flowtype >
typedef flowtype Energy< captype, tcaptype, flowtype >::TotalValue

Definition at line 91 of file energy.h.

template<typename captype , typename tcaptype , typename flowtype >
typedef captype Energy< captype, tcaptype, flowtype >::Value

Definition at line 90 of file energy.h.

template<typename captype , typename tcaptype , typename flowtype >
typedef GraphT::node_id Energy< captype, tcaptype, flowtype >::Var

Definition at line 83 of file energy.h.


Constructor & Destructor Documentation

template<typename captype , typename tcaptype , typename flowtype >
Energy< captype, tcaptype, flowtype >::Energy ( int  var_num_max,
int  edge_num_max,
void(*)(char *)  err_function = NULL 
) [inline]

Definition at line 187 of file energy.h.

template<typename captype , typename tcaptype , typename flowtype >
Energy< captype, tcaptype, flowtype >::~Energy ( ) [inline]

Definition at line 194 of file energy.h.


Member Function Documentation

template<typename captype , typename tcaptype , typename flowtype >
void Energy< captype, tcaptype, flowtype >::add_constant ( Value  E) [inline]

Definition at line 201 of file energy.h.

template<typename captype , typename tcaptype , typename flowtype >
void Energy< captype, tcaptype, flowtype >::add_term1 ( Var  x,
Value  E0,
Value  E1 
) [inline]

Definition at line 204 of file energy.h.

template<typename captype , typename tcaptype , typename flowtype >
void Energy< captype, tcaptype, flowtype >::add_term2 ( Var  x,
Var  y,
Value  E00,
Value  E01,
Value  E10,
Value  E11 
) [inline]

Definition at line 211 of file energy.h.

template<typename captype , typename tcaptype , typename flowtype >
void Energy< captype, tcaptype, flowtype >::add_term3 ( Var  x,
Var  y,
Var  z,
Value  E000,
Value  E001,
Value  E010,
Value  E011,
Value  E100,
Value  E101,
Value  E110,
Value  E111 
) [inline]

Definition at line 256 of file energy.h.

template<typename captype , typename tcaptype , typename flowtype >
Energy< captype, tcaptype, flowtype >::Var Energy< captype, tcaptype, flowtype >::add_variable ( int  num = 1) [inline]

Definition at line 197 of file energy.h.

template<typename captype , typename tcaptype , typename flowtype >
int Energy< captype, tcaptype, flowtype >::get_var ( Var  x) [inline]

Definition at line 328 of file energy.h.

template<typename captype , typename tcaptype , typename flowtype >
Energy< captype, tcaptype, flowtype >::TotalValue Energy< captype, tcaptype, flowtype >::minimize ( ) [inline]

Definition at line 324 of file energy.h.


Member Data Documentation

template<typename captype , typename tcaptype , typename flowtype >
TotalValue Energy< captype, tcaptype, flowtype >::Econst [private]

Definition at line 162 of file energy.h.

template<typename captype , typename tcaptype , typename flowtype >
void(* Energy< captype, tcaptype, flowtype >::error_function)(char *) [private]

Reimplemented from Graph< captype, tcaptype, flowtype >.

Definition at line 163 of file energy.h.


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


tabletop_pushing
Author(s): Tucker Hermans
autogenerated on Wed Nov 27 2013 11:59:44