component.h 898 B

12345678910111213141516171819202122232425262728293031323334353637
  1. /******************************************************************************
  2. *
  3. * Copyright (C) 2020 by
  4. * The Salk Institute for Biological Studies
  5. *
  6. * Use of this source code is governed by an MIT-style
  7. * license that can be found in the LICENSE file or at
  8. * https://opensource.org/licenses/MIT.
  9. *
  10. ******************************************************************************/
  11. #ifndef API_COMPONENT_INSTANCE_H
  12. #define API_COMPONENT_INSTANCE_H
  13. #include "generated/gen_component.h"
  14. #include "api/api_common.h"
  15. namespace MCell {
  16. namespace API {
  17. class Component: public GenComponent {
  18. public:
  19. COMPONENT_CTOR()
  20. // default __eq__ operator is sufficient
  21. // needed when defining a set of ComponentInstances
  22. bool operator < (const Component& other) const;
  23. std::string to_bngl_str() const override;
  24. };
  25. } // namespace API
  26. } // namespace MCell
  27. #endif // API_COMPONENT_INSTANCE_H