Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members

colvar.C File Reference

#include "colvarmodule.h"
#include "colvarvalue.h"
#include "colvarparse.h"
#include "colvar.h"
#include "colvarcomp.h"

Go to the source code of this file.

Defines

#define initialize_forcepars(def_desc, def_config_key, def_class_name)

Functions

void history_add_value (size_t const &history_length, std::list< colvarvalue > &history, colvarvalue const &new_value)
void history_incr (std::list< std::list< colvarvalue > > &history, std::list< std::list< colvarvalue > >::iterator &history_p)


Define Documentation

#define initialize_forcepars def_desc,
def_config_key,
def_class_name   ) 
 

Referenced by colvar::colvar().


Function Documentation

void history_add_value size_t const &  history_length,
std::list< colvarvalue > &  history,
colvarvalue const &  new_value
[inline]
 

Definition at line 1159 of file colvar.C.

Referenced by colvar::calc_acf(), and colvar::calc_runave().

01162 {
01163   history.push_front (new_value);
01164   if (history.size() > history_length)
01165     history.pop_back();
01166 }

void history_incr std::list< std::list< colvarvalue > > &  history,
std::list< std::list< colvarvalue > >::iterator &  history_p
[inline]
 

Definition at line 1168 of file colvar.C.

Referenced by colvar::calc_acf().

01170 {
01171   if ((++history_p) == history.end()) 
01172     history_p = history.begin();
01173 }


Generated on Mon Nov 23 04:59:26 2009 for NAMD by  doxygen 1.3.9.1