base::CompoundState Class Reference

Definition of a compound state. More...

#include <ompl/base/State.h>

Inheritance diagram for base::CompoundState:

List of all members.

Public Member Functions

template<class T >
const T * as (const unsigned int index) const
 Cast a component of this instance to a desired type.
template<class T >
T * as (const unsigned int index)
 Cast a component of this instance to a desired type.
const Stateoperator[] (unsigned int i) const
 Access const element ith component. This does not check whether the index is within bounds.
Stateoperator[] (unsigned int i)
 Access element ith component. This does not check whether the index is within bounds.

Public Attributes

State ** components
 The components that make up a compound state.

Detailed Description

Definition of a compound state.

Definition at line 95 of file State.h.


Member Function Documentation

template<class T >
const T* base::CompoundState::as ( const unsigned int  index) const [inline]

Cast a component of this instance to a desired type.

Make sure the type we are allocating is indeed a state

Definition at line 109 of file State.h.

template<class T >
T* base::CompoundState::as ( const unsigned int  index) [inline]

Cast a component of this instance to a desired type.

Make sure the type we are allocating is indeed a state

Definition at line 119 of file State.h.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines