IMP
2.4.0
The Integrative Modeling Platform
|
A line segment templated on the dimension. More...
#include <IMP/example/ExampleTemplateClass.h>
A line segment templated on the dimension.
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 32 of file 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. More... | |
void | show (std::ostream &out=std::cout) const |
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 40 of file ExampleTemplateClass.h.
const IMP::algebra::VectorD<D>& IMP::example::ExampleTemplateClassD< D >::get_point | ( | unsigned int | i | ) | const |
Get one of the endpoints.
Definition at line 46 of file ExampleTemplateClass.h.