IMP
2.1.1
The Integrative Modeling Platform
|
A line segment templated on the dimension. More...
#include <IMP/example/ExampleTemplateClass.h>
Public Member Functions | |
ExampleTemplateClassD (const IMP::algebra::VectorD< D > &a, const IMP::algebra::VectorD< D > &b) | |
const IMP::algebra::VectorD< D > & | get_point (unsigned int i) const |
Get one of the endpoints. | |
void | show (std::ostream &out=std::cout) const |
Like the underlying algebra::VectorD data, is not initialized when the default constructor is used. Since it is a small class, it is designed to be allocated on the stack and to be passed by value (or const &).
The class should be named SegmentD, but it is an demostration.
The source code is as follows:
Definition at line 31 of file ExampleTemplateClass.h.
IMP::example::ExampleTemplateClassD< D >::ExampleTemplateClassD | ( | const IMP::algebra::VectorD< D > & | a, |
const IMP::algebra::VectorD< D > & | b | ||
) |
Since it is a simple object, there is no reason to provide methods to change the data.
Definition at line 39 of file ExampleTemplateClass.h.