ompl::base::CompoundState Class Reference

Definition of a compound state. More...

#include <ompl/base/State.h>

Inheritance diagram for ompl::base::CompoundState:

Public Member Functions

template<class T >
const T * as (const unsigned int index) const
 Cast a component of this instance to a desired type. More...
 
template<class T >
T * as (const unsigned int index)
 Cast a component of this instance to a desired type. More...
 
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 Member Functions inherited from ompl::base::State
template<class T >
const T * as () const
 Cast this instance to a desired type. More...
 
template<class T >
T * as ()
 Cast this instance to a desired type. More...
 

Public Attributes

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

Detailed Description

Definition of a compound state.

Definition at line 86 of file State.h.

Member Function Documentation

◆ as() [1/2]

template<class T >
const T* ompl::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 97 of file State.h.

◆ as() [2/2]

template<class T >
T* ompl::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 107 of file State.h.


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