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"
#include <algorithm>

Go to the source code of this file.

Defines

#define initialize_components(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_components 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 1334 of file colvar.C.

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

01337 {
01338   history.push_front (new_value);
01339   if (history.size() > history_length)
01340     history.pop_back();
01341 }

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

Definition at line 1343 of file colvar.C.

Referenced by colvar::calc_acf().

01345 {
01346   if ((++history_p) == history.end()) 
01347     history_p = history.begin();
01348 }


Generated on Sun Feb 12 04:07:57 2012 for NAMD by  doxygen 1.3.9.1