hpp::core::PathVector Class Reference

Concatenation of several paths. More...

#include <hpp/core/path-vector.hh>

Inheritance diagram for hpp::core::PathVector:
Collaboration diagram for hpp::core::PathVector:

Public Types

typedef Path parent_t
 

Public Member Functions

std::size_t numberPaths () const
 Get the number of sub paths. More...
 
const PathPtr_tpathAtRank (std::size_t rank) const
 Get a path in the vector. More...
 
std::size_t rankAtParam (const value_type &param, value_type &localParam) const
 Get rank of direct path in vector at param. More...
 
void appendPath (const PathPtr_t &path)
 Append a path at the end of the vector. More...
 
void concatenate (const PathVector &path)
 Concatenate two vectors of path. More...
 
virtual PathPtr_t extract (const interval_t &subInterval) const
 Extraction of a sub-path. More...
 
virtual Configuration_t initial () const
 Get the initial configuration. More...
 
virtual Configuration_t end () const
 Get the final configuration. More...
 
- Public Member Functions inherited from hpp::core::Path
Configuration_t operator() (const value_type &t) const throw ()
 
Configuration_t operator() (const value_type &t, bool &success) const throw ()
 
bool operator() (ConfigurationOut_t result, const value_type &t) const throw ()
 
size_type outputSize () const
 Get size of configuration space. More...
 
size_type outputDerivativeSize () const
 Get size of velocity. More...
 
const interval_ttimeRange () const
 Get interval of definition. More...
 
value_type length () const
 Get length of definition interval. More...
 
virtual ~Path () throw ()
 Destructor. More...
 
template<class T >
boost::shared_ptr< T > as (void)
 Static cast into a derived type. More...
 
template<class T >
boost::shared_ptr< const T > as (void) const
 Static cast into a derived type. More...
 
virtual PathPtr_t reverse () const
 Reversion of a path. More...
 
const ConstraintSetPtr_tconstraints () const
 Get constraints the path is subject to. More...
 
void constraints (const ConstraintSetPtr_t &constraints)
 Set constraints the path is subject to. More...
 

Protected Member Functions

virtual std::ostream & print (std::ostream &os) const
 Print path in a stream. More...
 
 PathVector (std::size_t outputSize, std::size_t outputDerivativeSize)
 Constructor. More...
 
 PathVector (const PathVector &path)
 Copy constructor. More...
 
void init (PathVectorPtr_t self)
 
virtual bool impl_compute (ConfigurationOut_t result, value_type t) const
 Function evaluation. More...
 
- Protected Member Functions inherited from hpp::core::Path
 Path (const interval_t &interval, size_type outputSize, size_type outputDerivativeSize)
 Constructor. More...
 
 Path (const interval_t &interval, size_type outputSize, size_type outputDerivativeSize, const ConstraintSetPtr_t &constraints)
 Constructor. More...
 
 Path (const Path &path)
 Copy constructor. More...
 
void init (const PathPtr_t &self)
 Store weak pointer to itself. More...
 

Construction, destruction, copy

static PathVectorPtr_t create (size_type outputSize, size_type outputDerivativeSize)
 Create instance and return shared pointer. More...
 
static PathVectorPtr_t createCopy (const PathVector &original)
 Create instance and return shared pointer. More...
 
virtual PathPtr_t copy () const
 Return a shared pointer to a copy of this. More...
 
virtual ~PathVector () throw ()
 Destructor. More...
 

Additional Inherited Members

- Protected Attributes inherited from hpp::core::Path
interval_t timeRange_
 Interval of definition. More...
 

Detailed Description

Concatenation of several paths.

Member Typedef Documentation

◆ parent_t

Constructor & Destructor Documentation

◆ ~PathVector()

virtual hpp::core::PathVector::~PathVector ( )
throw (
)
inlinevirtual

Destructor.

◆ PathVector() [1/2]

hpp::core::PathVector::PathVector ( std::size_t  outputSize,
std::size_t  outputDerivativeSize 
)
inlineprotected

Constructor.

◆ PathVector() [2/2]

hpp::core::PathVector::PathVector ( const PathVector path)
inlineprotected

Copy constructor.

References hpp::core::Path::timeRange_.

Member Function Documentation

◆ appendPath()

void hpp::core::PathVector::appendPath ( const PathPtr_t path)

Append a path at the end of the vector.

◆ concatenate()

void hpp::core::PathVector::concatenate ( const PathVector path)

Concatenate two vectors of path.

◆ copy()

virtual PathPtr_t hpp::core::PathVector::copy ( ) const
inlinevirtual

Return a shared pointer to a copy of this.

Implements hpp::core::Path.

◆ create()

static PathVectorPtr_t hpp::core::PathVector::create ( size_type  outputSize,
size_type  outputDerivativeSize 
)
inlinestatic

Create instance and return shared pointer.

References init().

◆ createCopy()

static PathVectorPtr_t hpp::core::PathVector::createCopy ( const PathVector original)
inlinestatic

Create instance and return shared pointer.

References init().

◆ end()

virtual Configuration_t hpp::core::PathVector::end ( ) const
inlinevirtual

Get the final configuration.

Implements hpp::core::Path.

◆ extract()

virtual PathPtr_t hpp::core::PathVector::extract ( const interval_t subInterval) const
virtual

Extraction of a sub-path.

Parameters
subIntervalinterval of definition of the extract path

Reimplemented from hpp::core::Path.

◆ impl_compute()

virtual bool hpp::core::PathVector::impl_compute ( ConfigurationOut_t  configuration,
value_type  t 
) const
protectedvirtual

Function evaluation.

Returns
true if everything went good.

Implements hpp::core::Path.

◆ init()

void hpp::core::PathVector::init ( PathVectorPtr_t  self)
inlineprotected

Referenced by create(), and createCopy().

◆ initial()

virtual Configuration_t hpp::core::PathVector::initial ( ) const
inlinevirtual

Get the initial configuration.

Implements hpp::core::Path.

◆ numberPaths()

std::size_t hpp::core::PathVector::numberPaths ( ) const
inline

Get the number of sub paths.

◆ pathAtRank()

const PathPtr_t& hpp::core::PathVector::pathAtRank ( std::size_t  rank) const
inline

Get a path in the vector.

◆ print()

virtual std::ostream& hpp::core::PathVector::print ( std::ostream &  os) const
inlineprotectedvirtual

Print path in a stream.

Implements hpp::core::Path.

◆ rankAtParam()

std::size_t hpp::core::PathVector::rankAtParam ( const value_type param,
value_type localParam 
) const

Get rank of direct path in vector at param.

Parameters
paramparameter in interval of definition,
Return values
localParamparameter on sub-path
Returns
rank of direct path in vector