Robotsystem from Robot Group Leipzig: Vector Class Template Reference

- Main Page
- Modules
- Namespaces
- Classes
- Files
- Directories
- Examples

- Class List
- Alphabetical List
- Class Hierarchy
- Class Members

# Vector Class Template Reference

`#include <vector.h>`

List of all members.

## Detailed Description

### template<typename T>
class lpzrobots::Vector< T >

Definition at line 43 of file vector.h.

## Public Member Functions
| Vector (unsigned dimension=0)
void | resize (unsigned new_dimension)
unsigned | get_dimension () const
T & | operator() (unsigned i)
const T & | operator() (unsigned i) const
Vector< T > | operator- (const Vector< T > &r_rhs) const
T | length () const
T | square_length () const
## Protected Attributes
std::vector< T > | data

## Constructor & Destructor Documentation

Vector | ( | unsigned | dimension = `0` | ) |

| Definition at line 71 of file vector.h.

## Member Function Documentation

unsigned get_dimension | ( |  | ) | const

| Definition at line 84 of file vector.h.

T length | ( |  | ) | const

| Definition at line 150 of file vector.h.

const T & operator() | ( | unsigned | i | ) | const

| Definition at line 157 of file vector.h.

T & operator() | ( | unsigned | i | ) |

| Definition at line 91 of file vector.h.

Vector< T > operator- | ( | const Vector< T > & | r_rhs | ) | const

| Definition at line 102 of file vector.h.

void resize | ( | unsigned | new_dimension | ) |

| Definition at line 77 of file vector.h.

T square_length | ( |  | ) | const

| Definition at line 137 of file vector.h.

## Member Data Documentation

std::vector<T> data`[protected]`

| Definition at line 48 of file vector.h.