Visualization Library 2.0.0-b5

A lightweight C++ OpenGL middleware for 2D/3D graphics

VL     Star     Watch     Fork     Issue

[Download] [Tutorials] [All Classes] [Grouped Classes]
Classes | Public Types | Public Member Functions | Protected Member Functions | Protected Attributes | Friends | List of all members
triangle_stripper::detail::graph_array< nodetype > Class Template Reference

#include <graph_array.h>

Classes

class  arc
 
class  node
 

Public Types

typedef size_t nodeid
 
typedef nodetype value_type
 
typedef std::vector< nodenode_vector
 
typedef node_vector::iterator node_iterator
 
typedef node_vector::const_iterator const_node_iterator
 
typedef node_vector::reverse_iterator node_reverse_iterator
 
typedef node_vector::const_reverse_iterator const_node_reverse_iterator
 
typedef graph_array< nodetype > graph_type
 
typedef std::vector< arcarc_list
 
typedef arc_list::iterator out_arc_iterator
 
typedef arc_list::const_iterator const_out_arc_iterator
 

Public Member Functions

 graph_array ()
 
 graph_array (size_t NbNodes)
 
bool empty () const
 
size_t size () const
 
nodeoperator[] (nodeid i)
 
const nodeoperator[] (nodeid i) const
 
node_iterator begin ()
 
node_iterator end ()
 
const_node_iterator begin () const
 
const_node_iterator end () const
 
node_reverse_iterator rbegin ()
 
node_reverse_iterator rend ()
 
const_node_reverse_iterator rbegin () const
 
const_node_reverse_iterator rend () const
 
out_arc_iterator insert_arc (nodeid Initial, nodeid Terminal)
 
out_arc_iterator insert_arc (node_iterator Initial, node_iterator Terminal)
 
void swap (graph_type &Right)
 

Protected Member Functions

 graph_array (const graph_type &)
 
graph_typeoperator= (const graph_type &)
 

Protected Attributes

node_vector m_Nodes
 
arc_list m_Arcs
 

Friends

void swap (graph_type &Left, graph_type &Right)
 

Detailed Description

template<class nodetype>
class triangle_stripper::detail::graph_array< nodetype >

Definition at line 31 of file graph_array.h.

Member Typedef Documentation

◆ arc_list

template<class nodetype>
typedef std::vector<arc> triangle_stripper::detail::graph_array< nodetype >::arc_list

Definition at line 66 of file graph_array.h.

◆ const_node_iterator

template<class nodetype>
typedef node_vector::const_iterator triangle_stripper::detail::graph_array< nodetype >::const_node_iterator

Definition at line 43 of file graph_array.h.

◆ const_node_reverse_iterator

template<class nodetype>
typedef node_vector::const_reverse_iterator triangle_stripper::detail::graph_array< nodetype >::const_node_reverse_iterator

Definition at line 45 of file graph_array.h.

◆ const_out_arc_iterator

template<class nodetype>
typedef arc_list::const_iterator triangle_stripper::detail::graph_array< nodetype >::const_out_arc_iterator

Definition at line 68 of file graph_array.h.

◆ graph_type

template<class nodetype>
typedef graph_array<nodetype> triangle_stripper::detail::graph_array< nodetype >::graph_type

Definition at line 47 of file graph_array.h.

◆ node_iterator

template<class nodetype>
typedef node_vector::iterator triangle_stripper::detail::graph_array< nodetype >::node_iterator

Definition at line 42 of file graph_array.h.

◆ node_reverse_iterator

template<class nodetype>
typedef node_vector::reverse_iterator triangle_stripper::detail::graph_array< nodetype >::node_reverse_iterator

Definition at line 44 of file graph_array.h.

◆ node_vector

template<class nodetype>
typedef std::vector<node> triangle_stripper::detail::graph_array< nodetype >::node_vector

Definition at line 41 of file graph_array.h.

◆ nodeid

template<class nodetype>
typedef size_t triangle_stripper::detail::graph_array< nodetype >::nodeid

Definition at line 36 of file graph_array.h.

◆ out_arc_iterator

template<class nodetype>
typedef arc_list::iterator triangle_stripper::detail::graph_array< nodetype >::out_arc_iterator

Definition at line 67 of file graph_array.h.

◆ value_type

