File: pdbGroupField.h

/* DUCTAPE Version 2.0                                                   */
/* Copyright (C) 2001                                                    */
/* Forschungszentrum Juelich, Zentralinstitut fuer Angewandte Mathematik */

#ifndef __PDB_GROUP_FIELD_H__
#define __PDB_GROUP_FIELD_H__

#ifdef _OLD_HEADER_
# include <vector.h>
# include <vector>
  using std::vector;
#include "pdbTemplateItem.h"

class pdbGroupField : public pdbTemplateItem {
  pdbGroupField(const string& name);

  virtual const char *desc() const;
  virtual const char *attrPrefix() const;
  virtual ostream& print(ostream& ostr) const;

  mem_t kind() const;
  const pdbType *type() const;
  bool isBitField() const;
  bool isMutable() const;
  bool isStaticConst() const;

  void kind(mem_t kd);
  void type(const pdbType *t);
  void isBitField(bool b);
  void isMutable(bool m);
  void isStaticConst(bool c);

  mem_t          k;
  const pdbType *typ;
  bool           isBit;
  bool           isMut;
  bool           isSC;

#ifndef NO_INLINE
#  include "pdbGroupField.inl"

Back to Index
Key to Colors and Styles