| 
    PSCF v1.3.3
    
   | 
 
Descriptor for a monomer type. More...
#include <Monomer.h>
Public Member Functions | |
| Monomer () | |
| Constructor.   | |
| void | setId (int id) | 
| Set the integer index for this monomer type.   | |
| void | setKuhn (double kuhn) | 
| Set statistical segment length.   | |
| int | id () const | 
| Unique integer index for monomer type.   | |
| double | kuhn () const | 
| Statistical segment length (random walk step size).   | |
| template<class Archive> | |
| void | serialize (Archive ar, const unsigned int version) | 
| Serialize to or from an archive.   | |
Friends | |
| std::istream & | operator>> (std::istream &in, Monomer &monomer) | 
| Stream extractor (>>) for a Monomer.   | |
| std::ostream & | operator<< (std::ostream &out, const Monomer &monomer) | 
| Stream inserter (<<) for a Monomer.   | |
Descriptor for a monomer type.
A Monomer has:
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" in which each element is a Monomer object. The id of each Monomer should be set to its element index within this array.
| Pscf::Monomer::Monomer | ( | ) | 
| 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 | 
Set statistical segment length.
| kuhn | value of statistical segment length | 
Definition at line 139 of file Monomer.h.
References kuhn().
Referenced by Pscf::R1d::Mixture::setKuhn().
      
  | 
  inline | 
      
  | 
  inline | 
Statistical segment length (random walk step size).
Definition at line 131 of file Monomer.h.
Referenced by Pscf::Rpc::IntraCorrelation< D >::computeIntraCorrelations(), Pscf::Rpg::IntraCorrelation< D >::computeIntraCorrelations(), and setKuhn().
| void Pscf::Monomer::serialize | ( | Archive | ar, | 
| const unsigned int | version ) | 
      
  | 
  friend | 
Stream extractor (>>) for a Monomer.
The text representation is given by the value of the kuhn data member (i.e., the monomer statistical segment length). The type id is thus not read from a stream, and so must be set explicitly with setId.
| in | input stream | 
| monomer | Monomer to be read from stream | 
Definition at line 24 of file Monomer.cpp.
References Monomer().
      
  | 
  friend | 
Stream inserter (<<) for a Monomer.
| out | output stream | 
| monomer | Monomer to be written to stream | 
Definition at line 34 of file Monomer.cpp.
References Monomer().