template<class nodetype>
typedef nodetype triangle_stripper::detail::graph_array< nodetype >::value_type

Definition at line 40 of file graph_array.h.

Constructor & Destructor Documentation

◆ graph_array() [1/3]

template<class N >
triangle_stripper::detail::graph_array< N >::graph_array ( )
inline

Definition at line 291 of file graph_array.h.

◆ graph_array() [2/3]

template<class N >
triangle_stripper::detail::graph_array< N >::graph_array ( size_t  NbNodes)
inlineexplicit

Definition at line 295 of file graph_array.h.

◆ graph_array() [3/3]

template<class nodetype>
triangle_stripper::detail::graph_array< nodetype >::graph_array ( const graph_type )
protected

Member Function Documentation

◆ begin() [1/2]

template<class N >
graph_array< N >::node_iterator triangle_stripper::detail::graph_array< N >::begin ( )
inline

◆ begin() [2/2]

template<class N >
graph_array< N >::const_node_iterator triangle_stripper::detail::graph_array< N >::begin ( ) const
inline

Definition at line 351 of file graph_array.h.

◆ empty()

template<class N >
bool triangle_stripper::detail::graph_array< N >::empty ( ) const
inline

Definition at line 305 of file graph_array.h.

◆ end() [1/2]

template<class N >
graph_array< N >::node_iterator triangle_stripper::detail::graph_array< N >::end ( )
inline

◆ end() [2/2]

template<class N >
graph_array< N >::const_node_iterator triangle_stripper::detail::graph_array< N >::end ( ) const
inline

Definition at line 358 of file graph_array.h.

◆ insert_arc() [1/2]

template<class N >
graph_array< N >::out_arc_iterator triangle_stripper::detail::graph_array< N >::insert_arc ( nodeid  Initial,
nodeid  Terminal 
)
inline

Definition at line 393 of file graph_array.h.

Referenced by triangle_stripper::detail::make_connectivity_graph().

◆ insert_arc() [2/2]

template<class N >
graph_array< N >::out_arc_iterator triangle_stripper::detail::graph_array< N >::insert_arc ( node_iterator  Initial,
node_iterator  Terminal 
)
inline

Definition at line 403 of file graph_array.h.

◆ operator=()

template<class nodetype>
graph_type& triangle_stripper::detail::graph_array< nodetype >::operator= ( const graph_type )
protected

◆ operator[]() [1/2]

template<class N >
graph_array< N >::node & triangle_stripper::detail::graph_array< N >::operator[] ( nodeid  i)
inline

Definition at line 319 of file graph_array.h.

◆ operator[]() [2/2]

template<class N >
const graph_array< N >::node & triangle_stripper::detail::graph_array< N >::operator[] ( nodeid  i) const
inline

Definition at line 328 of file graph_array.h.

◆ rbegin() [1/2]

template<class N >
graph_array< N >::node_reverse_iterator triangle_stripper::detail::graph_array< N >::rbegin ( )
inline

◆ rbegin() [2/2]

template<class N >
graph_array< N >::const_node_reverse_iterator triangle_stripper::detail::graph_array< N >::rbegin ( ) const
inline

Definition at line 379 of file graph_array.h.

◆ rend() [1/2]

template<class N >
graph_array< N >::node_reverse_iterator triangle_stripper::detail::graph_array< N >::rend ( )
inline

◆ rend() [2/2]

template<class N >
graph_array< N >::const_node_reverse_iterator triangle_stripper::detail::graph_array< N >::rend ( ) const
inline

Definition at line 386 of file graph_array.h.

◆ size()

template<class N >
size_t triangle_stripper::detail::graph_array< N >::size ( ) const
inline

◆ swap()

template<class N >
void triangle_stripper::detail::graph_array< N >::swap ( graph_type Right)
inline

Definition at line 432 of file graph_array.h.

Friends And Related Function Documentation

◆ swap

template<class nodetype>
void swap ( graph_type Left,
graph_type Right 
)
friend

Definition at line 135 of file graph_array.h.

Member Data Documentation

◆ m_Arcs

template<class nodetype>
arc_list triangle_stripper::detail::graph_array< nodetype >::m_Arcs
protected

◆ m_Nodes

template<class nodetype>
node_vector triangle_stripper::detail::graph_array< nodetype >::m_Nodes
protected

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