SiGraph: sulcal graphs


sigraph::Learner Class Referenceabstract

Séquence d'apprentissage, classe de base (abstraite). More...

#include <si/learner/learner.h>

Inheritance diagram for sigraph::Learner:
Collaboration diagram for sigraph::Learner:

Public Member Functions

virtual ~Learner ()
 
virtual void process (LearnParam *lp)=0
 Effectue l'apprentissage, récursivement en transmettant aux enfants.
 
virtual void process (LearnConstParam *lp)
 Apprentissage sur une clique constante.
 
virtual void getVectors (LearnParam *lp)
 
virtual void getVectors (LearnConstParam *lp)
 
- Public Member Functions inherited from Tree
 Tree (bool allowChildren=true, const std::string &str="")
 
virtual ~Tree ()
 
virtual void accept (TreeVisitor &visitor)
 
virtual void const_accept (ConstTreeVisitor &visitor) const
 
virtual bool check (const carto::SyntaxSet &syntax, std::set< std::string > &missing) const
 
std::set< Tree * > getElementsWith (const std::string &, bool recurse=true) const
 
std::set< Tree * > getElementsWith (const std::string &, const T &, bool recurse=true) const
 
virtual size_t size () const __attribute__((__deprecated__))
 
virtual size_t childrenSize () const
 
- Public Member Functions inherited from carto::SyntaxedObject< PropertySet >
 SyntaxedObject (const std::string &s)
 
 SyntaxedObject (const SyntaxedObject &x)
 
 SyntaxedObject (const SyntaxedObject< PropertySet > &x)
 
 SyntaxedObject (const std::string &s)
 
 SyntaxedObject (const SyntaxedObject &x)
 
 SyntaxedObject (const SyntaxedObject< PropertySet > &x)
 
- Public Member Functions inherited from BaseTree
 BaseTree (bool allowsChildren=true)
 
virtual ~BaseTree ()
 
const std::list< BaseTree * > & children () const
 
bool getAllowsChildren () const
 
BaseTreegetChildAt (unsigned childIndex) const
 
int getIndex (BaseTree *node) const
 
BaseTreegetParent () const
 
BaseTreegetTopParent ()
 
const BaseTreegetTopParent () const
 
bool isLeaf () const
 
void insert (BaseTree *child, int index=-1)
 
void remove (unsigned index)
 
void remove (BaseTree *node)
 
void removeFromParent ()
 
void setParent (BaseTree *newParent)
 
void clear ()
 
const_iterator begin () const
 
const_iterator end () const
 
const_reverse_iterator rbegin () const
 
const_reverse_iterator rend () const
 

Protected Member Functions

 Learner (bool allowsChildren, const std::string &synt="")
 Constructeur protégé.
 

Additional Inherited Members

- Public Types inherited from carto::SyntaxedObject< PropertySet >
typedef internal::SyntaxedObjectSwitch< T, SUPERSUBCLASS(Interface, T)>::ContentType ContentType
 
- Public Types inherited from BaseTree
typedef std::list< BaseTree * >::iterator iterator
 
typedef std::list< BaseTree * >::const_iterator const_iterator
 
typedef std::list< BaseTree * >::reverse_iterator reverse_iterator
 
typedef std::list< BaseTree * >::const_reverse_iterator const_reverse_iterator
 

Detailed Description

Séquence d'apprentissage, classe de base (abstraite).

Pour fonctionner correctement, le Learner de base d'un arbre de Learners doit avoir dans l'attribut "model", un pointeur sur le graphe modèle (MGraph *).

En utilisation normale, ceci est effectué par le Trainer, qui utilise lui-même les Learner.

Definition at line 21 of file learner.h.

Constructor & Destructor Documentation

◆ ~Learner()

virtual sigraph::Learner::~Learner ( )
virtual

◆ Learner()

sigraph::Learner::Learner ( bool allowsChildren,
const std::string & synt = "" )
protected

Constructeur protégé.

Parameters
allowsChildrenautorise enfants? (cf BaseTree)
syntattribut syntaxique

Member Function Documentation

◆ getVectors() [1/2]

void sigraph::Learner::getVectors ( LearnConstParam * lp)
inlinevirtual

Definition at line 50 of file learner.h.

References process().

◆ getVectors() [2/2]

void sigraph::Learner::getVectors ( LearnParam * lp)
inlinevirtual

Definition at line 45 of file learner.h.

References process().

◆ process() [1/2]

virtual void sigraph::Learner::process ( LearnConstParam * lp)
virtual

◆ process() [2/2]

virtual void sigraph::Learner::process ( LearnParam * lp)
pure virtual

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