8 #include "Configuration.h" 25 , dihedralCapacity_(0)
26 , improperCapacity_(0)
53 read<int>(in,
"atomCapacity", atomCapacity_);
59 readOptional<int>(in,
"bondCapacity", bondCapacity_);
61 if (bondCapacity_ > 0) {
68 readOptional<int>(in,
"angleCapacity", angleCapacity_);
69 if (angleCapacity_ > 0) {
75 dihedralCapacity_ = 0;
76 readOptional<int>(in,
"dihedralCapacity", dihedralCapacity_);
77 if (dihedralCapacity_ > 0) {
78 dihedrals_.
allocate(dihedralCapacity_);
81 improperCapacity_ = 0;
82 readOptional<int>(in,
"improperCapacity", improperCapacity_);
83 if (improperCapacity_ > 0) {
84 impropers_.
allocate(improperCapacity_);
90 readOptional<int>(in,
"nSpecies", nSpecies_);
92 species_.allocate(nSpecies_);
93 for (
int i = 0; i < nSpecies_; ++i) {
96 readDArray<Species>(in,
"species", species_, nSpecies_);
108 if (bondCapacity_ > 0) {
113 if (angleCapacity_ > 0) {
118 if (dihedralCapacity_ > 0) {
121 if (improperCapacity_ > 0) {
void allocate(int capacity)
Allocates the underlying C array.
void clear()
Set logical size to zero.
void setClassName(const char *className)
Set class name string.