PSCF v1.1
|
Descriptor for a monomer or particle type. More...
#include <Monomer.h>
Public Member Functions | |
Monomer () | |
Constructor. More... | |
void | setId (int id) |
Set the integer index for this monomer type. More... | |
int | id () const |
Unique integer index for monomer type. More... | |
double | kuhn () const |
Statistical segment length (random walk step size). More... | |
void | setKuhn (double kuhn) |
Set statistical segment length. More... | |
template<class Archive > | |
void | serialize (Archive ar, const unsigned int version) |
Serialize to or from an archive. More... | |
Friends | |
std::istream & | operator>> (std::istream &in, Monomer &monomer) |
istream extractor for a Monomer. More... | |
std::ostream & | operator<< (std::ostream &out, const Monomer &monomer) |
ostream inserter for a Monomer. More... | |
Descriptor for a monomer or particle type.
Iostream extractor (>>) and inserter (<<) operators are defined for a Monomer, allowing the description of a monomer to be read from or written to file like a primitive variable. The text representation contains only the value of the kuhn (statistical segment) length, as described here.
Data for all monomers in a system is normally read from a parameter file into an array-valued parameter named "monomers".
Pscf::Monomer::Monomer | ( | ) |
Constructor.
Definition at line 13 of file Monomer.cpp.
void Pscf::Monomer::setId | ( | int | id | ) |
Set the integer index for this monomer type.
id | new value for index |
Definition at line 18 of file Monomer.cpp.
References id().
|
inline |
|
inline |
|
inline |
Set statistical segment length.
Definition at line 126 of file Monomer.h.
References kuhn().
Referenced by Pscf::Fd1d::Mixture::setKuhn().
void Pscf::Monomer::serialize | ( | Archive | ar, |
const unsigned int | version | ||
) |
|
friend |
istream extractor for a Monomer.
in | input stream |
monomer | Monomer to be read from stream |
Definition at line 24 of file Monomer.cpp.
|
friend |
ostream inserter for a Monomer.
out | output stream |
monomer | Monomer to be written to stream |
Definition at line 34 of file Monomer.cpp.