Darwin  1.10(beta)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
Public Member Functions | Protected Attributes | List of all members
drwnNNGraphNodeAnnotation< T > Class Template Reference

Templated utility class for holding annotations for every node in a graph. See learning code for example use. More...

Public Member Functions

 drwnNNGraphNodeAnnotation ()
 default constructor (use initialize after constructing)
 
 drwnNNGraphNodeAnnotation (const drwnNNGraph &graph, const T &initValue)
 construct for a given graph
 
 ~drwnNNGraphNodeAnnotation ()
 destructor
 
void initialize (const drwnNNGraph &graph, const T &initValue)
 Initialize annotation for a given graph. Sets all tags to initValue.
 
void reset (const T &initValue)
 reset all tags to initValue.
 
const vector< T > & operator[] (unsigned imgIndx) const
 returns const reference to annotations for an entire image
 
vector< T > & operator[] (unsigned imgIndx)
 returns reference an annotation for an entire image
 
const T & operator[] (const drwnNNGraphNodeIndex &indx) const
 returns const reference to an annotation for an individual node
 
T & operator[] (const drwnNNGraphNodeIndex &indx)
 returns reference an annotation for an individual node
 

Protected Attributes

vector< vector< T > > _tags
 

Detailed Description

template<typename T>
class drwnNNGraphNodeAnnotation< T >

Templated utility class for holding annotations for every node in a graph. See learning code for example use.


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