8#ifndef IMPEXAMPLE_EXAMPLE_OBJECT_H
9#define IMPEXAMPLE_EXAMPLE_OBJECT_H
11#include <IMP/example/example_config.h>
18#include <cereal/access.hpp>
19#include <cereal/types/vector.hpp>
21IMPEXAMPLE_BEGIN_NAMESPACE
31class IMPEXAMPLEEXPORT ExampleObject :
public Object {
35 ExampleObject(
const Floats &data);
38 ExampleObject() :
Object(
"") {}
40 double get_data(
unsigned int i)
const {
54 friend class cereal::access;
55 template<
class Archive>
void serialize(Archive &ar) {
58 ar(cereal::base_class<Object>(
this), data_);
65IMPEXAMPLE_END_NAMESPACE
A shared base class to help in debugging and things.
A nullptr-initialized pointer to an IMP Object.
#define IMP_USAGE_CHECK(expr, message)
A runtime test for incorrect usage of a class or method.
Object(std::string name)
Construct an object with the given name.
A more IMP-like version of the std::vector.
IMP::Vector< Float > Floats
Standard way to pass a bunch of Float values.
Helper macros for implementing IMP Objects.
#define IMP_OBJECT_METHODS(Name)
Define the basic things needed by any Object.