1#ifndef PSCF_HOMOGENEOUS_CLUMP_H
2#define PSCF_HOMOGENEOUS_CLUMP_H
11#include <util/containers/Pair.h>
16namespace Homogeneous {
50 template <
class Archive>
51 void serialize(Archive& ar,
unsigned int versionId);
128 {
return monomerId_; }
139 template <
class Archive>
Collection of all monomers of a single type in a molecule.
friend std::ostream & operator<<(std::ostream &out, const Clump &block)
ostream inserter for a Clump.
void setSize(double size)
Set the size of this block.
int monomerId() const
Get the monomer type id.
double size() const
Get the size (number of monomers) in this block.
friend std::istream & operator>>(std::istream &in, Clump &block)
istream extractor for a Clump.
void serialize(Archive &ar, unsigned int versionId)
Serialize to/from archive.
void setMonomerId(int monomerId)
Set the monomer id.
C++ namespace for polymer self-consistent field theory (PSCF).
Utility classes for scientific computation.
std::istream & operator>>(std::istream &in, Pair< Data > &pair)
Input a Pair from an istream.
std::ostream & operator<<(std::ostream &out, const Pair< Data > &pair)
Output a Pair to an ostream, without line breaks.