IMP logo
Public Member Functions
IMP::example::ExampleTemplateClassD< D > Class Template Reference

Detailed Description

template<unsigned int D>
class IMP::example::ExampleTemplateClassD< D >

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 following command indicates to doxygen to mark the class as being one whose members are left uninitialized by the default constructor:

The source code is as follows:
\include ExampleTemplateClass.h

List of all members.

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

Constructor & Destructor Documentation

template<unsigned int D>
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.


Member Function Documentation

template<unsigned int D>
const IMP::algebra::VectorD<D>& IMP::example::ExampleTemplateClassD< D >::get_point ( unsigned int  i) const

Get one of the endpoints.


The documentation for this class was generated from the following file:

Generated on Tue May 22 2012 23:33:35 for IMP by doxygen 1.8.1