Lodestar
An integrated real-time control package in C++
ls::blocks::aux::DirectedGraph Class Reference

Public Member Functions

 DirectedGraph (int n)
 
 DirectedGraph (const Eigen::SparseMatrix< int > &adj)
 
int & get (int src, int dst)
 
int get (int src, int dst) const
 
bool hasConnection (int src, int dst) const
 
int getSize () const
 
bool resize (int n)
 
void connect (int src, int dst, int conn=1)
 
const Eigen::SparseMatrix< int > & adj () const
 
template<int N>
ls::blocks::aux::DirectedGraph fromBlocks (const std::array< BlockProto *, N > &blocks)
 
template<int N>
ls::blocks::aux::DirectedGraph fromBlocks (const std::array< const BlockProto *, N > &blocks)
 

Static Public Member Functions

static DirectedGraph fromBlocks (const ::std::vector< BlockProto * > &blocks)
 
static DirectedGraph fromBlocks (const ::std::vector< const BlockProto * > &blocks)
 
template<int N>
static DirectedGraph fromBlocks (const ::std::array< BlockProto *, N > &blocks)
 
template<int N>
static DirectedGraph fromBlocks (const ::std::array< const BlockProto *, N > &blocks)
 

Protected Attributes

Eigen::SparseMatrix< int > adj_
 
int size_
 

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